/* ── Reset & Variables ──────────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-dark: #0a0c10;
  --bg-surface: #0f1117;
  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.08);
  --accent: #f59e0b;
  --accent-glow: rgba(245, 158, 11, 0.25);
  --accent-dim: #b45309;
  --text-primary: #f1f5f9;
  --text-muted: #94a3b8;
  --text-faint: #475569;
  --gradient-hero: linear-gradient(135deg, #0a0c10 0%, #0f1117 50%, #111827 100%);
  --font: 'Inter', sans-serif;
  --radius: 16px;
  --radius-sm: 8px;
  --transition: 0.25s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Typography ─────────────────────────────────────────────────────────────── */
h1,
h2,
h3 {
  line-height: 1.2;
  font-weight: 700;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: #fcd34d;
}

/* ── Navbar ─────────────────────────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 64px;
  background: rgba(10, 12, 16, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.nav-logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.3px;
  transition: color var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

.nav-links a.active {
  color: var(--accent);
}

.nav-cta {
  background: var(--accent);
  color: #0a0c10 !important;
  font-weight: 600 !important;
  padding: 8px 20px;
  border-radius: 999px;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition) !important;
}

.nav-cta:hover {
  background: #fcd34d !important;
  color: #0a0c10 !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px var(--accent-glow);
}

/* ── Glass Card ─────────────────────────────────────────────────────────────── */
.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
}

/* ── Buttons ────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #0a0c10;
  box-shadow: 0 0 30px var(--accent-glow);
}

.btn-primary:hover {
  background: #fcd34d;
  color: #0a0c10;
  transform: translateY(-2px);
  box-shadow: 0 6px 32px rgba(245, 158, 11, 0.4);
}

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

/* ── Section Helpers ────────────────────────────────────────────────────────── */
.section {
  padding: 100px 40px;
  max-width: 1100px;
  margin: 0 auto;
}

.section-sm {
  padding: 60px 40px;
  max-width: 860px;
  margin: 0 auto;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-glow);
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

/* ── Footer ─────────────────────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--glass-border);
  padding: 40px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-faint);
}

footer .footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
}

footer .footer-links a {
  color: var(--text-muted);
  font-size: 0.85rem;
}

footer .footer-links a:hover {
  color: var(--accent);
}

/* ── Legal Page Styles ──────────────────────────────────────────────────────── */
.legal-page {
  padding-top: 100px;
  min-height: 100vh;
}

.legal-hero {
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.05) 0%, transparent 100%);
  border-bottom: 1px solid var(--glass-border);
  padding: 60px 40px 48px;
  text-align: center;
}

.legal-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin: 12px 0 8px;
}

.legal-hero p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 40px 80px;
}

.legal-section {
  margin-bottom: 40px;
  padding: 28px 32px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
}

.legal-section h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.legal-section h2::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 18px;
  background: var(--accent);
  border-radius: 4px;
  flex-shrink: 0;
}

.legal-section p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.75;
}

.legal-section ul {
  list-style: none;
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legal-section ul li {
  color: var(--text-muted);
  font-size: 0.95rem;
  padding-left: 20px;
  position: relative;
  line-height: 1.65;
}

.legal-section ul li::before {
  content: '›';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 700;
}

.legal-section .preamble {
  margin-bottom: 12px;
}

.legal-section .closing {
  margin-top: 14px;
}

.legal-section .subsection {
  margin-top: 16px;
}

.legal-section .subsection-title {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.95rem;
  margin: 16px 0 8px 0;
}

/* ── Loading / Error ────────────────────────────────────────────────────────── */
.state-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 80px 40px;
  text-align: center;
}

.spinner {
  width: 44px;
  height: 44px;
  border: 3px solid var(--glass-border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.error-icon {
  font-size: 3rem;
}

.state-card h3 {
  font-size: 1.1rem;
  color: var(--text-primary);
}

.state-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 360px;
}

/* ── Scrollbar ────────────────────────────────────────────────────────────── */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #334155;
}

/* ── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  nav {
    padding: 0 20px;
  }

  .nav-links {
    display: none;
  }

  .section,
  .section-sm {
    padding: 80px 20px;
  }

  .legal-content {
    padding: 32px 20px 60px;
  }

  .legal-hero {
    padding: 48px 20px 36px;
  }

  .legal-section {
    padding: 20px;
  }

  footer {
    padding: 32px 20px;
  }
}