*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* ── Brand Palette ── */
    --navy: #0A1628;
    /* Primary dark — nav, hero, stats */
    --navy-mid: #132035;
    /* Secondary dark */
    --navy-light: #1E3A5F;
    /* Hover states, mid-dark bg */
    --blue: #2563EB;
    /* Links, info */

    --gold: #D4A017;
    /* Primary accent — CTAs, underlines */
    --gold-dark: #B8860B;
    /* Hover state for gold */
    --gold-glow: rgba(212, 160, 23, 0.12);
    --gold-border: rgba(212, 160, 23, 0.25);

    --green: #0F7A3C;
    /* Savings, positive values */
    --red: #C0392B;
    /* Negative values, errors */
    --whatsapp: #25D366;

    /* ── Text ── */
    --text-primary: #1A1A2E;
    /* Headings, body */
    --text-secondary: #6B7A8D;
    /* Subtitles, captions */
    --text-muted: #9CA3AF;
    /* Placeholders, hints */

    /* ── Surfaces ── */
    --bg: #FFFFFF;
    --bg-soft: #FAFAF8;
    /* Warm off-white sections */
    --bg-surface: #FFFFFF;
    --border: #E4E4E0;
    /* Warm neutral border */
    --border-focus: var(--gold);

    /* ── Errors ── */
    --err: #E5484D;
    --err-bg: rgba(229, 72, 77, 0.08);
    --err-border: rgba(229, 72, 77, 0.30);

    /* ── Spacing scale (8px base) ── */
    --sp-1: 4px;
    --sp-2: 8px;
    --sp-3: 12px;
    --sp-4: 16px;
    --sp-5: 20px;
    --sp-6: 24px;
    --sp-8: 32px;
    --sp-10: 40px;
    --sp-12: 48px;
    --sp-16: 64px;
    --sp-20: 80px;
    --sp-24: 96px;

    /* ── Radius ── */
    --r-sm: 4px;
    --r-md: 8px;
    --r-lg: 12px;
    --r-xl: 16px;
    --r-2xl: 24px;
    --r-full: 9999px;

    /* ── Shadows ── */
    --shadow-xs: 0 1px 4px rgba(10, 22, 40, 0.06);
    --shadow-sm: 0 2px 10px rgba(10, 22, 40, 0.08);
    --shadow-md: 0 8px 28px rgba(10, 22, 40, 0.10);
    --shadow-lg: 0 20px 60px rgba(10, 22, 40, 0.14);
    --shadow-gold: 0 8px 32px rgba(212, 160, 23, 0.22);

    /* ── Typography ── */
    --font-display: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* ── Animation ── */
    --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-out: cubic-bezier(0.0, 0.0, 0.2, 1.0);
    --dur-fast: 0.15s;
    --dur-med: 0.30s;
    --dur-slow: 0.55s;

    /* ── Layout ── */
    --nav-h: 68px;
    --max-w: 1240px;
}


/* ============================================================
   2. BASE & TYPOGRAPHY
============================================================ */

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    background: var(--bg);
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
}

ul,
ol {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
}

input,
select,
textarea {
    font-family: inherit;
}

abbr[title] {
    text-decoration: none;
}

/* ============================================================
   2. LEGAL SPECIFIC CSS
============================================================ */

.legal-page {
    padding: 110px 0 80px;
    background: #F9F9F7;
    min-height: 100vh;
}

.legal-topbar {
    margin-bottom: 24px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0A1628;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid #E4E4E0;
    background: #fff;
    transition: all .2s ease;
}

.back-link:hover {
    border-color: #D4A017;
    color: #D4A017;
    transform: translateX(-2px);
}

.legal-hero {
    padding-bottom: 32px;
}

.legal-content {
    background: #fff;
    padding: 48px;
    border-radius: 18px;
    border: 1px solid #E4E4E0;
    box-shadow: 0 10px 30px rgba(10, 22, 40, .05);
}

.legal-content h2 {
    margin-top: 32px;
    font-size: 22px;
}

.legal-content p,
.legal-content li {
    line-height: 1.75;
    color: #334155;
}

@media (max-width: 768px) {
    .legal-page {
        padding: 88px 0 48px;
    }

    .legal-content {
        padding: 28px 22px;
        border-radius: 14px;
    }

    .legal-content h1,
    .legal-hero h1 {
        font-size: 32px;
        line-height: 1.2;
    }

    .legal-content h2 {
        font-size: 19px;
    }

    .back-link {
        font-size: 13px;
        padding: 9px 14px;
    }
}

@media (max-width: 480px) {
    .legal-content {
        padding: 22px 18px;
    }

    .legal-hero h1 {
        font-size: 28px;
    }
}