/* ============================================================
   GRIT — Legal Pages (Terms + Privacy)
   legal.css
   ============================================================ */

body { background: #05060f; }

/* ── Navbar ───────────────────────────────────────────────── */
.legal-nav {
  position: sticky; top: 0; z-index: 99;
  height: 64px; padding: 0 32px;
  display: flex; align-items: center;
  justify-content: space-between;
  background: rgba(5,6,15,0.95);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  backdrop-filter: blur(20px);
}
.legal-nav-back {
  font-size: 13px; color: var(--text-muted);
  text-decoration: none; font-weight: 500;
  transition: color 0.15s;
}
.legal-nav-back:hover { color: #fff; }

/* ── Page ─────────────────────────────────────────────────── */
.legal-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 28px 100px;
}

/* ── Hero ─────────────────────────────────────────────────── */
.legal-hero {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin: 32px 0 48px;
  padding: 56px 52px;
}
.legal-hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 55% 100% at 10% 50%, rgba(124,124,255,0.14) 0%, transparent 65%),
    linear-gradient(135deg, rgba(5,6,15,0.98), rgba(10,12,24,0.95));
}
.legal-hero-content { position: relative; z-index: 1; }
.legal-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 14px; border-radius: 99px;
  background: var(--purple-dim); border: 1px solid var(--border-lit);
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--purple);
  margin-bottom: 16px;
}
.legal-hero h1 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 52px; font-weight: 700;
  background: linear-gradient(135deg, #fff 30%, #a89bff 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; margin-bottom: 8px; line-height: 1.05;
}
.legal-hero p { font-size: 14px; color: var(--text-muted); }

/* ── Body layout ──────────────────────────────────────────── */
.legal-body {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  align-items: start;
}

/* ── TOC ──────────────────────────────────────────────────── */
.legal-toc {
  position: sticky;
  top: 88px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 20px;
  backdrop-filter: blur(12px);
}
.toc-title {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-muted); margin-bottom: 14px;
  padding-bottom: 10px; border-bottom: 1px solid var(--border);
}
.legal-toc a {
  display: block; padding: 7px 10px;
  font-size: 13px; color: var(--text-muted);
  text-decoration: none; border-radius: var(--radius-sm);
  transition: all 0.15s; margin-bottom: 2px; line-height: 1.4;
}
.legal-toc a:hover {
  color: var(--purple); background: var(--purple-dim);
}

/* ── Content ──────────────────────────────────────────────── */
.legal-content section {
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.legal-content section:last-child {
  border-bottom: none; margin-bottom: 0;
}

.legal-content h2 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 28px; font-weight: 700;
  color: #fff; margin-bottom: 16px; letter-spacing: 0.3px;
  scroll-margin-top: 100px;
}

.legal-content h3 {
  font-size: 15px; font-weight: 700;
  color: var(--text); margin: 20px 0 10px;
}

.legal-content p {
  font-size: 15px; color: rgba(200,205,230,0.78);
  line-height: 1.85; margin-bottom: 16px;
}
.legal-content p:last-child { margin-bottom: 0; }

.legal-content ul {
  margin: 0 0 16px 0; padding-left: 0;
  list-style: none; display: flex; flex-direction: column; gap: 8px;
}
.legal-content ul li {
  font-size: 14px; color: rgba(200,205,230,0.75);
  line-height: 1.65; padding-left: 20px; position: relative;
}
.legal-content ul li::before {
  content: '→'; position: absolute; left: 0;
  color: var(--purple); font-size: 12px;
}
.legal-content strong { color: var(--text); font-weight: 600; }

/* Contact card */
.legal-contact-card {
  background: var(--bg-card); border: 1px solid var(--border-lit);
  border-radius: var(--radius-lg); padding: 20px 24px;
  display: flex; flex-direction: column; gap: 10px;
  font-size: 14px; color: var(--text-muted);
  margin-top: 16px;
}
.legal-contact-card strong { color: var(--text); }

/* ── Footer links ─────────────────────────────────────────── */
.legal-footer-links {
  display: flex; align-items: center; gap: 16px;
  justify-content: center; padding: 48px 0 0;
  font-size: 13px; color: var(--text-muted); flex-wrap: wrap;
}
.legal-footer-links a {
  color: var(--text-muted); text-decoration: none; transition: color 0.15s;
}
.legal-footer-links a:hover { color: #fff; }
.legal-footer-links a.active { color: var(--purple); font-weight: 600; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .legal-body { grid-template-columns: 1fr; }
  .legal-toc { position: static; }
  .legal-hero { padding: 36px 24px; }
  .legal-hero h1 { font-size: 36px; }
  .legal-page { padding: 0 16px 80px; }
}
