/* Shared header/footer/base styles for utility pages (legal pages, 404).
   Mirrors the design tokens and header/footer rules in index.html so these
   pages feel like the same site. Not used by index.html itself. */
:root{
  color-scheme: dark;
  --navy:#0B132B; --navy-2:#101a3a; --navy-3:#16214a;
  --steel:#E0E1DD; --steel-dim:#a3abc4; --steel-faint:#888EA7;
  --accent:#5B7CFA; --accent-2:#7CE0D3;
  --border: rgba(224,225,221,.14); --border-strong: rgba(224,225,221,.26);
  --radius: 18px; --maxw: 1180px;
  --ease: cubic-bezier(.22,.9,.32,1);
  --tshadow: 0 1px 2px rgba(5,5,10,.95), 0 3px 14px rgba(5,5,10,.8), 0 12px 46px rgba(5,5,10,.82);
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
*{box-sizing:border-box;}
html,body{overflow-x:hidden; overflow-x:clip;}
html{scroll-behavior:smooth;}
body{
  margin:0; background:var(--navy); color:var(--steel);
  font-family:'Switzer',system-ui,-apple-system,sans-serif; line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%;}
h1,h2,h3,h4{font-family:'General Sans',system-ui,sans-serif; font-weight:700; line-height:1.18; text-wrap:balance; margin:0 0 .5em; letter-spacing:-.01em;}
p{margin:0 0 1em;}
a{color:inherit;}
.skip-link{position:absolute; left:12px; top:-60px; background:var(--accent); color:#fff; padding:10px 16px; border-radius:8px; z-index:200; transition:top .2s var(--ease);}
.skip-link:focus{top:12px;}
.wrap{max-width:var(--maxw); margin:0 auto; padding-inline:clamp(20px,5vw,40px);}
:focus-visible{outline:2px solid var(--accent-2); outline-offset:3px; border-radius:4px;}

.btn{display:inline-flex; align-items:center; justify-content:center; gap:8px; padding:14px 26px; border-radius:999px; font-weight:700; font-size:15px; text-decoration:none; cursor:pointer; border:1px solid transparent; font-family:'Switzer',sans-serif; transition:transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease); white-space:nowrap; min-height:44px;}
.btn-primary{background:linear-gradient(135deg,var(--accent),#7A5CF0); color:#fff; box-shadow:0 10px 30px -10px rgba(91,124,250,.7);}
.btn-primary:hover{transform:translateY(-2px); box-shadow:0 16px 38px -8px rgba(91,124,250,.85);}
.btn-ghost{background:transparent; border-color:var(--border-strong); color:var(--steel);}
.btn-ghost:hover{border-color:var(--accent-2); color:var(--accent-2);}

/* nav */
header{position:sticky; top:0; z-index:60; background:rgba(11,19,43,.72); backdrop-filter:blur(14px) saturate(140%); border-bottom:1px solid var(--border);}
.nav{display:flex; align-items:center; justify-content:space-between; padding-block:14px;}
.brand{display:flex; align-items:center; gap:10px; text-decoration:none;}
.brand span{font-family:'General Sans',sans-serif; font-weight:700; font-size:18px; color:var(--steel);}
.nav-links{display:flex; align-items:center; gap:30px; list-style:none; margin:0; padding:0;}
.nav-links a{text-decoration:none; color:var(--steel-dim); font-weight:600; font-size:14.5px; transition:color .25s var(--ease);}
.nav-links a:hover{color:var(--steel);}
.nav-cta{display:flex; align-items:center; gap:16px;}
.burger{display:none; background:none; border:none; color:var(--steel); cursor:pointer; padding:8px;}
.mobile-panel{display:none;}
@media (max-width:860px){
  .nav-links{display:none;}
  .burger{display:flex;}
  .mobile-panel.open{display:flex; flex-direction:column; padding:6px 0 18px; border-top:1px solid var(--border);}
  .mobile-panel a{text-decoration:none; color:var(--steel); font-weight:600; padding:13px 4px; border-bottom:1px solid var(--border); min-height:44px; display:flex; align-items:center;}
  .mobile-panel .btn{ margin-top:10px; align-self:flex-start; }
}
@media (max-width:560px){
  .nav-cta .btn{ display:none; }
}

/* legal / prose content */
main.legal{ padding-block:clamp(56px,9vw,96px); }
.legal .eyebrow{display:inline-flex; align-items:center; gap:8px; font-size:12.5px; font-weight:700; letter-spacing:.14em; text-transform:uppercase; color:var(--accent-2); margin-bottom:16px;}
.legal .eyebrow::before{content:""; width:7px; height:7px; background:var(--accent); transform:rotate(45deg); flex-shrink:0;}
.legal h1{ font-size:clamp(30px,5vw,44px); max-width:20ch; margin-bottom:10px; }
.legal .updated{ color:var(--steel-faint); font-size:13.5px; margin-bottom:44px; }
.legal .prose{ max-width:740px; }
.legal .prose h2{ font-size:clamp(20px,2.6vw,24px); margin-top:2.2em; margin-bottom:.6em; }
.legal .prose h3{ font-size:16.5px; margin-top:1.6em; margin-bottom:.5em; color:var(--steel); }
.legal .prose p, .legal .prose li{ color:var(--steel-dim); font-size:15.5px; }
.legal .prose ul, .legal .prose ol{ padding-left:1.3em; margin:0 0 1em; }
.legal .prose li{ margin-bottom:.5em; }
.legal .prose a{ color:var(--accent-2); text-decoration:underline; }
.legal .prose strong{ color:var(--steel); }
.legal .placeholder{ background:rgba(255,196,0,.1); border:1px dashed rgba(255,196,0,.5); color:#ffd873; padding:2px 8px; border-radius:6px; font-size:.92em; white-space:nowrap; }
.legal .notice{ background:var(--navy-3); border:1px solid var(--border); border-radius:var(--radius); padding:18px 20px; margin-bottom:36px; font-size:14px; color:var(--steel-dim); }
.legal .notice strong{ color:var(--steel); }
.legal table{ width:100%; border-collapse:collapse; margin:1em 0 1.6em; font-size:14.5px; }
.legal table caption{ text-align:left; color:var(--steel-faint); font-size:13px; margin-bottom:8px; }
.legal th, .legal td{ text-align:left; padding:10px 12px; border:1px solid var(--border); color:var(--steel-dim); vertical-align:top; }
.legal th{ color:var(--steel); background:var(--navy-2); }

/* footer */
footer{ border-top:1px solid var(--border); padding-block:48px; }
.footer-grid{ display:flex; justify-content:space-between; gap:32px; flex-wrap:wrap; }
.footer-col h5{ font-family:'General Sans',sans-serif; font-size:13px; letter-spacing:.08em; text-transform:uppercase; color:var(--steel-faint); margin-bottom:14px; }
.footer-col a, .footer-col p{ display:block; color:var(--steel-dim); text-decoration:none; font-size:14.5px; margin-bottom:9px; }
.footer-col a:hover{ color:var(--accent-2); }
.social-row{ display:flex; gap:12px; margin-top:6px; }
.social-row a{ width:40px; height:40px; border:1px solid var(--border-strong); border-radius:10px; display:flex; align-items:center; justify-content:center; margin:0; }
.social-row svg{ width:16px; height:16px; }
.footer-bottom{ margin-top:40px; padding-top:24px; border-top:1px solid var(--border); display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px; font-size:13px; color:var(--steel-faint); }
.footer-logo{ display:flex; align-items:center; gap:10px; margin-bottom:12px; }
.footer-logo img{ height:30px; width:auto; }
.footer-logo span{ font-family:'General Sans',sans-serif; font-weight:700; font-size:17px; }
