/* ==========================================================================
   FamCare — Правовые страницы (privacy.html, consent.html, terms.html)
   ========================================================================== */

.page-legal {
  background-color: var(--color-white);
  color: #393939;
}

.page-legal .product-top-shell {
  padding-bottom: 0;
}

.legal-container {
  width: 100%;
  max-width: 1728px;
  margin: 0 auto;
  padding-inline: 160px;
}

.legal-hero {
  padding-top: 36px;
  padding-bottom: 48px;
}

.legal-hero__inner {
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(57, 57, 57, 0.14);
}

.legal-breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
  font-family: var(--font-sans);
  font-size: 14px;
  color: #817881;
}

.legal-breadcrumbs__link {
  color: #817881;
  transition: color 0.3s var(--ease-smooth);
}

.legal-breadcrumbs__link:hover {
  color: var(--color-accent-blue);
}

.legal-breadcrumbs__sep {
  opacity: 0.6;
}

.legal-breadcrumbs__current {
  color: #393939;
}

.legal-hero__eyebrow {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent-blue);
  margin-bottom: 14px;
}

.legal-hero__title {
  font-family: var(--font-serif);
  font-size: 64px;
  font-weight: 400;
  line-height: 1.08;
  color: #393939;
  max-width: 980px;
  margin-bottom: 18px;
}

.legal-hero__meta {
  font-family: var(--font-sans);
  font-size: 14px;
  color: #817881;
}

.legal-body {
  padding-bottom: 96px;
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.34fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.legal-nav {
  position: sticky;
  top: 40px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  border-radius: 20px;
  background: rgba(194, 212, 209, 0.18);
}

.legal-nav__title {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7c6f77;
  margin-bottom: 6px;
}

.legal-nav__link {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  color: #393939;
  transition: color 0.3s var(--ease-smooth);
}

.legal-nav__link:hover,
.legal-nav__link.is-active {
  color: var(--color-accent-blue);
}

.legal-content {
  max-width: 820px;
  min-width: 0;
}

.legal-content h2 {
  font-family: var(--font-serif);
  font-size: 34px;
  font-weight: 400;
  line-height: 1.2;
  color: #393939;
  margin-top: 40px;
  margin-bottom: 16px;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.72;
  color: rgba(57, 57, 57, 0.85);
  margin-bottom: 14px;
}

.legal-content ul {
  margin: 0 0 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.65;
  color: rgba(57, 57, 57, 0.85);
}

.legal-card {
  margin-top: 32px;
  padding: 28px 32px;
  border-radius: 20px;
  background: rgba(242, 223, 227, 0.45);
}

.legal-card p:last-child {
  margin-bottom: 0;
}

.page-legal .footer {
  margin-top: 0;
  padding-bottom: 20px;
}

.page-legal .footer__card {
  padding-top: 96px;
  min-height: 520px;
}

@media (max-width: 1440px) {
  .legal-container {
    padding-inline: 80px;
  }

  .legal-hero__title {
    font-size: 54px;
  }
}

@media (max-width: 1180px) {
  .legal-container {
    padding-inline: 40px;
  }

  .legal-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .legal-nav {
    position: static;
  }
}

@media (max-width: 640px) {
  .legal-container {
    padding-inline: 16px;
  }

  .legal-hero {
    padding-top: 20px;
    padding-bottom: 32px;
  }

  .legal-hero__title {
    font-size: 30px;
    overflow-wrap: break-word;
    hyphens: auto;
  }

  .legal-content h2 {
    font-size: 26px;
  }
}
