.legal-page-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
  background:
    radial-gradient(circle at top right, rgba(107, 184, 150, 0.15), transparent 26%),
    linear-gradient(140deg, #f3f6f2 0%, #eef3f9 56%, #f8f4eb 100%);
}

.legal-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.legal-topbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 32px);
  min-height: 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.legal-brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.legal-brand-logo {
  display: block;
  height: 42px;
  width: auto;
}

.legal-nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  min-width: 0;
}

.legal-nav-links a {
  color: #475569;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: color 0.2s ease;
}

.legal-nav-links a:hover {
  color: #4338ca;
}

.legal-header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border-radius: 999px;
  background: #2563eb;
  color: #ffffff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.22);
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.legal-header-cta:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(37, 99, 235, 0.26);
}

main.legal-page {
  flex: 1;
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 30px 20px 24px;
}

.legal-headline {
  margin-bottom: 24px;
}

.legal-headline h1 {
  font-size: 34px;
  margin-bottom: 10px;
}

.legal-meta {
  color: #66727a;
  font-size: 14px;
}

.legal-section {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 14px;
}

.legal-section h2 {
  font-size: 20px;
  margin-bottom: 10px;
}

.legal-section p,
.legal-section li {
  color: #334148;
  line-height: 1.62;
}

.legal-section ul {
  margin-left: 20px;
}

.legal-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 16px 0 22px;
}

#siteFooterRoot {
  margin-top: auto;
}

@media (max-width: 780px) {
  .legal-topbar-inner {
    min-height: auto;
    padding-top: 14px;
    padding-bottom: 14px;
    flex-wrap: wrap;
    gap: 14px 16px;
  }

  .legal-nav-links {
    order: 3;
    width: 100%;
    flex-wrap: nowrap;
    gap: 12px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .legal-nav-links::-webkit-scrollbar {
    display: none;
  }

  .legal-nav-links a {
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(241, 245, 249, 0.94);
    flex: 0 0 auto;
  }

  .legal-brand-logo {
    height: 38px;
  }

  .legal-header-cta {
    margin-left: auto;
    padding: 9px 16px;
    font-size: 15px;
  }

  main.legal-page {
    padding: 22px 14px 20px;
  }

  .legal-headline {
    margin-bottom: 18px;
  }

  .legal-headline h1 {
    font-size: 30px;
    line-height: 1.12;
    margin-bottom: 8px;
  }

  .legal-section {
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 12px;
  }

  .legal-section h2 {
    font-size: 18px;
    margin-bottom: 8px;
  }

  .legal-section p,
  .legal-section li {
    font-size: 15px;
    line-height: 1.56;
  }
}

@media (max-width: 480px) {
  .legal-topbar-inner {
    gap: 12px;
  }

  .legal-brand-logo {
    height: 34px;
  }

  .legal-header-cta {
    padding: 8px 14px;
    font-size: 14px;
  }

  .legal-headline h1 {
    font-size: 28px;
  }

  .legal-meta {
    font-size: 13px;
  }
}
