/* Legal document page - same tokens as the product site */
.legal-page{background:var(--paper)}
.legal-page .navbar .nav-link[aria-current="page"]{color:#174f42;box-shadow:inset 0 -2px #80a76e}
.legal-hero{position:relative;padding:72px 0 36px;overflow:hidden;background:radial-gradient(ellipse at 88% 10%,#e5eed5 0,transparent 48%),var(--paper)}
.legal-hero-grid{position:absolute;inset:0;opacity:.28;pointer-events:none;background-image:radial-gradient(#90a58a .65px,transparent .65px);background-size:23px 23px;mask-image:linear-gradient(90deg,transparent 18%,black)}
.legal-hero .container{position:relative}
.legal-kicker{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px;margin-bottom:22px}
.legal-back{display:inline-flex;align-items:center;gap:8px;font-size:12px;font-weight:600;color:var(--ink)}
.legal-back:hover{color:var(--green)}
.legal-back span{font-size:18px;line-height:1}
.legal-hero h1{font-size:clamp(34px,4.2vw,52px);font-weight:700;letter-spacing:-.06em;line-height:1.12;margin:0 0 18px;max-width:16ch}
.legal-hero h1 span{color:#508257}
.legal-lead{max-width:52ch;font-size:16px;line-height:1.8;margin:0}
.legal-facts{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:36px;padding-top:24px;border-top:1px solid #dce4d5}
.legal-facts div{display:flex;flex-direction:column;gap:6px}
.legal-facts small{font-size:9px;letter-spacing:1.4px;font-weight:700;color:#53734f}
.legal-facts span{font-size:13px;line-height:1.55;color:var(--ink)}
.legal-facts a{color:var(--ink);font-weight:600}
.legal-facts a:hover{color:var(--green)}
.legal-body{padding:28px 0 90px}
.legal-layout{display:grid;grid-template-columns:220px minmax(0,1fr);gap:48px;align-items:start}
.legal-toc{position:sticky;top:108px;padding:22px 0}
.legal-toc p{font-size:9px;letter-spacing:1.5px;font-weight:700;color:#53734f;margin:0 0 16px}
.legal-toc a{display:flex;align-items:baseline;gap:10px;font-size:13px;line-height:1.4;color:#4f6358;padding:9px 0;border-bottom:1px solid #e6ece0}
.legal-toc a:hover,.legal-toc a:focus-visible{color:var(--green)}
.legal-toc b{font-size:11px;font-weight:700;color:#7a9570;min-width:1.6em}
.legal-sheet{background:#fff;border:1px solid #e3e8dd;border-radius:18px;padding:42px 48px 48px;box-shadow:0 18px 40px #344c380a}
.legal-section{padding:8px 0 28px;border-bottom:1px solid #edf0e8;scroll-margin-top:120px}
.legal-section:last-of-type{border-bottom:0;padding-bottom:0}
.legal-section h2{display:flex;align-items:flex-start;gap:14px;font-size:22px;letter-spacing:-.04em;line-height:1.3;margin:18px 0 16px}
.legal-index{flex-shrink:0;display:grid;place-items:center;width:42px;height:42px;border-radius:12px;background:#e9f3df;color:#51794f;font-size:12px;font-weight:700;letter-spacing:.04em}
.legal-section p,.legal-section li{font-size:15px;line-height:1.85;color:var(--muted)}
.legal-section p{margin:0 0 14px}
.legal-section ul{margin:0 0 16px;padding:0 0 0 22px}
.legal-section li{margin:0 0 8px}
.legal-section a{color:var(--green);font-weight:600;word-break:break-word}
.legal-section a:hover{color:#0d392f}
.legal-note{margin-top:8px;padding:16px 18px;border-radius:12px;background:#f8faf4;border:1px solid #e3e8dd;font-size:14px}
.legal-return{display:flex;flex-wrap:wrap;gap:18px;align-items:center;margin-top:36px}
.legal-page .finale-nav a[aria-current="page"]{color:#e4f3d4}
@media(max-width:991px){
  .legal-hero{padding-top:48px}
  .legal-layout{grid-template-columns:1fr;gap:8px}
  .legal-toc{position:static;display:flex;flex-wrap:wrap;gap:8px 18px;padding:0 0 18px}
  .legal-toc p{flex-basis:100%;margin-bottom:4px}
  .legal-toc a{border:0;padding:6px 0}
  .legal-facts{grid-template-columns:1fr;gap:16px}
  .legal-sheet{padding:28px 22px 32px;border-radius:14px}
  .legal-section h2{font-size:19px}
}
@media(prefers-reduced-motion:reduce){
  .legal-back,.legal-toc a,.legal-section a{transition:none}
}
