/* AIDream — estilo compartido de páginas legales (Privacidad / Términos / Borrado de cuenta).
   Reusa la paleta cósmica del landing. Vanilla, sin build. */

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

:root {
    --bg-dark: #0D0221;
    --bg-card: #1a0b2e;
    --purple-primary: #8B5CF6;
    --purple-light: #A78BFA;
    --gold: #FFD700;
    --text-primary: #FFFFFF;
    --text-secondary: #D1D5DB;
    --text-muted: #9CA3AF;
    --gradient-purple: linear-gradient(135deg, #6B46C1 0%, #8B5CF6 100%);
    --gradient-cosmic: linear-gradient(135deg, #0D0221 0%, #1a0b2e 50%, #2d1b4e 100%);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--gradient-cosmic);
    background-attachment: fixed;
    color: var(--text-secondary);
    line-height: 1.7;
    min-height: 100vh;
}

/* Nav */
.legal-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 2rem;
    background: rgba(13, 2, 33, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
}

.legal-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: 'Poppins', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    text-decoration: none;
    background: var(--gradient-purple);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.legal-brand .brand-icon { font-size: 1.6rem; }

.lang-toggle {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 50px;
    padding: 0.5rem 1rem;
    color: var(--purple-light);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
}
.lang-toggle:hover { background: rgba(139, 92, 246, 0.2); transform: translateY(-2px); }

/* Contenedor */
.legal-container {
    max-width: 820px;
    margin: 0 auto;
    padding: 3rem 1.5rem 5rem;
}

.legal-header { margin-bottom: 2.5rem; }

.legal-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.legal-updated { color: var(--text-muted); font-size: 0.9rem; }

.legal-content h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--purple-light);
    margin: 2.5rem 0 0.9rem;
}

.legal-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 1.5rem 0 0.5rem;
}

.legal-content p { margin-bottom: 1rem; }

.legal-content ul { margin: 0 0 1rem 1.25rem; }
.legal-content li { margin-bottom: 0.5rem; }

.legal-content a { color: var(--purple-light); text-decoration: underline; }
.legal-content a:hover { color: var(--gold); }

.legal-content strong { color: var(--text-primary); }

.legal-callout {
    padding: 1.25rem 1.5rem;
    background: rgba(139, 92, 246, 0.08);
    border-left: 4px solid var(--purple-primary);
    border-radius: 10px;
    margin: 1.5rem 0;
}

.legal-callout.warn {
    background: rgba(255, 152, 0, 0.08);
    border-left-color: #ff9800;
}

.legal-steps {
    counter-reset: step;
    list-style: none;
    margin-left: 0 !important;
}
.legal-steps li {
    position: relative;
    padding-left: 2.5rem;
    margin-bottom: 1rem;
}
.legal-steps li::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 1.7rem;
    height: 1.7rem;
    background: var(--gradient-purple);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
}

.legal-footer {
    text-align: center;
    padding: 2rem 1.5rem;
    border-top: 1px solid rgba(139, 92, 246, 0.15);
    color: var(--text-muted);
    font-size: 0.9rem;
}
.legal-footer a { color: var(--purple-light); text-decoration: none; }

/* Toggle de idioma: por defecto mostramos ES, ocultamos EN */
[data-lang="en"] { display: none; }
body.lang-en [data-lang="es"] { display: none; }
body.lang-en [data-lang="en"] { display: block; }

@media (max-width: 600px) {
    .legal-title { font-size: 1.8rem; }
    .legal-container { padding: 2rem 1.25rem 4rem; }
}
