/* Same design system as privacy.css */
:root{
  --bg:#f6f7fb;
  --surface:#ffffff;
  --ink:#0b1020;
  --muted:#55627a;
  --line:rgba(15, 23, 42, .10);

  --aqua:#2ee7ff;
  --violet:#7c5cff;
  --mint:#6ef7c8;

  --shadow:0 22px 60px rgba(11,16,32,.10);
  --shadow2:0 40px 90px rgba(11,16,32,.14);
  --radius:26px;

  --max:1100px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:Manrope, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:var(--bg);
  color:var(--ink);
}
a{text-decoration:none;color:inherit}
.wrap{max-width:var(--max);margin:auto;padding:0 24px}

/* ✅ Make anchor jumps land below sticky header (from styles.css) */
section, [id]{ scroll-margin-top: 110px; }

/* Progress bar */
.scroll-progress{
  position:fixed;left:0;top:0;width:100%;height:4px;
  background:rgba(15, 23, 42, .08);
  z-index:9999;
}
.scroll-progress span{
  display:block;height:100%;width:0;
  background:linear-gradient(90deg, rgba(46,231,255,.95), rgba(124,92,255,.95), rgba(110,247,200,.9));
  transition:width .12s linear;
}

/* Header */
.site-header{
  position:sticky;top:0;
  background:rgba(246,247,251,.72);
  backdrop-filter:blur(14px);
  z-index:1000;
  border-bottom:1px solid rgba(15, 23, 42, .10);
}
.nav{display:flex;align-items:center;gap:16px;padding:14px 0}
.brand{display:flex;align-items:center;gap:12px;font-weight:900}
.brand-name{letter-spacing:.2px}

.mark{
  width:54px;height:54px;border-radius:18px;
  position:relative;
  display:grid;place-items:center;
  background:linear-gradient(135deg, rgba(46,231,255,.24), rgba(124,92,255,.24));
  border:1px solid rgba(15, 23, 42, .10);
  box-shadow:0 18px 45px rgba(124,92,255,.12);
  overflow:hidden;
}
.mark::before{
  content:"";
  position:absolute; inset:-40%;
  background:conic-gradient(from 180deg, rgba(46,231,255,.85), rgba(124,92,255,.85), rgba(110,247,200,.75), rgba(46,231,255,.85));
  animation:ring 5.5s linear infinite;
  filter:blur(10px);
  opacity:.55;
}
.mark::after{
  content:"";
  position:absolute; inset:1px;
  background:rgba(246,247,251,.85);
  border-radius:16px;
  border:1px solid rgba(15, 23, 42, .08);
}
@keyframes ring{to{transform:rotate(360deg)}}

.mark img{
  position:relative; z-index:2;
  width:100%; height:100%;
  object-fit:cover;
  border-radius:16px;
}
.mark-fallback{position:relative;z-index:2;font-weight:1100;color:rgba(11,16,32,.85)}
.mark:not(.no-img) .mark-fallback{display:none}

.links{margin-left:auto;display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.links a{
  font-weight:800;
  padding:10px 14px;
  border-radius:999px;
  line-height:1;
  color:rgba(11,16,32,.78);
  border:1px solid transparent;
  transition:transform .18s ease, background .18s ease, border-color .18s ease;
}
.links a:hover{
  background:rgba(124,92,255,.08);
  border-color:rgba(124,92,255,.18);
  transform:translateY(-1px);
}
.links .link-cta{
  background:linear-gradient(135deg, rgba(46,231,255,.22), rgba(124,92,255,.18));
  border:1px solid rgba(124,92,255,.22);
}

/* Hero */
.hero{
  padding:64px 0 26px;
  background:
    radial-gradient(900px 420px at 15% 15%, rgba(46,231,255,.18), transparent 60%),
    radial-gradient(800px 420px at 85% 30%, rgba(124,92,255,.18), transparent 60%),
    linear-gradient(180deg, #ffffff, #f6f7fb);
  border-bottom:1px solid rgba(15, 23, 42, .08);
}
.hero-inner{max-width:920px}
.pill{
  display:inline-flex;align-items:center;
  padding:10px 14px;border-radius:999px;
  font-weight:1000;
  background:rgba(255,255,255,.72);
  border:1px solid rgba(15, 23, 42, .10);
  box-shadow:0 14px 32px rgba(11,16,32,.06);
}
h1{
  margin:14px 0 8px;
  font-family:"Space Grotesk", Manrope, system-ui, sans-serif;
  font-size:46px;
  letter-spacing:-.8px;
}
.lead{margin:0;color:rgba(11,16,32,.68);font-size:16.5px}
.meta{margin-top:10px;color:rgba(11,16,32,.52);font-weight:800;font-size:13px}

/* Legal */
.legal-shell{padding:26px 0 80px}
.legal-wrap{
  display:grid;
  grid-template-columns:280px 1fr;
  gap:18px;
  align-items:start;
}
.toc{
  position:sticky;
  top:92px;
  background:rgba(255,255,255,.75);
  border:1px solid rgba(15, 23, 42, .10);
  border-radius:22px;
  box-shadow:var(--shadow);
  padding:14px;
}
.toc h4{
  margin:2px 6px 10px;
  font-size:13px;
  letter-spacing:.3px;
  color:rgba(11,16,32,.72);
}
.toc a{
  display:block;
  padding:9px 10px;
  border-radius:14px;
  color:rgba(11,16,32,.74);
  font-weight:900;
  font-size:13px;
}
.toc a:hover{
  background:rgba(124,92,255,.08);
  border:1px solid rgba(124,92,255,.14);
}

.legal{
  background:rgba(255,255,255,.78);
  border:1px solid rgba(15, 23, 42, .10);
  border-radius:28px;
  box-shadow:var(--shadow2);
  padding:22px;
}
.legal h2{
  margin:18px 0 10px;
  font-family:"Space Grotesk", Manrope, system-ui, sans-serif;
  font-size:24px;
  letter-spacing:-.3px;
}
.legal p{margin:10px 0;color:rgba(11,16,32,.72);line-height:1.7}
.legal ul{margin:8px 0 16px 20px;color:rgba(11,16,32,.70)}
.legal li{margin:6px 0}

/* Footer */
.site-footer{
  background:linear-gradient(180deg, rgba(255,255,255,.0), rgba(246,247,251,1));
  border-top:1px solid rgba(15, 23, 42, .10);
  padding:70px 0 44px;
}
.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:40px}
.site-footer h4{margin:0 0 12px;font-family:"Space Grotesk", Manrope, system-ui, sans-serif}
.site-footer p,.site-footer a{color:rgba(11,16,32,.72)}
.footer-title{margin:0;font-weight:1100}
.small{font-size:13px}
.dim{opacity:.65}
.active-foot{font-weight:1100}

/* Accessibility */
:focus-visible{
  outline:3px solid rgba(124,92,255,.55);
  outline-offset:2px;
  border-radius:12px;
}

/* Responsive */
@media (max-width:980px){
  .legal-wrap{grid-template-columns:1fr}
  .toc{position:static}
}
@media (max-width:560px){
  .wrap{padding:0 18px}
  h1{font-size:40px}
  .links a{padding:10px 12px}
}
@media (prefers-reduced-motion: reduce){
  *{animation:none!important;transition:none!important;scroll-behavior:auto!important}
}

/* =========================
   ✅ MOBILE HEADER (CENTERED) — from styles.css
   ========================= */
@media (max-width: 680px){

  .site-header{
    padding-top: env(safe-area-inset-top);
  }

  /* stacked & centered */
  .nav{
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 12px 0;
  }

  /* brand centered */
  .brand{
    justify-content: center;
    text-align: center;
    gap: 10px;
  }

  .mark{
    width: 44px;
    height: 44px;
    border-radius: 16px;
  }
  .mark::after{ border-radius: 14px; }

  .brand-name{
    font-size: 16px;
    color: var(--ink);
  }

  /* nav links centered row */
  .links{
    margin-left: 0;
    width: 100%;
    justify-content: center;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 10px;
    padding: 2px 6px 6px;
  }
  .links::-webkit-scrollbar{ display:none; }

  .links a{
    white-space: nowrap;
    font-size: 14px;
    padding: 10px 12px;
  }

  /* CTA slightly bigger but still fits */
  .links .link-cta{
    padding: 11px 16px;
  }

  /* anchor jumps land under taller stacked header */
  section, [id]{ scroll-margin-top: 150px; }
}
