.legal-page {
  padding: 34px 16px 72px;
}

.legal-document {
  width: min(100%, 1040px);
  max-width: 1040px;
  margin: 0 auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(201, 164, 93, .26);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, .04), 0 24px 64px rgba(31, 44, 61, .09);
}

.legal-hero {
  position: relative;
  isolation: isolate;
  margin: 0;
  padding: clamp(34px, 6vw, 66px) clamp(24px, 7vw, 78px) clamp(34px, 5vw, 54px);
  overflow: hidden;
  border-bottom: 1px solid #e7e2dc;
  background:
    radial-gradient(520px 240px at 100% 0, rgba(79, 125, 108, .12), transparent 68%),
    linear-gradient(145deg, #fff 0%, #fbf8f2 100%);
}

.legal-hero::after {
  content: "§";
  position: absolute;
  z-index: -1;
  top: -46px;
  right: clamp(18px, 6vw, 74px);
  color: rgba(201, 164, 93, .13);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(10rem, 23vw, 17rem);
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
}

.legal-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 15px;
  color: #2e7d5a;
  font-family: var(--sans, ui-sans-serif, system-ui, sans-serif);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.legal-eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  border-radius: 999px;
  background: #c9a45d;
}

.legal-hero h1 {
  max-width: 780px;
  margin: 0;
  color: #243648;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.45rem, 5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.legal-hero .legal-deck {
  max-width: 720px;
  margin: 22px 0 0;
  color: #536170;
  font-family: "Lora", Georgia, serif;
  font-size: clamp(1.05rem, 1.6vw, 1.23rem);
  line-height: 1.7;
}

.legal-hero .legal-summary {
  max-width: 720px;
  margin: 15px 0 0;
  padding-left: 18px;
  border-left: 3px solid rgba(79, 125, 108, .55);
  color: #607080;
  font-family: "Lora", Georgia, serif;
  font-size: 15px;
  line-height: 1.72;
}

.legal-document > section {
  position: relative;
  margin: 0 clamp(24px, 7vw, 86px);
  padding: clamp(34px, 5vw, 52px) 0;
  border-top: 1px solid #e7e2dc;
}

.legal-document > .legal-hero + section {
  border-top: 0;
}

.legal-document > section::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 58px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #c9a45d, rgba(201, 164, 93, 0));
}

.legal-document > .legal-hero + section::before {
  display: none;
}

.legal-document h2 {
  max-width: 760px;
  margin: 0 0 20px;
  color: #243648;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.5rem, 2.7vw, 2rem);
  font-weight: 750;
  line-height: 1.18;
  letter-spacing: -.018em;
  text-wrap: balance;
}

.legal-document section p,
.legal-document section li {
  color: #33485c;
  font-family: "Lora", Georgia, serif;
  font-size: 16.5px;
  line-height: 1.86;
}

.legal-document section p {
  max-width: 72ch;
  margin: 0 0 17px;
}

.legal-document section p:last-child,
.legal-document section ul:last-child {
  margin-bottom: 0;
}

.legal-document section ul {
  display: grid;
  gap: 9px;
  max-width: 70ch;
  margin: 18px 0 22px;
  padding: 20px 22px;
  border: 1px solid rgba(79, 125, 108, .18);
  border-radius: 16px;
  background: #f6faf7;
  list-style: none;
}

.legal-document section li {
  position: relative;
  margin: 0;
  padding-left: 24px;
  font-size: 15.5px;
  line-height: 1.68;
}

.legal-document section li::before {
  content: "✓";
  position: absolute;
  top: 0;
  left: 0;
  color: #2e7d5a;
  font-family: var(--sans, ui-sans-serif, system-ui, sans-serif);
  font-weight: 900;
}

.legal-document section strong {
  color: #2e435c;
  font-weight: 700;
}

.legal-document section a {
  color: #2e7d5a;
  font-weight: 650;
  text-decoration: underline;
  text-decoration-color: rgba(46, 125, 90, .35);
  text-underline-offset: 4px;
}

.legal-document section a:hover,
.legal-document section a:focus-visible {
  text-decoration-color: currentColor;
}

.legal-page + .site-footer {
  margin-top: 0;
  padding: 0 16px 34px;
  color: #526579;
}

.legal-page + .site-footer .site-footer-inner {
  width: min(100%, 1040px);
  max-width: 1040px;
  margin: 0 auto;
  padding: 18px 0 0;
  border-top: 1px solid rgba(201, 164, 93, .28);
}

@media (max-width: 720px) {
  .legal-page {
    padding: 16px 10px 46px;
  }

  .legal-document {
    border-radius: 20px;
  }

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

  .legal-hero::after {
    top: -24px;
    right: 8px;
    opacity: .72;
  }

  .legal-hero h1 {
    font-size: clamp(2.25rem, 12vw, 3.35rem);
  }

  .legal-hero .legal-deck {
    font-size: 1.02rem;
    line-height: 1.68;
  }

  .legal-document > section {
    margin: 0 20px;
    padding: 30px 0;
  }

  .legal-document h2 {
    margin-bottom: 16px;
    font-size: 1.52rem;
  }

  .legal-document section p,
  .legal-document section li {
    font-size: 15.5px;
    line-height: 1.75;
  }

  .legal-document section ul {
    padding: 17px;
  }

  .legal-page + .site-footer .site-footer-inner {
    display: grid;
    justify-items: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .legal-document * {
    scroll-behavior: auto !important;
  }
}
