/* legal.css — shared styling for the policy pages (terms, privacy,
   responsible play). Kept separate so the three documents can never drift
   apart visually. */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,700;12..96,800&family=Inter:wght@400;500;600;700&display=swap');

:root{
  --ground:#f7f9f8;--surface:#fff;--ink:#0f1f1c;--ink-soft:#52615d;
  --primary:#0fae84;--primary-deep:#0a8f6c;--primary-wash:#e3f6ef;--gold:#f0b429;
  --danger:#c0392b;
  --line:#e6ece9;--shadow:0 1px 2px rgba(15,31,28,.04),0 8px 24px rgba(15,31,28,.06);
  --radius:18px;--max:1180px;
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{font-family:'Inter',system-ui,sans-serif;background:var(--ground);color:var(--ink);line-height:1.65;-webkit-font-smoothing:antialiased}
h1,h2,h3{font-family:'Bricolage Grotesque',sans-serif;letter-spacing:-.02em;line-height:1.15}
a{color:var(--primary-deep)}
.wrap{max-width:var(--max);margin:0 auto;padding:0 24px}

header.nav{position:sticky;top:0;z-index:50;background:rgba(247,249,248,.88);backdrop-filter:blur(12px);border-bottom:1px solid var(--line)}
.nav-inner{display:flex;align-items:center;justify-content:space-between;height:68px;gap:16px}
.logo{display:flex;align-items:center;gap:10px;font-family:'Bricolage Grotesque';font-weight:800;font-size:21px;color:var(--ink);text-decoration:none}
.logo .mark{width:30px;height:30px;border-radius:9px;background:linear-gradient(135deg,var(--primary),#3ad6a8);display:grid;place-items:center;color:#fff;font-size:18px}
.nav-links{display:flex;gap:22px;font-size:14.5px;font-weight:500;color:var(--ink-soft);flex-wrap:wrap}
.nav-links a{text-decoration:none;color:inherit}
.nav-links a:hover{color:var(--ink)}
.nav-links a.active{color:var(--ink);font-weight:600}

.legal{display:grid;grid-template-columns:250px minmax(0,1fr);gap:40px;padding:40px 0 80px;align-items:start}
.toc{position:sticky;top:92px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:20px;box-shadow:var(--shadow)}
.toc h2{font-size:12px;text-transform:uppercase;letter-spacing:.07em;color:var(--ink-soft);margin-bottom:12px;font-family:'Inter';font-weight:700}
.toc a{display:block;font-size:13.5px;color:var(--ink-soft);text-decoration:none;padding:5px 0 5px 10px;border-left:2px solid transparent;margin-left:-10px}
.toc a:hover{color:var(--ink)}
.toc a.on{color:var(--primary-deep);border-left-color:var(--primary);font-weight:600}

.doc{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:44px;box-shadow:var(--shadow)}
.doc h1{font-size:clamp(28px,4vw,38px);font-weight:800;margin-bottom:8px}
.doc .updated{font-size:13.5px;color:var(--ink-soft);margin-bottom:28px;padding-bottom:22px;border-bottom:1px solid var(--line)}
.doc h2{font-size:21px;font-weight:800;margin:36px 0 12px;scroll-margin-top:90px}
.doc h3{font-size:16px;font-weight:700;margin:22px 0 8px;font-family:'Inter'}
.doc p,.doc li{font-size:15px;color:#33443f;margin-bottom:12px}
.doc ul,.doc ol{padding-left:22px;margin-bottom:14px}
.doc li{margin-bottom:7px}
.doc strong{color:var(--ink)}
.lede{font-size:16.5px!important;color:var(--ink-soft)!important}

.callout{background:var(--primary-wash);border:1px solid #c7e8dc;border-left:4px solid var(--primary);border-radius:12px;padding:16px 20px;margin:20px 0}
.callout p:last-child,.callout ul:last-child{margin-bottom:0}
.callout.warn{background:#fdf1d4;border-color:#f3e0ad;border-left-color:var(--gold)}
.callout.danger{background:#fde4e1;border-color:#f6c9c2;border-left-color:var(--danger)}
.callout h3{margin-top:0}

/* Obvious, deliberately ugly marker for details the operator must fill in. */
.fill{background:#fff3cd;border-bottom:2px dotted #b8860b;padding:0 4px;border-radius:3px;font-weight:600;color:#7a5c00}

table{width:100%;border-collapse:collapse;margin:14px 0 20px;font-size:14.5px}
th{text-align:left;background:var(--ground);padding:11px 14px;border:1px solid var(--line);font-size:12.5px;text-transform:uppercase;letter-spacing:.04em;color:var(--ink-soft)}
td{padding:11px 14px;border:1px solid var(--line);color:#33443f;vertical-align:top}

.help-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:14px;margin:18px 0 24px}
.help-card{background:var(--ground);border:1px solid var(--line);border-radius:14px;padding:18px}
.help-card b{display:block;font-size:15px;margin-bottom:3px}
.help-card span{font-size:13.5px;color:var(--ink-soft);display:block}
.help-card a{font-size:13.5px;font-weight:600}

footer{border-top:1px solid var(--line);background:var(--surface);padding:28px 0;font-size:13.5px;color:var(--ink-soft)}
.foot-inner{display:flex;justify-content:space-between;gap:18px;flex-wrap:wrap}
.foot-inner a{color:var(--ink-soft);text-decoration:none;margin-right:16px}
.foot-inner a:hover{color:var(--primary-deep)}

@media(max-width:900px){.legal{grid-template-columns:1fr}.toc{position:static}.doc{padding:26px}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
:focus-visible{outline:3px solid var(--primary);outline-offset:2px;border-radius:6px}
