.legal-page {
  --legal-max: 1320px;
  color: var(--ink);
  background: var(--paper);
}

.legal-page .container {
  width: min(var(--legal-max), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

.legal-page .site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 247, 243, .94);
  backdrop-filter: blur(16px);
}

.legal-page .header-inner {
  min-height: var(--header-h);
}

.legal-page .brand {
  color: var(--orange);
  font-family: var(--sans);
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  font-weight: 750;
  letter-spacing: .08em;
}

.legal-page .brand-mark,
.legal-page .brand small {
  display: none;
}

.legal-page .back {
  color: var(--ink);
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 650;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.legal-page .back:hover {
  color: var(--orange);
}

.legal-page .hero {
  padding: clamp(72px, 10vw, 150px) 0 clamp(54px, 7vw, 98px);
  border-bottom: 1px solid var(--line);
}

.legal-page .hero .eyebrow,
.legal-page .section-no {
  color: var(--orange);
  font-family: var(--mono);
  font-size: .68rem;
  font-weight: 650;
  letter-spacing: .1em;
  line-height: 1.4;
  text-transform: uppercase;
}

.legal-page .hero h1 {
  max-width: 980px;
  margin-top: 20px;
  font-family: var(--display);
  font-size: clamp(4rem, 9.6vw, 9rem);
  font-weight: 800;
  letter-spacing: -.085em;
  line-height: .84;
  text-transform: uppercase;
}

.legal-page .hero h1 span {
  color: inherit;
}

.legal-page .hero p:not(.eyebrow) {
  max-width: 760px;
  margin-top: 30px;
  color: var(--muted);
  font-size: clamp(.95rem, 1.35vw, 1.15rem);
  line-height: 2;
}

.legal-page .identity {
  display: grid;
  grid-template-columns: 1.2fr .8fr 1fr;
  margin-top: clamp(48px, 7vw, 86px);
  border: 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
}

.legal-page .identity-item {
  min-height: 126px;
  padding: 24px 26px;
  border-right: 1px solid var(--line);
}

.legal-page .identity-item:last-child {
  border-right: 0;
}

.legal-page .identity-item dt {
  color: var(--muted);
  font-family: var(--mono);
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.legal-page .identity-item dd {
  margin-top: 16px;
  font-size: .95rem;
  font-weight: 650;
  line-height: 1.55;
}

.legal-page .legal-layout {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
  gap: clamp(46px, 7vw, 112px);
  padding: clamp(62px, 8vw, 120px) 0 clamp(92px, 12vw, 170px);
}

.legal-page .toc {
  position: sticky;
  top: calc(var(--header-h) + 32px);
  align-self: start;
  border-top: 1px solid var(--ink);
}

.legal-page .toc a {
  display: block;
  padding: 15px 2px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: .72rem;
}

.legal-page .toc a:hover {
  color: var(--orange);
}

.legal-page .legal-section {
  scroll-margin-top: calc(var(--header-h) + 30px);
  padding: 0 0 clamp(78px, 9vw, 126px);
}

.legal-page .legal-section + .legal-section {
  padding-top: clamp(72px, 8vw, 112px);
  border-top: 1px solid var(--line);
}

.legal-page .legal-section h2 {
  max-width: 820px;
  margin-top: 16px;
  font-family: var(--display);
  font-size: clamp(2.6rem, 6vw, 5.6rem);
  font-weight: 780;
  letter-spacing: -.07em;
  line-height: .96;
}

.legal-page .section-lede {
  max-width: 700px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.9;
}

.legal-page .rows {
  margin-top: 42px;
  border-top: 1px solid var(--ink);
}

.legal-page .row {
  display: grid;
  grid-template-columns: minmax(150px, 210px) 1fr;
  gap: 28px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  font-size: .9rem;
}

.legal-page .row dt {
  color: var(--muted);
}

.legal-page .row dd {
  font-weight: 560;
}

.legal-page .row dd a,
.legal-page .contact-box a {
  color: var(--orange);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.legal-page .row dd small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: .76rem;
  font-weight: 400;
}

.legal-page .notice {
  margin-top: 30px;
  padding: 22px 0 22px 24px;
  border: 0;
  border-left: 2px solid var(--orange);
  color: var(--ink-soft);
  background: transparent;
  font-size: .88rem;
}

.legal-page .prose {
  max-width: 810px;
  margin-top: 40px;
}

.legal-page .prose h3 {
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 1.08rem;
  font-weight: 680;
}

.legal-page .prose h3:first-child {
  margin-top: 0;
}

.legal-page .prose p {
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: .92rem;
  line-height: 2;
}

.legal-page .contact-box {
  margin-top: 38px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 1rem;
  line-height: 2;
}

.legal-page .contact-box a {
  display: inline-block;
  margin-top: 20px;
  font-family: var(--display);
  font-size: clamp(1.55rem, 4vw, 3.25rem);
  font-weight: 750;
  letter-spacing: -.045em;
  line-height: 1.1;
}

.legal-page .updated {
  margin-top: 30px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: .68rem;
}

.legal-page .site-footer {
  color: var(--muted);
  background: var(--paper);
}

.legal-page .footer-inner {
  min-height: 112px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: .68rem;
}

.legal-page .footer-inner a {
  color: var(--ink);
}

.legal-page .footer-inner a:hover {
  color: var(--orange);
}

@media (max-width: 780px) {
  .legal-page .container {
    width: min(100% - 36px, var(--legal-max));
  }

  .legal-page .back {
    max-width: 44%;
    text-align: right;
  }

  .legal-page .hero {
    padding-top: 58px;
  }

  .legal-page .hero h1 {
    font-size: clamp(3.25rem, 16vw, 5.2rem);
  }

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

  .legal-page .identity-item {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .legal-page .identity-item:last-child {
    border-bottom: 0;
  }

  .legal-page .legal-layout {
    grid-template-columns: 1fr;
    gap: 58px;
  }

  .legal-page .toc {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .legal-page .row {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .legal-page .contact-box a {
    overflow-wrap: anywhere;
  }

  .legal-page .footer-inner {
    min-height: 130px;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .legal-page {
    scroll-behavior: auto;
  }
}
