/* Clublio — legal pages (terms + privacy)
   Plain, readable document theme. Light by default, dark-aware. */

:root{
  --bg:#EEF1FB;
  --surface:#FFFFFF;
  --text:#1B1F3B;
  --muted:#4E5480;
  --line:rgba(27,31,59,.10);
  --accent:#4F5EF0;
  --accent-strong:#3B45C4;
  --measure:42rem;
  --step-angle:150deg;   /* stripes parallel to the mark's climb */
  --pad:clamp(20px,5vw,32px);
}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:'Instrument Sans',-apple-system,BlinkMacSystemFont,system-ui,sans-serif;
  font-size:clamp(16px,1.05vw,17px);
  line-height:1.7;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
a{color:var(--accent);text-decoration:underline;text-underline-offset:2px;text-decoration-thickness:1px}
a:hover,a:focus-visible{color:var(--accent-strong)}
:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:2px}

/* ---------- Header ---------- */
.site-head{
  position:sticky;top:0;z-index:20;
  background:rgba(255,255,255,.62);
  -webkit-backdrop-filter:blur(22px) saturate(180%);backdrop-filter:blur(22px) saturate(180%);
  display:flex;align-items:center;justify-content:space-between;gap:16px;
  padding:16px var(--pad);
  border-bottom:1px solid rgba(255,255,255,.75);
  box-shadow:inset 0 -1px 0 0 rgba(79,94,240,.10), 0 6px 22px rgba(40,45,90,.06);
}
.brand{display:inline-flex;align-items:center;gap:9px;text-decoration:none}
.brand__mark{width:26px;height:26px;flex:none}
.brand__mark .tier{fill:currentColor}
.brand__mark .tier--1{fill:#4F5EF0}
.brand__mark .tier--2{fill:#8B93F8}
.brand__mark .tier--3{fill:#C9B6FF}
.brand__word{color:var(--text);font-weight:800;letter-spacing:.16em;font-size:13px}
.site-head__meta{font-size:12px;letter-spacing:.06em;color:var(--muted)}

/* ---------- Layout ---------- */
.wrap{
  max-width:var(--measure);
  margin:0 auto;
  padding:clamp(32px,6vh,56px) var(--pad) clamp(48px,8vh,72px);
}

/* ---------- Page head ---------- */
.doc-head{margin-bottom:clamp(24px,4vh,36px)}
.eyebrow{
  margin:0 0 10px;display:flex;align-items:center;gap:10px;
  font-size:12px;letter-spacing:.14em;text-transform:uppercase;color:var(--muted);
}
/* a short run of risers, echoing the mark's climb */
.eyebrow .rule{
  display:block;width:34px;height:7px;flex:none;opacity:.7;
  border-top:1px solid currentColor;border-bottom:1px solid currentColor;
  background-image:repeating-linear-gradient(var(--step-angle),
    currentColor 0 1.5px, transparent 1.5px 9px);
}
h1{
  margin:0;
  font-weight:800;
  font-size:clamp(28px,4.5vw,38px);line-height:1.15;letter-spacing:-.01em;
}
.updated{margin:10px 0 0;font-size:14px;color:var(--muted)}

h1,h2,h3{font-family:'Manrope',system-ui,sans-serif;letter-spacing:-.025em}

/* ---------- Long-form typography ---------- */
.prose h2{
  margin:2.2em 0 0;
  font-weight:700;
  font-size:clamp(19px,2vw,22px);line-height:1.3;
}
.prose h3{margin:1.6em 0 0;font-size:17px;font-weight:700}
.prose p{margin:.9em 0 0}
.prose h2 + p,.prose h3 + p{margin-top:.5em}
.prose ul{margin:.9em 0 0;padding-left:1.3em}
.prose li{margin:.4em 0}
.prose li::marker{color:var(--muted)}
.prose strong{font-weight:700}

/* ---------- Cross-links + footer ---------- */
.doc-links{
  display:flex;flex-wrap:wrap;gap:10px 22px;align-items:center;
  margin-top:clamp(36px,5vh,52px);
  padding-top:clamp(20px,3vh,28px);
  border-top:1px solid transparent;
  border-image:linear-gradient(90deg,
    transparent 0%, rgba(79,94,240,.10) 14%, rgba(79,94,240,.26) 50%, rgba(79,94,240,.10) 86%, transparent 100%) 1;
  font-size:15px;
}
.pill{
  position:relative;isolation:isolate;
  display:inline-flex;align-items:center;gap:8px;
  padding:9px 17px;border-radius:999px;
  text-decoration:none;font-weight:600;font-size:14.5px;
  color:var(--accent-strong);
  background:rgba(255,255,255,.55);
  -webkit-backdrop-filter:blur(20px) saturate(180%);backdrop-filter:blur(20px) saturate(180%);
  border:1px solid rgba(255,255,255,.72);
  box-shadow:
    inset 0 1px 0 0 rgba(255,255,255,.9),
    inset 0 -1px 0 0 rgba(255,255,255,.32),
    0 1px 2px rgba(40,45,90,.05), 0 8px 22px rgba(40,45,90,.09);
  transition:transform .25s cubic-bezier(.22,.7,.3,1), box-shadow .25s cubic-bezier(.22,.7,.3,1);
}
.pill::before{
  content:'';position:absolute;inset:0;z-index:-1;pointer-events:none;border-radius:inherit;
  background:linear-gradient(135deg,
    rgba(255,255,255,.6) 0%, rgba(255,255,255,.08) 26%, rgba(255,255,255,0) 54%, rgba(255,255,255,.4) 100%);
}
.pill:hover{
  color:var(--accent-strong);transform:translateY(-2px);
  box-shadow:
    inset 0 1px 0 0 rgba(255,255,255,.95),
    inset 0 -1px 0 0 rgba(255,255,255,.32),
    0 2px 4px rgba(40,45,90,.06), 0 16px 34px rgba(40,45,90,.13);
}
.pill svg{width:14px;height:14px;fill:currentColor}

.site-foot{
  max-width:var(--measure);margin:0 auto;
  display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;
  padding:20px var(--pad) clamp(28px,5vh,40px);
  border-top:1px solid transparent;
  border-image:linear-gradient(90deg,
    transparent 0%, rgba(79,94,240,.10) 14%, rgba(79,94,240,.26) 50%, rgba(79,94,240,.10) 86%, transparent 100%) 1;
  font-size:13px;color:var(--muted);
}
.site-foot a{color:var(--muted)}
.site-foot a:hover{color:var(--accent-strong)}

/* ---------- Responsive ---------- */
@media (max-width:640px){
  :root{--pad:20px}
  .site-foot{flex-direction:column;align-items:flex-start;gap:6px}
  .site-foot__r{display:none}
}
