/* BoostProfits — legal pages shared design system */
:root{
  --bg:#F6F1E8; --surface:#fff; --ink:#1A1714; --ink-muted:#5C544C; --ink-faint:#8A8278;
  --rule:#E5DDD0; --accent:#C2410C; --accent-hover:#9A3309; --accent-soft:#FBE8DD;
  --font-display:'Fraunces',Georgia,serif; --font-body:'General Sans','Inter',system-ui,sans-serif;
  --font-mono:'JetBrains Mono',ui-monospace,Menlo,monospace;
  --ease:cubic-bezier(.22,1,.36,1);
}
*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth}
body{background:var(--bg); color:var(--ink); font-family:var(--font-body); line-height:1.7; -webkit-font-smoothing:antialiased}
a{color:var(--accent); text-decoration:none}
a:hover{text-decoration:underline}
::selection{background:var(--accent); color:#fff}
.skip-link{position:absolute; left:-999px; top:8px; z-index:60; background:var(--ink); color:#fff; padding:10px 16px; border-radius:8px}
.skip-link:focus{left:8px}
a:focus-visible,button:focus-visible,summary:focus-visible{outline:2px solid var(--accent); outline-offset:2px; border-radius:4px}

/* Nav (matches homepage) */
header{position:sticky; top:0; z-index:50; background:var(--bg); border-bottom:1px solid transparent; transition:border-color .3s}
header.scrolled{border-bottom:1px solid var(--rule)}
.nav{max-width:1180px; margin:0 auto; padding:0 clamp(16px,5vw,32px); height:68px; display:flex; align-items:center; justify-content:space-between}
.logo{display:flex; align-items:center; gap:10px; font-family:var(--font-display); font-weight:600; font-size:19px; color:var(--ink)}
.logo svg{width:30px; height:30px}
.nav-links{display:flex; gap:28px; align-items:center}
.nav-links a{font-size:14px; color:var(--ink-muted)}
.nav-links a.book{background:var(--accent); color:#fff; padding:9px 18px; border-radius:999px; font-weight:500}
.nav-links a.book:hover{background:var(--accent-hover); text-decoration:none}
@media(max-width:720px){ .nav-links a:not(.book){display:none} }

/* Legal page layout */
.legal-wrap{max-width:720px; margin:0 auto; padding:0 clamp(16px,5vw,32px)}
.legal-shell{display:grid; grid-template-columns:1fr; gap:0; max-width:980px; margin:0 auto; padding:0 clamp(16px,5vw,32px)}
@media(min-width:1024px){
  .legal-shell{grid-template-columns:1fr 220px; gap:56px; align-items:start}
  .toc{position:sticky; top:96px}
}
.legal-main{max-width:720px}

/* Hero */
.legal-hero{padding-block:clamp(56px,9vw,96px) 8px}
.eyebrow{font-size:12px; font-weight:600; letter-spacing:.14em; text-transform:uppercase; color:var(--ink-faint); margin-bottom:18px}
.legal-hero h1{font-family:var(--font-display); font-weight:500; font-size:clamp(34px,5.5vw,56px); line-height:1.05; letter-spacing:-.02em; margin-bottom:24px}
.legal-summary{font-size:18px; line-height:1.7; color:var(--ink-muted); max-width:64ch}
.legal-meta{display:flex; gap:18px; flex-wrap:wrap; font-size:13px; color:var(--ink-faint); margin-top:26px}
.legal-meta .read{display:inline-flex; align-items:center; gap:6px}

/* Mobile TOC */
.toc-mobile{margin:32px 0 0; border:1px solid var(--rule); border-radius:12px; background:var(--surface)}
.toc-mobile summary{padding:14px 18px; cursor:pointer; font-size:14px; font-weight:600; color:var(--ink); list-style:none}
.toc-mobile summary::-webkit-details-marker{display:none}
.toc-mobile summary::after{content:'+'; float:right; color:var(--accent)}
.toc-mobile[open] summary::after{content:'–'}
.toc-mobile ol{padding:4px 18px 18px 36px; display:flex; flex-direction:column; gap:8px}
.toc-mobile a{font-size:14px; color:var(--ink-muted)}
@media(min-width:1024px){ .toc-mobile{display:none} }

/* Desktop TOC */
.toc{display:none}
@media(min-width:1024px){
  .toc{display:block}
  .toc h4{font-size:11px; letter-spacing:.12em; text-transform:uppercase; color:var(--ink-faint); margin-bottom:14px}
  .toc ol{list-style:none; display:flex; flex-direction:column; gap:9px; counter-reset:t}
  .toc a{font-size:13.5px; color:var(--ink-muted); line-height:1.4; display:block}
  .toc a:hover{color:var(--accent); text-decoration:none}
}

/* Body sections */
.legal-body{padding-block:8px clamp(64px,9vw,110px)}
.legal-body section{margin-block:64px; scroll-margin-top:90px}
.legal-body section:first-of-type{margin-top:48px}
.legal-body h2{font-family:var(--font-display); font-weight:500; font-size:clamp(24px,3.2vw,32px); line-height:1.15; letter-spacing:-.015em; margin-block:0 16px; padding-top:48px; border-top:1px solid var(--rule)}
.legal-body section:first-of-type h2{border-top:none; padding-top:0}
.legal-body .lede{font-size:18px; color:var(--ink); font-weight:500; margin-bottom:14px; line-height:1.6}
.legal-body p{font-size:17px; line-height:1.75; color:var(--ink-muted); max-width:64ch; margin-bottom:14px}
.legal-body p strong{color:var(--ink); font-weight:600}
.legal-body ul,.legal-body ol.list{margin:6px 0 16px 22px; display:flex; flex-direction:column; gap:9px; max-width:64ch}
.legal-body li{font-size:16.5px; line-height:1.65; color:var(--ink-muted)}
.legal-body li strong{color:var(--ink)}
.legal-body .ref{font-family:var(--font-mono); font-size:14px; background:var(--accent-soft); padding:1px 6px; border-radius:5px; color:var(--accent-hover)}
.legal-body .callout{background:var(--surface); border:1px solid var(--rule); border-left:3px solid var(--accent); border-radius:0 10px 10px 0; padding:16px 20px; margin:18px 0; font-size:16px; color:var(--ink); max-width:64ch; line-height:1.6}

/* Closing + page footer */
.legal-close-block{margin-top:72px; padding-top:32px; border-top:1px solid var(--rule); max-width:64ch}
.legal-close-block p{font-size:16px; color:var(--ink-muted); line-height:1.7; margin-bottom:10px}
.legal-stamp{font-family:var(--font-mono); font-size:13px; color:var(--ink-faint); margin-top:18px}

/* Site footer */
footer{background:linear-gradient(180deg,var(--bg),#EFE8DA); border-top:1px solid var(--rule); padding:56px 0 40px}
.foot{max-width:1180px; margin:0 auto; padding:0 clamp(16px,5vw,32px)}
.foot-cols{display:flex; gap:56px; flex-wrap:wrap; justify-content:space-between}
.foot-brand{max-width:280px}
.foot-brand .logo{margin-bottom:10px}
.foot-brand p{font-size:14px; color:var(--ink-muted)}
.foot-group{display:flex; gap:56px; flex-wrap:wrap}
.foot-col h4{font-size:11px; letter-spacing:.12em; text-transform:uppercase; color:var(--ink-faint); margin-bottom:14px}
.foot-col a{display:block; font-size:14px; color:var(--ink-muted); margin-bottom:9px}
.foot-col a:hover{color:var(--accent); text-decoration:none}
.foot-bottom{max-width:1180px; margin:40px auto 0; padding:24px clamp(16px,5vw,32px) 0; border-top:1px solid var(--rule); display:flex; justify-content:space-between; gap:14px; flex-wrap:wrap}
.foot-bottom p{font-size:12.5px; color:var(--ink-faint)}
.foot-bottom .built{color:var(--ink-faint)}

@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto !important}}
