html {
  scroll-behavior: smooth;
}

.legal-page {
  background: #f6f1eb;
  color: #4b1f0e;
}

.legal-page main,
.legal-page main * {
  text-transform: none;
}

.legal-page .navbar-custom img {
  max-height: 62px;
  width: auto;
}

.legal-hero {
  position: relative;
  overflow: hidden;
  padding: 80px 0 92px;
  background:
    radial-gradient(circle at 82% 20%, rgba(255, 255, 255, 0.22) 0 7%, transparent 7.3%),
    radial-gradient(circle at 88% 68%, rgba(255, 255, 255, 0.12) 0 13%, transparent 13.3%),
    linear-gradient(135deg, #b3987d 0%, #a47d5c 100%);
}

.legal-hero::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -180px;
  width: 440px;
  height: 440px;
  border: 62px solid rgba(75, 31, 14, 0.1);
  border-radius: 50%;
}

.legal-hero .container {
  position: relative;
  z-index: 1;
}

.legal-hero__back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 58px;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase !important;
}

.legal-hero__back:hover {
  color: #fff;
  opacity: 0.78;
}

.legal-hero__eyebrow,
.legal-index__label {
  margin-bottom: 12px;
  color: #fff;
  font-size: 0.76rem;
  font-weight: 700 !important;
  letter-spacing: 0.18em;
  text-transform: uppercase !important;
}

.legal-hero h1 {
  max-width: 800px;
  margin: 0;
  color: #fff;
  font-size: clamp(3.4rem, 8vw, 7.4rem);
  font-weight: 800 !important;
  line-height: 0.86;
  letter-spacing: -0.055em;
}

.legal-hero__lead {
  max-width: 650px;
  margin: 32px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1rem;
  font-weight: 400 !important;
  line-height: 1.7;
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 70px;
  padding-top: 78px;
  padding-bottom: 100px;
}

.legal-index {
  position: sticky;
  top: 24px;
  align-self: start;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 28px 26px;
  border-top: 4px solid #ad6b41;
  background: #fff;
  box-shadow: 0 18px 45px rgba(75, 31, 14, 0.08);
}

.legal-index__label {
  margin-bottom: 4px;
  color: #ad6b41;
}

.legal-index h2 {
  margin-bottom: 22px;
  color: #4b1f0e;
  font-size: 1.6rem;
  text-transform: none;
}

.legal-index ol {
  margin: 0;
}

.legal-index li {
  border-top: 1px solid #eee4db;
}

.legal-index a {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 9px;
  padding: 10px 0;
  color: #60412f;
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.35;
  text-transform: none;
  transition: color 180ms ease, transform 180ms ease;
}

.legal-index a span {
  color: #b3987d;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.legal-index a:hover,
.legal-index a:focus {
  color: #ad6b41;
  transform: translateX(3px);
}

.legal-document {
  min-width: 0;
}

.legal-document__intro {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 30px;
  align-items: start;
  margin-bottom: 30px;
  padding: 0 6px 30px;
  border-bottom: 1px solid #d9c8b8;
}

.legal-document__intro span {
  color: #ad6b41;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase !important;
}

.legal-document__intro p {
  margin: 0;
  color: #60412f;
  font-size: 1.08rem;
  font-weight: 500 !important;
  line-height: 1.7;
}

.legal-section {
  scroll-margin-top: 24px;
  margin-bottom: 26px;
  padding: 40px 44px;
  border: 1px solid #e7dbcf;
  border-radius: 3px;
  background: #fff;
  box-shadow: 0 9px 24px rgba(75, 31, 14, 0.035);
}

.legal-section__heading {
  margin-bottom: 26px;
  padding-bottom: 22px;
  border-bottom: 1px solid #eee4db;
}

.legal-section__heading span {
  display: block;
  margin-bottom: 7px;
  color: #ad6b41;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase !important;
}

.legal-section h2 {
  margin: 0;
  color: #4b1f0e;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  font-weight: 700 !important;
  line-height: 1.15;
  text-transform: none;
}

.legal-section p {
  margin: 0 0 18px;
  color: #5b4639;
  font-size: 0.89rem;
  font-weight: 400 !important;
  line-height: 1.9;
  text-transform: none;
}

.legal-section p:last-of-type {
  margin-bottom: 24px;
}

.legal-section__top {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: #ad6b41;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase !important;
}

.legal-section__top:hover {
  color: #794018;
}

.footer-current {
  display: inline-block;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  text-decoration: underline !important;
  text-underline-offset: 4px;
}

.footer-current:hover {
  color: #ead8c8;
}

.legal-footer__address {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.7rem;
  font-weight: 400 !important;
  line-height: 1.5;
  text-transform: none;
}

@media (max-width: 991.98px) {
  .legal-hero {
    padding: 64px 0 72px;
  }

  .legal-hero__back {
    margin-bottom: 42px;
  }

  .legal-layout {
    grid-template-columns: 1fr;
    gap: 34px;
    padding-top: 48px;
    padding-bottom: 70px;
  }

  .legal-index {
    position: static;
    max-height: none;
  }

  .legal-index ol {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 28px;
  }
}

@media (max-width: 575.98px) {
  .legal-hero {
    padding: 46px 0 56px;
  }

  .legal-hero::after {
    right: -180px;
    bottom: -230px;
  }

  .legal-hero__back {
    margin-bottom: 38px;
  }

  .legal-hero h1 {
    font-size: 3.15rem;
  }

  .legal-hero__lead {
    margin-top: 24px;
    font-size: 0.88rem;
  }

  .legal-layout {
    padding-top: 28px;
    padding-bottom: 48px;
  }

  .legal-index {
    padding: 24px 20px;
  }

  .legal-index ol {
    grid-template-columns: 1fr;
  }

  .legal-section {
    padding: 28px 22px;
  }

  .legal-section {
    margin-bottom: 18px;
  }

  .legal-document__intro {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .legal-page footer .logo-footer {
    width: 65% !important;
  }
}
