:root{
  --bg:#FFFCF0;
  --surface:#FFFFFF;
  --surface-2:#FFF6D6;
  --ink:#14293F;
  --ink-soft:#4A6C93;
  --blue:#22599A;
  --blue-deep:#133456;
  --yellow:#FFDD00;
  --yellow-deep:#E6C400;
  --line:rgba(20,60,104,0.16);
  --shadow:rgba(19,52,86,0.22);
  --on-blue:#EAF2FB;
  color-scheme: light;
}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    --bg:#0D2440;
    --surface:#133456;
    --surface-2:#0F2C4C;
    --ink:#FFF6D9;
    --ink-soft:#B7C9DE;
    --blue:#5C97D6;
    --blue-deep:#081A30;
    --yellow:#FFDD00;
    --yellow-deep:#FFE666;
    --line:rgba(255,246,217,0.16);
    --shadow:rgba(0,0,0,0.55);
    --on-blue:#EAF2FB;
    color-scheme: dark;
  }
}
:root[data-theme="dark"]{
  --bg:#0D2440;
  --surface:#133456;
  --surface-2:#0F2C4C;
  --ink:#FFF6D9;
  --ink-soft:#B7C9DE;
  --blue:#5C97D6;
  --blue-deep:#081A30;
  --yellow:#FFDD00;
  --yellow-deep:#FFE666;
  --line:rgba(255,246,217,0.16);
  --shadow:rgba(0,0,0,0.55);
  --on-blue:#EAF2FB;
  color-scheme: dark;
}

*{box-sizing:border-box;}
body{
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font-family:"Libre Franklin", "Segoe UI", system-ui, sans-serif;
  overflow-x:hidden;
}
h1,h2,h3{
  font-family:"Poppins", "Segoe UI", sans-serif;
  font-weight:800;
  letter-spacing:0;
  text-transform:uppercase;
  text-wrap:balance;
  margin:0;
  color:var(--ink);
}
a{color:inherit;}
.mono{font-family:"Space Mono", ui-monospace, monospace;}
.eyebrow{
  font-family:"Space Mono", monospace;
  font-size:0.78rem;
  letter-spacing:0.14em;
  text-transform:uppercase;
  color:var(--blue);
  font-weight:700;
}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]) .eyebrow{ color:var(--yellow); }
}
:root[data-theme="dark"] .eyebrow{ color:var(--yellow); }

/* ---------- Topbar ---------- */
.topbar{
  position:fixed; top:0; left:0; right:0; z-index:50;
  padding-top:env(safe-area-inset-top,0px);
  background:rgba(19,52,86,0.86);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  border-bottom:1px solid rgba(255,255,255,0.1);
}
.topbar-row{
  max-width:1180px; margin:0 auto;
  display:flex; align-items:center; justify-content:space-between;
  gap:1rem; padding:0.55rem 1.25rem;
}
.brand{
  display:flex; align-items:center; gap:0.7rem;
  font-family:"Poppins", sans-serif; font-weight:700; font-size:1.05rem; letter-spacing:0.01em;
  text-transform:uppercase; color:#FBFDFB; text-decoration:none;
}
.brand-logo{ height:3.6rem; width:auto; display:block; }
.brand em{ font-style:normal; font-weight:900; color:var(--yellow); }
@media (max-width:480px){ .brand span{ display:none; } }
.nav-links{ display:flex; gap:clamp(0.75rem,1.5vw,1.4rem); list-style:none; margin:0; padding:0; }
.nav-links a{
  font-size:clamp(0.76rem,0.95vw,0.88rem); font-weight:600; text-decoration:none; color:#DCEAE6;
  letter-spacing:0.02em; white-space:nowrap;
}
@media (min-width:761px) and (max-width:1080px){
  .brand span{ display:none; }
  .brand-logo{ height:3.1rem; }
  .nav-cta{ font-size:0.74rem; padding:0.45rem 0.8rem; }
}
.nav-links a:hover{ color:var(--yellow); }
.nav-cta{
  font-family:"Space Mono", monospace; font-weight:700; font-size:0.8rem;
  background:var(--yellow); color:var(--blue-deep); text-decoration:none;
  padding:0.5rem 0.9rem; border-radius:999px; white-space:nowrap;
}
@media (max-width:760px){ .nav-links{ display:none; } }

/* ---------- Legal page content ---------- */
.legal-page{ padding-top:7rem; }
.content{ position:relative; z-index:2; background:var(--bg); }
.section{ max-width:1180px; margin:0 auto; padding:0 1.25rem 5rem; scroll-margin-top:4.5rem; }
.section-head{ max-width:48rem; margin-bottom:2.6rem; }
.section-head h2{ font-size:clamp(1.9rem,4.6vw,2.8rem); margin-top:0.6rem; }
.section-head p{ color:var(--ink-soft); font-size:1.02rem; margin-top:0.8rem; line-height:1.6; }

.back-link{
  display:inline-flex; align-items:center; gap:0.4rem; margin-bottom:1.6rem;
  font-family:"Space Mono",monospace; font-size:0.8rem; font-weight:700;
  color:var(--blue); text-decoration:none;
}
.back-link:hover{ text-decoration:underline; }

.callout{
  margin-top:1.8rem; border-radius:18px;
  padding:1.9rem clamp(1.25rem,4vw,2.4rem); display:flex; flex-direction:column; gap:0.6rem;
}
.callout-chip{
  align-self:flex-start;
  font-family:"Space Mono",monospace; font-weight:700; font-size:0.7rem; letter-spacing:0.1em;
  text-transform:uppercase; padding:0.25rem 0.7rem; border-radius:999px;
}
.callout h3{ font-size:clamp(1.25rem,3vw,1.7rem); margin:0.5rem 0 0; }
.callout p{ line-height:1.65; margin:0; font-size:0.98rem; }

.callout-yellow{ background:var(--yellow); color:var(--blue-deep); }
.callout-yellow h3{ color:var(--blue-deep); }
.callout-yellow p{ color:#1D3B5C; }
.callout-yellow a{ color:var(--blue-deep); font-weight:700; text-decoration:underline; }
.callout-yellow .callout-chip{ background:var(--blue-deep); color:var(--yellow); }

.legal-note{ margin-top:0; margin-bottom:2.2rem; }
.legal-note p{ font-size:0.94rem; }
.legal-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:1rem; margin-bottom:2.4rem; }
.legal-card{ background:var(--surface); border:1px solid var(--line); border-radius:14px; padding:1.25rem 1.4rem; }
.legal-card h3{ font-family:"Libre Franklin",sans-serif; font-weight:800; font-size:0.86rem; text-transform:uppercase; letter-spacing:0.04em; color:var(--blue); margin:0 0 0.5rem; }
.legal-card p{ margin:0; font-size:0.94rem; color:var(--ink-soft); line-height:1.6; }
.legal-card p a{ color:var(--blue); }
.legal-placeholder{ background:rgba(255,221,0,0.28); border-radius:4px; padding:0.03rem 0.35rem; font-weight:700; color:var(--blue-deep); }
:root:not([data-theme="light"]) .legal-placeholder{ color:#fff; }
:root[data-theme="dark"] .legal-placeholder{ color:#fff; }
.legal-text{ max-width:48rem; display:flex; flex-direction:column; gap:1.6rem; }
.legal-text h3{ font-size:1.05rem; margin:0 0 0.4rem; font-family:"Libre Franklin",sans-serif; font-weight:800; }
.legal-text p, .legal-text li{ font-size:0.94rem; color:var(--ink-soft); line-height:1.65; margin:0; }
.legal-text ul{ margin:0.4rem 0 0; padding-left:1.2rem; display:flex; flex-direction:column; gap:0.35rem; }

/* ---------- Footer ---------- */
footer{ background:var(--blue-deep); color:#DCEAE6; padding-block:3.2rem 2.4rem; }
.footer-grid{
  max-width:1180px; margin:0 auto; padding-inline:1.25rem;
  display:flex; flex-wrap:wrap; justify-content:space-between; gap:2rem;
}
.footer-brand-col{ display:flex; flex-direction:column; align-items:flex-start; gap:1rem; }
.footer-brand{ font-family:"Poppins",sans-serif; font-weight:800; font-size:1.25rem; text-transform:uppercase; color:#fff; }
.footer-brand span{ display:block; font-family:"Space Mono",monospace; font-size:0.78rem; color:#9FBBDA; text-transform:none; margin-top:0.3rem; }
.footer-social{
  display:flex; align-items:center; justify-content:center; width:2.4rem; height:2.4rem;
  border-radius:50%; border:1px solid rgba(255,255,255,0.25); color:#DCEAE6; text-decoration:none;
}
.footer-social:hover{ color:var(--yellow); border-color:var(--yellow); }
.footer-links{ display:flex; gap:2.5rem; flex-wrap:wrap; }
.footer-links div{ display:flex; flex-direction:column; gap:0.5rem; }
.footer-links a{ text-decoration:none; color:#DCEAE6; font-size:0.9rem; }
.footer-links a:hover{ color:var(--yellow); }
.footer-links h5{ margin:0 0 0.2rem; font-size:0.72rem; letter-spacing:0.1em; text-transform:uppercase; color:#7C9AC0; font-weight:700; }
.disclaimer{
  max-width:1180px; margin:2.4rem auto 0; padding-inline:1.25rem;
  font-size:0.78rem; color:#7C9AC0; line-height:1.6; border-top:1px solid rgba(255,255,255,0.1); padding-top:1.4rem;
}
.disclaimer a{ color:#B9D3EE; }

@media (max-width:600px){
  .legal-page{ padding-top:6.2rem; }
}
