﻿:root {
    --bg-page: #050505;
    --bg-card: #0f1014;
    --text-main: #e4e4e7;
    --text-muted: #a1a1aa;
    --primary: #0ea5e9;
    --border: rgba(255, 255, 255, 0.08);
    --highlight: rgba(14, 165, 233, 0.15);
}

body.light-mode {
    --bg-page: #eef1f7;
    --bg-card: #ffffff;
    --text-main: #0f172a;
    --text-muted: #475569;
    --primary: #0284c7;
    --border: rgba(15, 23, 42, 0.12);
    --highlight: rgba(2, 132, 199, 0.12);
}

body {
    background-color: var(--bg-page);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.7; 
    margin: 0;
}

html { scroll-behavior: smooth; }

.privacy-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* --- HEADER --- */
.doc-header {
    text-align: center;
    margin-bottom: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border);
}

.badge-legal {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
    color: var(--primary);
    border: 1px solid rgba(14, 165, 233, 0.3);
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 16px;
    display: inline-block;
}

h1 {
    font-size: 2.5rem; /* Ajustado para titulos largos */
    margin: 10px 0;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.meta-info {
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 0.9rem;
    color: #71717a;
    margin-top: 16px;
}
.meta-info span { display: flex; align-items: center; gap: 6px; }

/* --- LAYOUT --- */
.doc-container {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 60px;
}

/* Sidebar Sticky */
.doc-sidebar {
    position: sticky;
    top: 40px;
    height: fit-content;
}

.nav-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

.doc-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
    border-left: 1px solid var(--border);
}

.doc-sidebar li a {
    display: block;
    text-decoration: none;
    color: var(--text-muted);
    padding: 8px 0 8px 20px;
    font-size: 0.9rem;
    border-left: 2px solid transparent;
    margin-left: -1px;
    transition: 0.2s;
}

.doc-sidebar li a:hover, .doc-sidebar li a.active {
    color: var(--primary);
    border-left-color: var(--primary);
    background: linear-gradient(90deg, rgba(14,165,233,0.05), transparent);
}

/* --- CONTENIDO --- */
.doc-content h2 {
    font-size: 1.8rem;
    margin-top: 60px;
    margin-bottom: 24px;
    color: #fff;
    scroll-margin-top: 80px; /* Para que el sticky header no lo tape */
}
.doc-content p { margin-bottom: 16px; color: #d4d4d8; }
.highlight { color: var(--primary); font-family: monospace; }
.link-highlight { color: var(--primary); text-decoration: none; font-weight: 500; }

.divider { height: 1px; background: var(--border); margin: 40px 0; }

/* --- COMPONENTES --- */

/* Tarjetas Informativas */
.info-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 24px;
    border-radius: 12px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.icon-large { font-size: 2rem; color: var(--primary); }

/* Subsecciones (A, B, C) */
.subsection-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border);
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 24px;
}
.subsection-card h3 {
    margin-top: 0;
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 16px;
}

/* Listas */
.detail-list, .check-list { 
    padding-left: 20px; 
    color: var(--text-main); 
    margin-bottom: 16px; 
}
.detail-list li, .check-list li { margin-bottom: 8px; }

.check-list { list-style: none; padding-left: 0; }
.check-list li { display: flex; gap: 12px; align-items: center; }
.check-list i { color: var(--primary); font-size: 1.1rem; }

.with-icons { list-style: none; padding-left: 0; }
.with-icons li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.with-icons i { color: var(--primary); margin-top: 4px; }

/* Notas */
.note-box {
    background: rgba(234, 179, 8, 0.1);
    color: #facc15;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    border: 1px solid rgba(234, 179, 8, 0.2);
    display: flex; gap: 10px; align-items: flex-start;
    margin-top: 16px;
}

/* Grid de Finalidades */
.purposes-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}
.purpose-column { 
    background: var(--bg-card); 
    padding: 20px; 
    border-radius: 12px; 
    border: 1px solid var(--border); 
}
.purpose-column h4 { margin-top: 0; display: flex; align-items: center; gap: 8px; color: #fff; }
.purpose-column ul { list-style: none; padding: 0; margin-bottom: 0; }
.purpose-column li { 
    padding: 8px 0; 
    border-bottom: 1px solid rgba(255,255,255,0.03); 
    font-size: 0.95rem; 
    color: var(--text-muted);
}
.purpose-column li:last-child { border-bottom: none; }

/* Grid Simple (RetenciÃ³n) */
.grid-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}
.feature-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border);
    padding: 24px;
    border-radius: 12px;
}
.card-icon { 
    width: 40px; height: 40px; 
    background: rgba(255,255,255,0.05); 
    border-radius: 8px; 
    display: flex; align-items: center; justify-content: center;
    color: var(--primary); font-size: 1.2rem;
    margin-bottom: 16px;
}
.feature-card h3 { margin: 0 0 10px 0; font-size: 1rem; color: #fff; }
.feature-card p { margin: 0; font-size: 0.9rem; color: var(--text-muted); }

/* Links Externos */
.external-links-box {
    margin-top: 20px;
    background: rgba(255,255,255,0.02);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border);
}
.links-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
}
.btn-outline {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.85rem;
    transition: 0.2s;
    background: rgba(0,0,0,0.2);
}
.btn-outline:hover { background: white; color: black; }

/* ARCO Box */
.arco-box {
    background: linear-gradient(135deg, rgba(14,165,233,0.1), transparent);
    border: 1px solid var(--primary);
    padding: 30px;
    border-radius: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}
.arco-list { margin: 10px 0 0 20px; font-size: 0.9rem; color: #ddd; }
.btn-primary {
    background: var(--primary);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: flex; gap: 8px; align-items: center;
    transition: 0.2s;
    white-space: nowrap;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(14,165,233,0.3); }

/* Footer */
.legal-footer {
    margin-top: 80px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
}

/* --- LIGHT MODE OVERRIDES --- */
body.light-mode h1 {
    background: linear-gradient(to right, #0f172a, #64748b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.light-mode .doc-content h2 {
    color: var(--text-main);
}

body.light-mode .doc-content p {
    color: var(--text-muted);
}

body.light-mode .subsection-card,
body.light-mode .info-card,
body.light-mode .purpose-column,
body.light-mode .feature-card,
body.light-mode .external-links-box {
    background: rgba(15, 23, 42, 0.02);
    border-color: var(--border);
}

body.light-mode .card-icon {
    background: rgba(15, 23, 42, 0.06);
}

body.light-mode .subsection-card h3,
body.light-mode .purpose-column h4 {
    color: var(--text-main);
}

body.light-mode .feature-card h3 {
    color: var(--text-main);
}

body.light-mode .btn-outline {
    background: #ffffff;
    color: #0f172a;
    border-color: var(--border);
}

body.light-mode .btn-outline:hover {
    background: #0f172a;
    color: #ffffff;
}

body.light-mode .note-box {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.3);
    color: #92400e;
}

body.light-mode .arco-box {
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.12), rgba(2, 132, 199, 0.02));
    border-color: rgba(2, 132, 199, 0.4);
}

body.light-mode .arco-list {
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 850px) {
    .doc-container { grid-template-columns: 1fr; }
    .doc-sidebar { display: none; }
    .purposes-wrapper, .grid-cards { grid-template-columns: 1fr; }
    .arco-box { flex-direction: column; align-items: flex-start; gap: 20px; }
    .arco-action { width: 100%; }
    .btn-primary { width: 100%; justify-content: center; }
}


