.legal-page {
  background: #f7f5f2;
}

.legal-page .site-header {
  background: rgb(247 245 242 / 92%);
  border-bottom-color: rgb(16 17 22 / 8%);
}

.legal-hero {
  position: relative;
  padding: calc(var(--header-height) + 76px) 0 76px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  isolation: isolate;
  background:
    radial-gradient(circle at 84% 26%, rgb(93 169 169 / 18%), transparent 29%),
    linear-gradient(135deg, #f7f5f2 0 56%, #edf4f1 100%);
}

.legal-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 460px;
  aspect-ratio: 1;
  right: -190px;
  bottom: -310px;
  border: 1px solid rgb(77 141 124 / 18%);
  border-radius: 50%;
  box-shadow: 0 0 0 70px rgb(77 141 124 / 4%), 0 0 0 140px rgb(77 141 124 / 3%);
}

.legal-hero-copy {
  max-width: 880px;
}

.legal-hero .eyebrow {
  color: #276d60;
}

.legal-hero h1 {
  margin-bottom: 24px;
  font-size: clamp(4rem, 12vw, 8rem);
}

.legal-lead {
  max-width: 760px;
  margin-bottom: 26px;
  color: #494e4d;
  font-size: clamp(1rem, 1.8vw, 1.18rem);
  line-height: 1.75;
}

.legal-updated {
  margin: 0;
  color: #68706d;
  font-size: .78rem;
}

.legal-updated strong {
  color: var(--ink);
}

.legal-content {
  padding: 68px 0 96px;
  background: #fbfaf8;
}

.legal-layout {
  display: grid;
  gap: 48px;
}

.legal-toc {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgb(255 255 255 / 72%);
}

.legal-toc h2 {
  margin-bottom: 13px;
  font-family: var(--font-body);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.legal-toc nav {
  display: grid;
  gap: 2px;
}

.legal-toc a {
  min-height: 44px;
  padding: 8px 0;
  border-bottom: 1px solid rgb(16 17 22 / 7%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: #555c59;
  font-size: .78rem;
}

.legal-toc a:last-child {
  border-bottom: 0;
}

.legal-toc a::after {
  content: "↓";
  color: #4d8d7c;
}

.legal-toc a:hover {
  color: #276d60;
}

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

.legal-intro {
  margin-bottom: 16px;
  padding: 24px;
  border-left: 3px solid #4d8d7c;
  border-radius: 0 12px 12px 0;
  color: #3e4643;
  background: #eef5f2;
}

.legal-section {
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-height) + 24px);
}

.legal-section:first-of-type {
  padding-top: 20px;
}

.legal-section h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 4vw, 3rem);
}

.legal-section p,
.legal-section li,
.legal-intro {
  font-size: .94rem;
  line-height: 1.78;
}

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

.legal-section ul {
  margin: 18px 0 0;
  padding-left: 21px;
}

.legal-section li + li {
  margin-top: 11px;
}

.legal-next {
  margin-top: 38px;
  padding: 25px;
  border: 1px solid rgb(77 141 124 / 25%);
  border-radius: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: #f0f6f3;
}

.legal-next p {
  margin: 0;
  font-size: .86rem;
}

.legal-page .footer-main {
  grid-template-columns: 1fr;
}

.legal-page .footer-brand {
  grid-column: auto;
}

@media (min-width: 760px) {
  .legal-hero {
    padding-block: calc(var(--header-height) + 96px) 94px;
  }

  .legal-layout {
    grid-template-columns: minmax(190px, .42fr) minmax(0, 1.58fr);
    align-items: start;
    gap: clamp(50px, 8vw, 120px);
  }

  .legal-toc {
    position: sticky;
    top: calc(var(--header-height) + 24px);
  }

  .legal-intro {
    padding: 29px 31px;
  }

  .legal-page .footer-main {
    grid-template-columns: 1.4fr repeat(2, 1fr);
  }
}

@media (max-width: 599px) {
  .legal-hero {
    padding: calc(var(--header-height) + 58px) 0 58px;
  }

  .legal-hero h1 {
    font-size: clamp(3.7rem, 18vw, 5.4rem);
  }

  .legal-content {
    padding-block: 46px 72px;
  }

  .legal-layout {
    gap: 34px;
  }

  .legal-section p,
  .legal-section li,
  .legal-intro {
    font-size: .9rem;
  }
}
