/*
 * style.css – Privacidad landing (standalone)
 * Complementa Tailwind CDN. Solo lo que Tailwind no cubre inline.
 */

/* ── Reset ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* ── CSS vars de tipografía (replicadas del brand) ───────────────────────── */
:root {
    --font-heading: 'Allerta',      system-ui, sans-serif;
    --font-display: 'Cuprum',       system-ui, sans-serif;
    --font-body:    'Roboto',       system-ui, sans-serif;
    --font-mono:    'JetBrains Mono', monospace;
}

body  { font-family: var(--font-body); }
h1, h2, h3 { font-family: var(--font-heading); }
h4, h5, h6 { font-family: var(--font-display); }

/* ── Selection ───────────────────────────────────────────────────────────── */
::selection { background-color: #246E3A20; color: inherit; }

/* ── Scrollbar ───────────────────────────────────────────────────────────── */
::-webkit-scrollbar               { width: 6px; height: 6px; }
::-webkit-scrollbar-track         { background: transparent; }
::-webkit-scrollbar-thumb         { background: #cbd5e1; border-radius: 9999px; }
::-webkit-scrollbar-thumb:hover   { background: #94a3b8; }
.dark ::-webkit-scrollbar-thumb   { background: #374151; }
.dark ::-webkit-scrollbar-thumb:hover { background: #4b5563; }

/* ── Topbar backdrop-blur fallback ──────────────────────────────────────── */
@supports not (backdrop-filter: blur(12px)) {
    #topbar { background-color: white !important; }
    .dark #topbar { background-color: #111827 !important; }
}

/* ── Dropdown animation ──────────────────────────────────────────────────── */
@keyframes fade-in {
    from { opacity: 0; transform: translateY(-4px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0)    scale(1);    }
}
.animate-fade-in { animation: fade-in 0.16s ease-out both; }

/* ── Focus ring ──────────────────────────────────────────────────────────── */
:focus-visible {
    outline: 2px solid #246E3A;
    outline-offset: 2px;
    border-radius: 6px;
}

/* ── Legal page typography ───────────────────────────────────────────────── */
.legal-intro {
    font-size: 1rem;
    color: #4b5563;
    line-height: 1.75;
    margin-bottom: 2rem;
    padding: 1rem 1.25rem;
    background: #f0fdf4;
    border-left: 4px solid #246E3A;
    border-radius: 0 0.5rem 0.5rem 0;
}
.dark .legal-intro {
    color: #9ca3af;
    background: #071610;
    border-color: #246E3A;
}

.legal-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #f3f4f6;
}
.dark .legal-section { border-color: #1f2937; }
.legal-section:last-child { border-bottom: none; }

.legal-section h2 {
    font-size: 1.0625rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.75rem;
    padding-left: 0.75rem;
    border-left: 3px solid #246E3A;
}
.dark .legal-section h2 {
    color: #f9fafb;
    border-color: #3dab65;
}

.legal-section p {
    font-size: 0.9375rem;
    color: #374151;
    line-height: 1.75;
    margin-bottom: 0.625rem;
}
.dark .legal-section p { color: #d1d5db; }

.legal-section ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin: 0.5rem 0 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}
.legal-section ul li {
    font-size: 0.9375rem;
    color: #374151;
    line-height: 1.6;
}
.dark .legal-section ul li { color: #d1d5db; }

.legal-note {
    margin-top: 0.875rem;
    padding: 0.75rem 1rem;
    background: #fef9c3;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    color: #713f12;
    line-height: 1.6;
}
.dark .legal-note {
    background: #1c1700;
    color: #fde68a;
}

.legal-link {
    color: #246E3A;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.dark .legal-link { color: #6ec48e; }

/* ── Page entrance animation ─────────────────────────────────────────────── */
.fade-up {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}
