/* Shared styles for the legal pages (terminos, privacidad, cookies,
   facturacion) — same brand tokens as index.html, kept in sync manually
   since this is a build-free static site. */

:root {
    --brand: #1E4687;
    --brand-dark: #163562;
    --ink: #16243E;
    --accent: #FF6B35;
    --accent-light: #FF8A5C;
    --bg: #F8F9FA;
    --bg-alt: #E8EEF7;
    --surface: #FFFFFF;
    --border-soft: rgba(22, 36, 62, 0.10);
    --border-strong: rgba(22, 36, 62, 0.20);
    --text-muted: #5A7184;
    --success: #4CAF50;
    --success-bg: rgba(76, 175, 80, 0.10);
    --alert: #F44336;
    --alert-bg: rgba(244, 67, 54, 0.08);
    --cream: #FFFFFF;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --radius: 14px;
    --radius-lg: 22px;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 2px 10px rgba(22, 36, 62, 0.06);
    --shadow-md: 0 10px 28px rgba(22, 36, 62, 0.10);
}

:root[data-theme="dark"] {
    --brand: #5A88C4;
    --brand-dark: #2962B3;
    --ink: #E8ECF3;
    --accent: #FF8A5C;
    --accent-light: #FFAE8D;
    --bg: #0B1220;
    --bg-alt: #141C2E;
    --surface: #1B2438;
    --border-soft: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.16);
    --text-muted: #9AA5BE;
    --success: #66BB6A;
    --success-bg: rgba(102, 187, 106, 0.14);
    --alert: #EF5350;
    --alert-bg: rgba(239, 83, 80, 0.14);
    --cream: #E8ECF3;
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 10px 28px rgba(0, 0, 0, 0.35);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; }
body {
    font-family: var(--font-sans);
    color: var(--ink);
    line-height: 1.65;
    background: var(--bg);
    min-height: 100vh;
    transition: background-color 0.25s ease, color 0.25s ease;
}
a { color: inherit; }

.bg-texture {
    position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background:
        radial-gradient(55% 40% at 15% 0%, rgba(255, 107, 53, 0.06), transparent 60%),
        radial-gradient(45% 35% at 100% 10%, rgba(30, 70, 135, 0.06), transparent 60%);
}

.legal-topbar {
    display: flex; align-items: center; justify-content: space-between;
    max-width: 900px; margin: 0 auto; padding: 1.5rem 2rem;
}
.logo { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 800; font-size: 1.1rem; text-decoration: none; color: var(--ink); }
.logo-mark { width: 30px; height: 30px; }
.accent-dot { color: var(--accent); }
.back-link { font-size: 0.9rem; font-weight: 600; text-decoration: none; color: var(--text-muted); }
.back-link:hover { color: var(--brand); }

.legal-doc { max-width: 760px; margin: 0 auto; padding: 1rem 2rem 6rem; }

.legal-tabs {
    display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 2.5rem;
    border-bottom: 1px solid var(--border-soft); padding-bottom: 1rem;
}
.legal-tabs a {
    font-size: 0.86rem; font-weight: 600; text-decoration: none; color: var(--text-muted);
    padding: 0.4rem 0.85rem; border-radius: 100px; transition: var(--transition);
}
.legal-tabs a:hover { background: var(--bg-alt); color: var(--ink); }
.legal-tabs a.active { background: var(--brand); color: #fff; }

.legal-doc h1 { font-size: clamp(1.8rem, 3.4vw, 2.3rem); letter-spacing: -0.01em; margin-bottom: 0.5rem; }
.legal-doc .updated { color: var(--text-muted); font-size: 0.86rem; margin-bottom: 2rem; }
.legal-doc h2 { font-size: 1.2rem; margin: 2.25rem 0 0.85rem; letter-spacing: -0.005em; }
.legal-doc p { margin-bottom: 1rem; color: var(--ink); }
.legal-doc p.intro-note { color: var(--text-muted); }
.legal-doc ul { margin: 0 0 1rem 1.35rem; }
.legal-doc li { margin-bottom: 0.5rem; }
.legal-doc a { color: var(--brand); font-weight: 600; text-decoration: none; }
.legal-doc a:hover { text-decoration: underline; }
.legal-doc table { width: 100%; border-collapse: collapse; margin: 0.5rem 0 1.5rem; font-size: 0.88rem; }
.legal-doc th, .legal-doc td { text-align: left; padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--border-soft); }
.legal-doc th { color: var(--text-muted); font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 700; }

.legal-footer { max-width: 900px; margin: 0 auto; padding: 2rem 2rem 3rem; color: var(--text-muted); font-size: 0.82rem; border-top: 1px solid var(--border-soft); }

@media (max-width: 600px) {
    .legal-topbar, .legal-doc, .legal-footer { padding-left: 1.25rem; padding-right: 1.25rem; }
}
