/* Shared styles for legal pages (Privacy Policy, Terms of Service) —
   mirrors the relevant base styles from index.html so these pages
   match the main site's nav, footer, and dark theme. */

:root {
  --navy-950: #050a1a;
  --navy-900: #08122b;
  --navy-800: #0A1E4D;
  --navy-700: #122a66;
  --navy-600: #1c3d8a;
  --ink: #ffffff;
  --ink-2: rgba(255,255,255,0.78);
  --ink-3: rgba(255,255,255,0.62);
  --ink-4: rgba(255,255,255,0.42);
  --paper: #050a1a;
  --paper-2: #0b1530;
  --paper-3: #0f1c3d;
  --rule: rgba(255, 255, 255, 0.08);
  --rule-strong: rgba(255, 255, 255, 0.16);
  --accent: #6fa0ff;
  --accent-glow: #9bb4ff;
  --teal: #29c5c5;
  --radius: 14px;
  --container: 1200px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- Wordmark ---------- */
.wm {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-weight: 600;
  letter-spacing: 0.18em;
  font-size: 18px;
  color: #fff;
}
.wm-mark {
  display: block;
  height: 40px;
  width: auto;
}
.wm.on-dark { color: #fff; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 10, 26, 0.72);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--rule);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
}
.nav-links a:hover { color: #fff; }
.nav-cta {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, background .18s ease, color .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--navy-800);
  color: #fff;
}
.btn-primary:hover { background: var(--navy-700); }

@media (max-width: 980px) {
  .nav-links { display: none; }
}

/* ---------- Legal content ---------- */
.legal-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 0 120px;
}
.legal-content h1 {
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-weight: 600;
  font-size: clamp(32px, 5vw, 48px);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 12px;
}
.legal-updated {
  color: var(--ink-3);
  font-size: 14px;
  margin: 0 0 48px;
}
.legal-content h2 {
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-weight: 600;
  font-size: 24px;
  letter-spacing: -0.01em;
  color: #fff;
  margin: 48px 0 16px;
}
.legal-content h2:first-of-type { margin-top: 0; }
.legal-content h3 {
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-weight: 600;
  font-size: 17px;
  color: #fff;
  margin: 28px 0 10px;
}
.legal-content p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-2);
  margin: 0 0 16px;
}
.legal-content ul, .legal-content ol {
  margin: 0 0 16px;
  padding-left: 22px;
}
.legal-content li {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-2);
  margin-bottom: 8px;
}
.legal-content a {
  color: var(--accent-glow);
  text-decoration: underline;
}
.legal-content strong { color: #fff; }
.legal-content .legal-org {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  color: var(--ink-3);
  font-size: 14px;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--navy-950);
  color: rgba(255,255,255,0.6);
  padding: 80px 0 40px;
}
.footer-legal {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: rgba(255,255,255,0.45);
}
.footer-legal a {
  color: rgba(255,255,255,0.55);
  transition: color .15s ease;
}
.footer-legal a:hover { color: #fff; }
