:root {
  --ivory: #f3f0e8;
  --paper: #faf8f2;
  --ink: #171816;
  --muted: #686b62;
  --line: rgba(23, 24, 22, .16);
  --lime: #c8f43b;
  --max: 1240px;
  color-scheme: light;
  font-family: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ivory); color: var(--ink); line-height: 1.65; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--lime); outline-offset: 4px; }

.site-header { border-bottom: 1px solid var(--line); }
.nav-wrap { max-width: var(--max); margin: auto; min-height: 88px; padding: 0 32px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.wordmark { font-size: 1.15rem; font-weight: 800; letter-spacing: .2em; text-decoration: none; }
.site-nav { display: flex; align-items: center; gap: 26px; font-size: .85rem; }
.site-nav a { text-decoration: none; color: var(--muted); }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }
.nav-toggle { display: none; border: 0; background: transparent; font: inherit; cursor: pointer; padding: 8px; }

.page-shell { max-width: var(--max); margin: auto; padding: 76px 32px 100px; }
.page-intro { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(240px, .75fr); gap: 64px; padding-bottom: 82px; border-bottom: 1px solid var(--line); }
.eyebrow { margin: 0 0 20px; text-transform: uppercase; letter-spacing: .18em; font-size: .72rem; font-weight: 700; color: var(--muted); }
h1, h2, h3 { margin: 0; font-family: Georgia, 'Times New Roman', serif; font-weight: 400; letter-spacing: -.04em; line-height: 1.05; }
h1 { font-size: clamp(4.6rem, 13vw, 10.5rem); letter-spacing: -.09em; line-height: .8; }
.intro-title { max-width: 760px; }
.intro-copy { align-self: end; max-width: 370px; color: var(--muted); font-size: 1.05rem; }
.intro-copy p { margin: 0 0 18px; }
.lime-mark { display: inline-block; width: 13px; height: 13px; margin-right: 8px; background: var(--lime); border-radius: 50%; vertical-align: 1px; }

.legal-layout { display: grid; grid-template-columns: 180px minmax(0, 760px); gap: 80px; padding-top: 68px; }
.toc { position: sticky; top: 28px; align-self: start; font-size: .76rem; text-transform: uppercase; letter-spacing: .13em; }
.toc p { margin: 0 0 18px; color: var(--muted); }
.toc a { display: block; padding: 7px 0; text-decoration: none; color: var(--muted); border-left: 2px solid transparent; padding-left: 12px; }
.toc a.active { color: var(--ink); border-left-color: var(--lime); }
.content-section { padding: 0 0 68px; scroll-margin-top: 30px; }
.content-section + .content-section { border-top: 1px solid var(--line); padding-top: 50px; }
.section-number { color: var(--muted); font: .8rem Arial, sans-serif; letter-spacing: .12em; margin-bottom: 13px; }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); margin-bottom: 22px; }
h3 { font-size: 1.5rem; margin: 30px 0 14px; }
p { margin: 0 0 18px; }
ul { margin: 0 0 24px; padding-left: 24px; }
li { padding-left: 7px; margin-bottom: 10px; }
.acceptance { border-left: 5px solid var(--lime); padding: 22px 28px; background: rgba(200,244,59,.12); margin-top: 26px; }
.fine-print { color: var(--muted); font-size: .9rem; }
.back-link { display: inline-block; margin-top: 14px; font-size: .9rem; text-underline-offset: 4px; }

.site-footer { border-top: 1px solid var(--line); }
.footer-wrap { max-width: var(--max); margin: auto; padding: 27px 32px; display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: .78rem; color: var(--muted); }
.footer-links { display: flex; gap: 18px; }
.footer-links a { text-underline-offset: 3px; }
.reveal { opacity: 0; transform: translateY(18px); animation: reveal .7s cubic-bezier(.2,.7,.2,1) forwards; }
.reveal-delay { animation-delay: .12s; }
@keyframes reveal { to { opacity: 1; transform: none; } }

@media (max-width: 700px) {
  .nav-wrap { min-height: 72px; padding: 0 20px; }
  .nav-toggle { display: block; color: var(--muted); }
  .site-nav { position: absolute; top: 72px; left: 0; right: 0; z-index: 2; display: grid; gap: 0; max-height: 0; overflow: hidden; background: var(--ivory); border-bottom: 1px solid transparent; transition: max-height .3s ease, border-color .3s ease; }
  .site-nav.is-open { max-height: 160px; border-color: var(--line); }
  .site-nav a { padding: 14px 20px; }
  .page-shell { padding: 52px 20px 68px; }
  .page-intro { display: block; padding-bottom: 54px; }
  h1 { font-size: clamp(4.5rem, 20vw, 8rem); }
  .intro-copy { margin-top: 38px; font-size: .98rem; }
  .legal-layout { display: block; padding-top: 42px; }
  .toc { position: static; display: flex; gap: 12px; overflow-x: auto; margin-bottom: 50px; padding-bottom: 7px; white-space: nowrap; }
  .toc p { display: none; }
  .toc a { border-left: 0; border-bottom: 2px solid transparent; padding: 5px 0; }
  .toc a.active { border-bottom-color: var(--lime); }
  .content-section { padding-bottom: 50px; }
  .content-section + .content-section { padding-top: 38px; }
  .footer-wrap { padding: 24px 20px; display: block; }
  .footer-links { margin-top: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
