/* Shared stylesheet for the standalone legal pages (/terms, /privacy).
   Tokens and base rules below are intentionally kept in sync with the
   inline <style> in index.html so these pages match the landing page's
   design system without pulling in unrelated hero/pricing/phone-mockup CSS. */

:root{
  --bg: #0a0812;
  --bg-soft: #120e1f;
  --violet: #8b5cf6;
  --violet-deep: #5b21b6;
  --magenta: #ff3d81;
  --gold: #ffb020;
  --ink: #f4f1fb;
  --muted: #948fb0;
  --line: rgba(244,241,251,0.09);
  --radius: 18px;
}
*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font-family:'Manrope', sans-serif;
  -webkit-font-smoothing:antialiased;
}
@media (prefers-reduced-motion: reduce){
  *{animation-duration:0.001ms !important; animation-iteration-count:1 !important; transition-duration:0.001ms !important;}
}
h1,h2,h3,h4{font-family:'Unbounded', sans-serif; margin:0; line-height:1.25;}
.mono{font-family:'Space Mono', monospace;}
a{color:var(--violet);}
a:hover{color:var(--ink);}
.wrap{max-width:820px; margin:0 auto; padding:0 28px;}

/* ---- background atmosphere (matches index.html) ---- */
.atmosphere{
  position:fixed; inset:0; z-index:-1; pointer-events:none;
  background:
    radial-gradient(700px 500px at 82% -8%, rgba(139,92,246,0.28), transparent 60%),
    radial-gradient(600px 480px at 10% 15%, rgba(255,61,129,0.14), transparent 60%),
    var(--bg);
}
.grain{
  position:fixed; inset:0; z-index:-1; opacity:0.035; pointer-events:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---- nav (simplified: no language switcher on legal pages, see code comment in each page's <head>) ---- */
nav{
  position:sticky; top:0; z-index:50;
  background:rgba(10,8,18,0.72); backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line);
}
.nav-row{display:flex; align-items:center; justify-content:space-between; padding:18px 28px; max-width:820px; margin:0 auto;}
.logo{display:flex; align-items:center; gap:10px; font-family:'Unbounded'; font-weight:800; font-size:19px; letter-spacing:-0.02em; text-decoration:none; color:var(--ink);}
.logo-dot{width:9px; height:9px; border-radius:50%; background:var(--magenta); box-shadow:0 0 0 0 rgba(255,61,129,0.6); animation:ping 2.2s infinite;}
@keyframes ping{
  0%{box-shadow:0 0 0 0 rgba(255,61,129,0.55);}
  70%{box-shadow:0 0 0 9px rgba(255,61,129,0);}
  100%{box-shadow:0 0 0 0 rgba(255,61,129,0);}
}
.nav-back{font-size:14px; color:var(--muted); text-decoration:none; font-family:'Manrope';}
.nav-back:hover{color:var(--ink);}

/* ---- legal document content ---- */
.legal-page{padding:64px 0 80px;}
.legal-eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  font-family:'Space Mono'; font-size:12.5px; letter-spacing:0.06em; color:var(--gold);
  border:1px solid rgba(255,176,32,0.35); background:rgba(255,176,32,0.06);
  padding:6px 14px; border-radius:999px; margin-bottom:22px;
}
.legal-page h1.legal-title{
  font-size:clamp(32px, 5vw, 48px); font-weight:900; letter-spacing:-0.02em;
  background:linear-gradient(180deg, #ffffff 10%, #cabdfa 100%);
  -webkit-background-clip:text; background-clip:text; color:transparent;
  margin-bottom:14px;
}
.legal-updated{font-family:'Space Mono'; font-size:13px; color:var(--muted); margin-bottom:8px;}
.legal-crosslink{font-size:14px; color:var(--muted); margin-bottom:40px;}
.legal-crosslink a{margin:0 4px;}

.legal-doc{
  background:var(--bg-soft); border:1px solid var(--line); border-radius:var(--radius);
  padding:40px clamp(24px, 5vw, 56px);
}
.legal-doc h2{font-size:22px; font-weight:700; margin-top:44px; margin-bottom:16px; padding-top:20px; border-top:1px solid var(--line);}
.legal-doc h2:first-child{margin-top:0; padding-top:0; border-top:none;}
.legal-doc h3{font-size:17px; font-weight:700; margin-top:28px; margin-bottom:12px;}
.legal-doc h4{font-size:15px; font-weight:700; margin-top:22px; margin-bottom:10px; color:var(--ink);}
.legal-doc p{font-size:15px; line-height:1.7; color:var(--muted); margin:0 0 16px;}
.legal-doc ul{margin:0 0 16px; padding-left:22px; color:var(--muted);}
.legal-doc li{font-size:15px; line-height:1.7; margin-bottom:8px;}
.legal-doc strong{color:var(--ink); font-weight:700;}
.legal-doc a{text-decoration:underline; text-underline-offset:2px;}

footer{border-top:1px solid var(--line); padding:40px 0 60px; margin-top:40px;}
.footer-row{display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:16px; max-width:820px; margin:0 auto; padding:0 28px;}
.footer-legal{display:flex; gap:18px; font-size:13.5px;}
.footer-legal a{color:var(--muted); text-decoration:none;}
.footer-legal a:hover{color:var(--ink);}
.footer-note{color:#524d68; font-size:13px; max-width:820px; margin:24px auto 0; padding:0 28px;}
