/* ── RESET & THEME VARIABLES ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary: #4f46e5;
    --primary-light: #6366f1;
    --primary-dark: #3730a3;
    --accent: #06b6d4;
    --accent-light: #0891b2;
    --bg: #ffffff;
    --bg-card: #f8fafc;
    --bg-card-hover: #f1f5f9;
    --text: #1e293b;
    --text-muted: #64748b;
    --text-heading: #0f172a;
    --border: rgba(0,0,0,0.08);
    --glow: rgba(99, 102, 241, 0.1);
    --nav-bg: rgba(255,255,255,0.85);
    --nav-bg-mobile: rgba(255,255,255,0.97);
    --scrolled-shadow: rgba(0,0,0,0.06);
    /* Landing page specific */
    --hero-grid-opacity: 0.04;
    --hero-gradient-1: rgba(79,70,229,0.06);
    --hero-gradient-2: rgba(6,182,212,0.04);
    --badge-bg: rgba(6,182,212,0.08);
    --badge-border: rgba(6,182,212,0.15);
    --btn-secondary-bg: rgba(0,0,0,0.04);
    --btn-secondary-border: rgba(0,0,0,0.1);
    --btn-secondary-hover-bg: rgba(0,0,0,0.08);
    --btn-secondary-hover-border: rgba(0,0,0,0.15);
    --tag-bg: rgba(0,0,0,0.04);
    --card-hover-shadow: rgba(0,0,0,0.08);
    --card-hover-border: rgba(99,102,241,0.15);
    --workflow-bg: rgba(79,70,229,0.02);
    --step-number-color: rgba(99,102,241,0.12);
}

[data-theme="dark"] {
    --accent-light: #22d3ee;
    --bg: #0f0f1a;
    --bg-card: #1a1a2e;
    --bg-card-hover: #22223a;
    --text: #e2e8f0;
    --text-muted: #94a3b8;
    --text-heading: #ffffff;
    --border: rgba(255,255,255,0.06);
    --glow: rgba(99, 102, 241, 0.15);
    --nav-bg: rgba(15,15,26,0.8);
    --nav-bg-mobile: rgba(15,15,26,0.97);
    --scrolled-shadow: rgba(0,0,0,0.3);
    --hero-grid-opacity: 0.03;
    --hero-gradient-1: rgba(79,70,229,0.15);
    --hero-gradient-2: rgba(6,182,212,0.08);
    --badge-bg: rgba(6,182,212,0.1);
    --badge-border: rgba(6,182,212,0.2);
    --btn-secondary-bg: rgba(255,255,255,0.05);
    --btn-secondary-border: rgba(255,255,255,0.1);
    --btn-secondary-hover-bg: rgba(255,255,255,0.1);
    --btn-secondary-hover-border: rgba(255,255,255,0.2);
    --tag-bg: rgba(255,255,255,0.04);
    --card-hover-shadow: rgba(0,0,0,0.3);
    --card-hover-border: rgba(99,102,241,0.2);
    --workflow-bg: rgba(79,70,229,0.03);
    --step-number-color: rgba(99,102,241,0.1);
}

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
}

a { color: var(--accent); }
strong { color: var(--text-heading); }

/* ── NAV (shared) ── */
nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: box-shadow .3s;
}
nav.scrolled { box-shadow: 0 4px 30px var(--scrolled-shadow); }
.nav-inner {
    max-width: 1200px; margin: auto;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 2rem; height: 70px;
}
.logo {
    font-size: 1.5rem; font-weight: 800; letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    text-decoration: none;
}
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
    color: var(--text-muted); text-decoration: none; font-size: 0.9rem;
    font-weight: 500; transition: color .2s;
}
.nav-links a:hover { color: var(--text-heading); }
.nav-cta {
    padding: 0.6rem 1.5rem; border-radius: 8px; font-weight: 600;
    font-size: 0.9rem; text-decoration: none; color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    transition: transform .2s, box-shadow .2s;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(79,70,229,0.4); }
.nav-back {
    color: var(--text-muted); text-decoration: none; font-size: 0.9rem;
    font-weight: 500; transition: color .2s;
}
.nav-back:hover { color: var(--text-heading); }
.nav-right { display: flex; align-items: center; gap: 0.75rem; }

.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--text); margin: 6px 0; border-radius: 2px; transition: .3s; }

/* ── THEME TOGGLE ── */
.theme-toggle {
    background: none; border: 1px solid var(--border); border-radius: 8px;
    cursor: pointer; padding: 6px 8px; display: flex; align-items: center;
    justify-content: center; color: var(--text-muted); transition: color .2s, border-color .2s;
}
.theme-toggle:hover { color: var(--text-heading); border-color: var(--text-muted); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-moon { display: block; }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }

/* ── FOOTER (shared) ── */
footer {
    padding: 3rem 2rem; border-top: 1px solid var(--border);
}
.footer-inner {
    max-width: 1200px; margin: auto;
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 1rem;
}
.footer-inner--centered {
    max-width: 800px; margin: auto; text-align: center;
    display: block;
}
.footer-brand { font-weight: 700; font-size: 1.1rem; color: var(--text-muted); }
.footer-links { display: flex; gap: 1.5rem; list-style: none; flex-wrap: wrap; }
.footer-inner--centered .footer-links { justify-content: center; margin-bottom: 1rem; }
.footer-links a { color: var(--text-muted); text-decoration: none; font-size: 0.85rem; transition: color .2s; }
.footer-links a:hover { color: var(--text-heading); }
.footer-copy { color: var(--text-muted); font-size: 0.8rem; width: 100%; text-align: center; margin-top: 1.5rem; }

/* ── SUB-PAGE CONTENT (shared by privacy, terms, delete-account, contact) ── */
.content {
    max-width: 800px; margin: 0 auto; padding: 120px 2rem 4rem;
}
.content h1 {
    font-size: 2.2rem; font-weight: 800; letter-spacing: -1px;
    margin-bottom: 0.5rem; color: var(--text-heading);
}
.content h2 {
    font-size: 1.3rem; font-weight: 700; margin-top: 2.5rem;
    margin-bottom: 0.75rem; color: var(--text-heading);
}
.content h3 {
    font-size: 1.1rem; font-weight: 600; margin-top: 1.5rem;
    margin-bottom: 0.5rem; color: var(--primary-light);
}
.content p { margin-bottom: 1rem; color: var(--text-muted); }
.content ul, .content ol { margin-bottom: 1rem; padding-left: 1.5rem; color: var(--text-muted); }
.content li { margin-bottom: 0.4rem; }
.last-updated {
    color: var(--text-muted); font-size: 0.9rem; margin-bottom: 2.5rem;
    padding-bottom: 2rem; border-bottom: 1px solid var(--border);
}
.subtitle {
    color: var(--text-muted); font-size: 1.05rem; margin-bottom: 2.5rem;
    padding-bottom: 2rem; border-bottom: 1px solid var(--border);
}
.highlight-box {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 12px; padding: 1.5rem; margin: 1.5rem 0;
}
.warning-box {
    background: rgba(239,68,68,0.06); border: 1px solid rgba(239,68,68,0.15);
    border-radius: 12px; padding: 1.5rem; margin: 1.5rem 0;
}
[data-theme="dark"] .warning-box {
    background: rgba(239,68,68,0.08); border-color: rgba(239,68,68,0.2);
}
.warning-box strong { color: #ef4444; }
table {
    width: 100%; border-collapse: collapse; margin: 1rem 0;
    font-size: 0.9rem;
}
th, td {
    text-align: left; padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
}
th { color: var(--text-heading); font-weight: 600; }
td { color: var(--text-muted); }

/* ── CONTACT PAGE ── */
.contact-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem; margin-top: 2rem;
}
.contact-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 16px; padding: 2rem; transition: border-color .3s;
}
.contact-card:hover { border-color: var(--card-hover-border); }
.contact-icon {
    width: 48px; height: 48px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; margin-bottom: 1rem;
    background: rgba(99,102,241,0.1); color: var(--primary-light);
}
.contact-card h3 {
    font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--text-heading);
}
.contact-card p { font-size: 0.9rem; margin-bottom: 0.75rem; }
.contact-card a { font-weight: 600; font-size: 0.95rem; }
.faq-item {
    border-bottom: 1px solid var(--border); padding: 1.25rem 0;
}
.faq-item:last-child { border-bottom: none; }
.faq-item h3 {
    font-size: 1rem; font-weight: 600; color: var(--text-heading); margin-bottom: 0.5rem;
}
.faq-item p { margin-bottom: 0; font-size: 0.9rem; }

/* ── DELETE ACCOUNT PAGE ── */
.steps { counter-reset: steps; margin: 1.5rem 0; }
.step {
    display: flex; gap: 1rem; margin-bottom: 1.5rem;
    counter-increment: steps;
}
.step-number {
    flex-shrink: 0; width: 36px; height: 36px;
    border-radius: 10px; display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.9rem; color: var(--primary-light);
    background: rgba(99,102,241,0.1); border: 1px solid rgba(99,102,241,0.2);
}
.step-content h3 { margin-top: 0.25rem; }
.step-content p { margin-bottom: 0; }
.email-btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.9rem 2rem; border-radius: 10px; font-weight: 700;
    font-size: 1rem; color: #fff; text-decoration: none;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    box-shadow: 0 4px 20px rgba(79,70,229,0.3);
    transition: transform .2s, box-shadow .2s; margin-top: 0.5rem;
}
.email-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(79,70,229,0.45); }

/* ── RESPONSIVE (shared) ── */
@media (max-width: 768px) {
    .content { padding: 100px 1.5rem 3rem; }
    .content h1 { font-size: 1.7rem; }
    table { font-size: 0.8rem; }
    th, td { padding: 0.5rem; }
}

/* ── ANIMATION ── */
.fade-up {
    opacity: 0; transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
