:root {
  --forest: #173d29;
  --leaf: #2e7d4f;
  --cream: #faf8f0;
  --paper: #fffef9;
  --soft: #f1f3e8;
  --ink: #1c2a20;
  --muted: #5f6d63;
  --line: rgba(23, 61, 41, 0.14);
  --focus: #d5a63a;
  --display: "Fraunces", Georgia, serif;
  --body: "Inter", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --forest: #d9eedc; --leaf: #8fd19d; --cream: #101b15; --paper: #17261d;
    --soft: #1b2b21; --ink: #edf4ed; --muted: #b5c4b8;
    --line: rgba(217, 238, 220, 0.16); --focus: #e2bb59;
  }
}
:root[data-theme="dark"] {
  --forest: #d9eedc; --leaf: #8fd19d; --cream: #101b15; --paper: #17261d;
  --soft: #1b2b21; --ink: #edf4ed; --muted: #b5c4b8;
  --line: rgba(217, 238, 220, 0.16); --focus: #e2bb59;
}
:root[data-theme="light"] {
  --forest: #173d29; --leaf: #2e7d4f; --cream: #faf8f0; --paper: #fffef9;
  --soft: #f1f3e8; --ink: #1c2a20; --muted: #5f6d63;
  --line: rgba(23, 61, 41, 0.14); --focus: #d5a63a;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--cream); font: 16px/1.72 var(--body); -webkit-font-smoothing: antialiased; }
a { color: var(--forest); text-underline-offset: 3px; }
a:hover { color: var(--leaf); }
a:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; border-radius: 3px; }
.legal-nav { border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--cream) 94%, transparent); position: sticky; top: 0; z-index: 2; backdrop-filter: blur(12px); }
.legal-nav__inner { width: min(1080px, 92vw); min-height: 72px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.legal-brand { display: flex; align-items: center; gap: 10px; color: var(--forest); text-decoration: none; font: 700 1.06rem/1.05 var(--display); }
.legal-brand img { width: 42px; height: 42px; border-radius: 10px; }
.legal-nav__links { display: flex; gap: 20px; font-size: .87rem; font-weight: 650; }
.legal-nav__links a { text-decoration: none; }
.legal-shell { width: min(1080px, 92vw); margin: 0 auto; padding: clamp(52px, 8vw, 92px) 0 84px; display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: clamp(42px, 7vw, 92px); align-items: start; }
.legal-doc { max-width: 760px; }
.legal-eyebrow { margin: 0 0 12px; color: var(--leaf); font-size: .76rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
h1, h2 { font-family: var(--display); color: var(--forest); text-wrap: balance; }
h1 { margin: 0; font-size: clamp(2.4rem, 6vw, 4.2rem); line-height: 1.04; letter-spacing: -.025em; }
.legal-dek { max-width: 62ch; margin: 22px 0 0; color: var(--muted); font-size: 1.08rem; }
.legal-meta { margin: 24px 0 0; padding: 13px 16px; display: inline-block; background: var(--soft); border: 1px solid var(--line); border-radius: 10px; color: var(--muted); font-size: .85rem; }
.legal-content { margin-top: 54px; }
.legal-content section { padding: 0 0 34px; border-bottom: 1px solid var(--line); }
.legal-content section + section { padding-top: 34px; }
.legal-content h2 { margin: 0 0 13px; font-size: clamp(1.35rem, 3vw, 1.75rem); line-height: 1.2; }
.legal-content h3 { margin: 22px 0 8px; font-size: 1rem; }
.legal-content p, .legal-content ul, .legal-content ol { margin: 0; }
.legal-content p + p, .legal-content p + ul, .legal-content ul + p, .legal-content ol + p { margin-top: 14px; }
.legal-content li + li { margin-top: 8px; }
.legal-content ul, .legal-content ol { padding-left: 1.35rem; }
.notice { margin-top: 20px; padding: 18px 20px; background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--leaf); border-radius: 10px; }
.action-card { margin-top: 22px; padding: 24px; background: #173d29; color: #f6f4e9; border-radius: 16px; }
.action-card h2 { color: #fff; }
.action-card a { color: #fff; font-weight: 750; }
.legal-aside { position: sticky; top: 104px; padding-top: 4px; }
.legal-aside strong { display: block; margin-bottom: 12px; color: var(--forest); font-size: .77rem; letter-spacing: .1em; text-transform: uppercase; }
.legal-aside a { display: block; padding: 8px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .86rem; text-decoration: none; }
.legal-aside a[aria-current="page"] { color: var(--forest); font-weight: 750; }
.legal-footer { background: #173d29; color: rgba(255,255,255,.72); }
.legal-footer__inner { width: min(1080px, 92vw); margin: auto; padding: 30px 0; display: flex; justify-content: space-between; gap: 20px; font-size: .82rem; }
.legal-footer a { color: #fff; }
@media (max-width: 760px) {
  .legal-nav__links { display: none; }
  .legal-shell { grid-template-columns: 1fr; }
  .legal-aside { display: none; }
  .legal-footer__inner { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
