/* ============================================================================
   Shared styles for the legal pages (privacy.html, terms.html).
   Deliberately a subset of index.html: same fonts, same altruist tokens, same
   nav and footer, plus prose styles. These pages pin data-theme="altruist" —
   the switcher is a design tool for the landing page, not something a policy
   page needs.
   ============================================================================ */

@font-face{font-family:'Baloo 2';font-style:normal;font-weight:500 800;font-display:swap;src:url("fonts/baloo2-latin.woff2") format('woff2')}
@font-face{font-family:'Nunito Sans';font-style:normal;font-weight:400 800;font-display:swap;src:url("fonts/nunito-sans-latin.woff2") format('woff2')}

:root{
  --bg:#f5f5f5;--fg:#16526e;--card:#ebf8ff;--gray:rgba(0,0,0,.58);
  --line:rgba(22,82,110,.14);--line2:rgba(22,82,110,.2);--light:rgba(0,0,0,.78);
  --btn-bg:#16526e;--btn-fg:#f5f5f5;--ring:rgba(22,82,110,.18);
  --font-d:'Baloo 2',sans-serif;--w-d:700;--font-b:'Nunito Sans',sans-serif;
  --r-btn:10px;--r-card:12px;
  --w-page:1080px;--w-prose:720px;
}

*{box-sizing:border-box;margin:0;padding:0}
body{background:var(--bg);color:#000;font-family:var(--font-b);font-size:16px;line-height:1.6;
  -webkit-font-smoothing:antialiased;overflow-x:hidden}
a{color:inherit;text-decoration:none}
img,svg{display:block}
button{font:inherit;color:inherit;background:none;border:none;cursor:pointer}
::selection{background:#deeff8}

/* ---------- nav: same bar as the landing page, minus the hero-transparent state ---------- */
body>nav{position:fixed;top:0;left:0;right:0;z-index:50;padding:32px;display:flex;align-items:flex-start}
.navin{position:relative;width:100%;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;
  height:64px;padding:0 24px;border-radius:var(--r-card);background:#fff;
  box-shadow:0 8px 26px rgba(10,20,30,.10)}
body>nav .brand{grid-column:1;display:flex;align-items:center;gap:8px;font-family:var(--font-d);
  font-weight:var(--w-d);font-size:20px;letter-spacing:-.4px;line-height:24px;color:#000}
.viola-mark{display:block;width:24px;height:24px;flex:0 0 24px;background:url("img/viola-mark-black.png") center/contain no-repeat}
body>nav .brand svg path{fill:#000}
body>nav .links{grid-column:2;display:flex;align-items:center;justify-content:center;gap:28px}
body>nav .links a{font-family:var(--font-d);font-weight:var(--w-d);font-size:16px;color:var(--light);
  transition:color .3s ease}
body>nav .links a:hover{color:#000}
body>nav .nav-right{grid-column:3;justify-self:end;display:flex;align-items:center;gap:10px}
.btn{display:inline-flex;align-items:center;justify-content:center;background:var(--btn-bg);color:var(--btn-fg);
  border-radius:var(--r-btn);height:40px;padding:0 18px;font-family:var(--font-d);font-weight:var(--w-d);
  font-size:16px;box-shadow:0 0 0 0 var(--ring);transition:box-shadow .3s ease;white-space:nowrap}
.btn:hover{box-shadow:0 0 0 4px var(--ring)}
.nav-burger{display:none;flex-direction:column;align-items:center;justify-content:center;gap:5px;
  width:40px;height:40px;border-radius:10px;color:inherit}
.nav-burger span{display:block;width:18px;height:2px;border-radius:2px;background:currentColor;
  transition:transform .25s ease}
body>nav[data-open] .nav-burger span:first-child{transform:translateY(3.5px) rotate(45deg)}
body>nav[data-open] .nav-burger span:last-child{transform:translateY(-3.5px) rotate(-45deg)}

/* ---------- the document itself ---------- */
.legal{max-width:var(--w-page);margin:0 auto;padding:180px 32px 0}
.legal-head{max-width:var(--w-prose);margin-bottom:44px}

/* The document fills the page column: prose keeps a readable measure and the contents
   move into a sticky rail beside it, rather than leaving the right third empty. */
.legal-cols{display:grid;grid-template-columns:minmax(0,1fr) 250px;gap:56px;align-items:start;
  margin-top:44px}
.legal-head .eyebrow{font-family:var(--font-d);font-weight:var(--w-d);font-size:14px;
  color:var(--gray);margin-bottom:12px}
.legal-head h1{font-family:var(--font-d);font-weight:var(--w-d);font-size:48px;line-height:1.1;
  letter-spacing:-.5px;color:#000;text-wrap:balance}
.legal-head .lede{margin-top:18px;font-size:17px;line-height:1.65;color:var(--gray)}
.legal-head .updated{margin-top:22px;font-size:14px;color:var(--gray)}

.legal-body{max-width:none;min-width:0}
.legal-body section{margin-top:52px;scroll-margin-top:140px}
/* that 52px used to separate the first section from the contents block above it;
   with the contents now in the side rail it is just leading space, and it pushed
   the prose column out of alignment with the top of the rail. */
.legal-body section:first-child{margin-top:0}
.legal-body h2{font-family:var(--font-d);font-weight:var(--w-d);font-size:26px;line-height:1.25;
  color:#000;margin-bottom:14px}
.legal-body h3{font-family:var(--font-d);font-weight:var(--w-d);font-size:18px;line-height:1.35;
  color:#000;margin:26px 0 8px}
.legal-body p{color:var(--light);margin-bottom:14px}
.legal-body p:last-child{margin-bottom:0}
.legal-body ul{margin:0 0 14px;padding-left:20px;color:var(--light)}
.legal-body li{margin-bottom:8px}
.legal-body li::marker{color:var(--gray)}
.legal-body strong{color:#000;font-weight:700}
.legal-body a:not(.btn){color:var(--fg);text-decoration:underline;text-underline-offset:3px;
  text-decoration-thickness:1px;text-decoration-color:var(--line2)}
.legal-body a:not(.btn):hover{text-decoration-color:var(--fg)}
.legal-body code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.92em;
  background:#fff;padding:1px 6px;border-radius:6px;box-shadow:inset 0 0 0 1px var(--line)}

/* Conspicuous clauses. UCC 2-316(2) wants the warranty disclaimer to stand out, so these stay
   in capitals — but set smaller, darker and looser than body copy so a wall of caps is still
   readable rather than just loud. */
.legal-body .caps{font-size:14px;line-height:1.75;letter-spacing:.015em;color:#000}

/* callout: the one place these pages raise their voice */
.note{margin:28px 0 0;padding:20px 22px;border-radius:var(--r-card);background:#fff;
  box-shadow:inset 0 0 0 1px var(--line)}
.note p:last-child{margin-bottom:0}
.note.warn{background:#fff2e3;box-shadow:inset 0 0 0 1px rgba(110,70,22,.16)}
.note.warn strong{color:#6e4616}

/* plain-language summary beside the formal clause */
.plain{margin:10px 0 18px;padding-left:16px;border-left:2px solid var(--line2);
  color:var(--gray);font-size:15px}
.plain strong{color:var(--gray);font-weight:700}

/* on-page contents */
.toc{position:sticky;top:120px;margin:0;padding:20px 22px;border-radius:var(--r-card);
  background:#fff;box-shadow:inset 0 0 0 1px var(--line);
  max-height:calc(100vh - 160px);overflow-y:auto}
.toc p{font-family:var(--font-d);font-weight:var(--w-d);font-size:14px;color:#000;margin-bottom:12px}
.toc ol{margin:0;padding-left:18px;color:var(--light);font-size:14px;line-height:1.45}
.toc li{margin-bottom:3px}
.toc a{text-decoration:none}
.toc a:hover{text-decoration:underline;text-underline-offset:3px}

/* ---------- footer: same four columns as the landing page ---------- */
footer{padding:160px 0 48px;margin-top:120px;
  background:linear-gradient(180deg,rgba(222,239,248,0) 0%,#deeff8 58%,#deeff8 100%)}
.fwrap{max-width:var(--w-page);margin:0 auto;padding:0 32px;display:grid;
  grid-template-columns:minmax(0,1.6fr) repeat(3,minmax(0,1fr));gap:40px}
.fleft .brand{display:flex;align-items:center;gap:8px;font-family:var(--font-d);font-weight:var(--w-d);
  font-size:20px;letter-spacing:-.4px;line-height:24px;color:#000}
.fleft .brand svg path{fill:#000}
.fleft .tag{margin-top:16px;max-width:300px;font-size:14px;line-height:1.6;color:rgba(0,0,0,.58)}
.socials{display:flex;gap:8px;margin-top:24px}
.socials a{width:40px;height:40px;border-radius:4px;display:flex;align-items:center;justify-content:center;
  color:#000;transition:background .3s ease}
.socials a:hover{background:rgba(0,0,0,.06)}
.socials svg{width:19px;height:19px}
.fcol .lbl{font-family:var(--font-d);font-weight:var(--w-d);font-size:14px;color:#000;margin-bottom:14px}
.fcol a,.fcol .soon-link{display:block;font-size:14px;margin-bottom:10px;transition:color .3s ease}
.fcol a{color:#000}
.fcol a:hover{opacity:.7}
.fcol .soon-link{color:rgba(0,0,0,.58);cursor:default}
.soon-tag{display:inline-block;margin-left:6px;padding:1px 6px;border-radius:999px;font-size:11px;
  line-height:16px;color:rgba(0,0,0,.58);box-shadow:inset 0 0 0 1px rgba(0,0,0,.18)}
.fbar{max-width:var(--w-page);margin:44px auto 0;padding:22px 32px 0;display:flex;
  justify-content:space-between;gap:16px;flex-wrap:wrap;box-shadow:inset 0 1px 0 var(--line)}
.fbar p{font-size:13px;color:rgba(0,0,0,.58);font-weight:700}

@media (max-width:1160px){
  body>nav .links{gap:20px}
}
@media (max-width:900px){
  .legal-cols{grid-template-columns:1fr;gap:0}
  .toc{position:static;max-height:none;order:-1;margin-bottom:8px}
}
@media (max-width:700px){
  body>nav{padding:16px}
  .navin{height:56px;padding:0 14px}
  body>nav .brand{font-size:18px}
  .btn{height:36px;padding:0 14px;font-size:14px}
  /* burger sits outboard of the wordmark, matching the marketing pages */
  .nav-burger{display:flex;grid-column:1;margin-left:-9px}
  .navin{grid-template-columns:auto auto 1fr;column-gap:4px}
  body>nav .brand{grid-column:2}
  body>nav .links{position:absolute;grid-column:1 / -1;top:calc(100% + 10px);left:0;right:0;z-index:2;
    flex-direction:column;align-items:stretch;gap:2px;padding:8px;background:#fff;border-radius:16px;
    box-shadow:0 14px 34px rgba(10,20,30,.18);opacity:0;visibility:hidden;transform:translateY(-6px);
    transition:opacity .22s ease,transform .22s ease,visibility .22s}
  body>nav[data-open] .links{opacity:1;visibility:visible;transform:none}
  body>nav .links a{padding:13px 14px;border-radius:11px;color:var(--fg)}
  body>nav .links a:hover{background:rgba(0,0,0,.05)}
  .legal{padding:120px 20px 0}
  .legal-head h1{font-size:34px}
  .legal-head{margin-bottom:40px}
  .legal-body section{margin-top:40px}
  .legal-body h2{font-size:22px}
  .fwrap{grid-template-columns:1fr 1fr;gap:34px 24px;padding:0 20px}
  .fleft{grid-column:1 / -1}
  .fbar{flex-direction:column;gap:8px;padding:0 20px;box-shadow:none;margin-top:34px}
  footer{padding:100px 0 40px;margin-top:80px}
}
@media (prefers-reduced-motion:reduce){
  *{transition:none!important;animation:none!important}
}

/* Placeholders that must be filled before these pages are relied on. Deliberately loud —
   they should be impossible to miss in review. */
.fill{background:#ffe9c9;color:#6e4616;padding:1px 6px;border-radius:5px;font-weight:700;
  box-shadow:inset 0 0 0 1px rgba(110,70,22,.3)}
