/* ═══════════════════════════════════════════════════
   Indivyz — Design System
   Shared styles across all site pages
   ═══════════════════════════════════════════════════ */

/* ── Theme variables ─────────────────────────────── */
:root {
  --bg: #0f172a; --bg2: #1e293b; --border: #334155; --text: #f1f5f9;
  --muted: #94a3b8; --subtle: #64748b; --accent: #6366F1; --accent2: #818CF8;
  --success: #10B981; --card: #1e293b; --hover: #263245;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --max-w: 1140px;
}
[data-theme="light"] {
  --bg: #f8fafc; --bg2: #ffffff; --border: #e2e8f0; --text: #1e293b;
  --muted: #475569; --subtle: #64748b; --accent: #4F46E5; --accent2: #6366F1;
  --card: #ffffff; --hover: #f1f5f9;
}

/* ── Reset ───────────────────────────────────────── */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.7; }
a { color: var(--accent2); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }

/* ── Theme toggle ────────────────────────────────── */
.theme-toggle {
  background: none; border: 1px solid var(--border); border-radius: 10px;
  color: var(--muted); cursor: pointer; padding: 8px 10px; display: flex; align-items: center;
  transition: all .15s; box-sizing: border-box;
}
.theme-toggle:hover { color: var(--text); border-color: var(--subtle); }

/* ── Buttons ─────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; background: var(--accent); color: #fff; border-radius: 12px;
  font-size: 1rem; font-weight: 600; transition: all .2s; border: none; cursor: pointer;
  text-decoration: none;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(99,102,241,.35); text-decoration: none; }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; background: transparent; color: var(--text); border-radius: 12px;
  font-size: 1rem; font-weight: 500; border: 1px solid var(--border); transition: all .2s; cursor: pointer;
  text-decoration: none;
}
.btn-secondary:hover { background: var(--hover); border-color: var(--subtle); text-decoration: none; }

/* ── Topbar (legal pages) ────────────────────────── */
.topbar {
  padding: 16px 24px; display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--border);
}
.topbar-logo {
  display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1.15rem;
  color: var(--text); text-decoration: none;
}
.topbar-logo:hover { text-decoration: none; }

/* ── Legal content ───────────────────────────────── */
.legal-content { max-width: 780px; margin: 0 auto; padding: 48px 24px 80px; }
.legal-content h1 { font-size: 1.8rem; font-weight: 800; margin-bottom: 8px; }
.legal-content .updated { font-size: 0.85rem; color: var(--subtle); margin-bottom: 36px; }
.legal-content h2 { font-size: 1.15rem; font-weight: 700; margin: 32px 0 12px; color: var(--text); }
.legal-content h3 { font-size: 1rem; font-weight: 600; margin: 20px 0 8px; color: var(--text); }
.legal-content p { color: var(--muted); margin-bottom: 14px; }
.legal-content ul { color: var(--muted); margin: 0 0 14px 24px; }
.legal-content li { margin-bottom: 6px; }
.legal-content table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 0.9rem; }
.legal-content th, .legal-content td {
  text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--border);
}
.legal-content th { color: var(--text); font-weight: 600; }
.legal-content td { color: var(--muted); }

/* ── Legal footer ────────────────────────────────── */
.legal-footer {
  text-align: center; padding: 20px 24px; font-size: 0.78rem; color: var(--subtle);
  border-top: 1px solid var(--border);
}
.legal-footer a { color: var(--muted); margin: 0 8px; }
.legal-footer a:hover { color: var(--text); text-decoration: none; }

/* ── Section headers ─────────────────────────────── */
.section-header { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-header .label {
  display: inline-block; font-size: 0.8rem; font-weight: 600; color: var(--accent2);
  text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 12px;
}
.section-header h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; margin-bottom: 12px; }
.section-header p { color: var(--muted); font-size: 1rem; }
