/* ========== NEKTIVE SYSTEM - LEGAL STYLESHEET V1.1 ========== */
/* 1. - CONFIGURACIÓN DE VARIABLES Y TOKENS - */
:root {
    --bg-color: #0d0e12;
    --surface-color: #14161d;
    --border-color: #222631;
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --accent-color: #00f0ff;
    --accent-purple: #a855f7;
}

/* 2. - RESET GLOBAL - */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.7;
    padding: 40px 20px;
}

/* 3. - DISEÑO DE CONTENEDOR PRINCIPAL - */
.legal-container {
    max-width: 720px;
    margin: 0 auto;
}

/* 4. - ENCABEZADO Y NAVEGACIÓN - */
header {
    margin-bottom: 50px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-decoration: none;
    color: var(--text-primary);
}

.logo span {
    color: var(--accent-color);
}

.btn-back {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s ease;
}

.btn-back:hover {
    color: var(--accent-color);
}

/* 5. - TIPOGRAFÍA Y CONTENIDO - */
h1 {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.meta-date {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-family: monospace;
    margin-bottom: 40px;
    display: block;
}

h2 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-top: 35px;
    margin-bottom: 15px;
    color: var(--text-primary);
    border-left: 3px solid var(--accent-color);
    padding-left: 12px;
}

p {
    margin-bottom: 20px;
    color: var(--text-secondary);
    font-size: 1.05rem;
    text-align: justify;
    text-justify: inter-word;
}

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

/* 6. - LISTAS (BULLETS Y NUMERADAS LEGALES) - */
ul {
    margin-bottom: 25px;
    padding-left: 20px;
    color: var(--text-secondary);
}

ul li {
    margin-bottom: 10px;
    font-size: 1.05rem;
    text-align: justify;
}

ol.legal-list {
    counter-reset: item;
    list-style-type: none;
    padding-left: 0;
    margin: 20px 0;
}

ol.legal-list>li {
    position: relative;
    margin-bottom: 16px;
    padding-left: 35px;
    line-height: 1.6;
    text-align: justify;
}

ol.legal-list>li::before {
    content: counter(item) ".";
    counter-increment: item;
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent-color);
    font-weight: 700;
}

/* Ajuste para sub-párrafos internos */
.sub-section {
    margin-top: 15px;
    padding-left: 15px;
    border-left: 2px solid rgba(255, 255, 255, 0.05);
}

/* 7. - COMPONENTES: CALLOUT BOX (DESLINDES CRÍTICOS) - */
.legal-callout {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--accent-purple);
    padding: 20px;
    border-radius: 8px;
    margin: 30px 0;
}

.legal-callout p {
    margin-bottom: 0;
    font-size: 0.95rem;
    color: var(--text-primary);
}

/* 8. - COMPONENTES: TABLA DE COOKIES RESPONSIVA - */
.cookie-table-wrapper {
    overflow-x: auto;
    margin: 25px 0;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: rgba(0, 0, 0, 0.2);
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.95rem;
    color: var(--text-secondary);
    min-width: 600px;
}

th, td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: top;
    line-height: 1.5;
    text-align: justify;
}

th {
    background-color: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    font-weight: 600;
    letter-spacing: 0.5px;
}

tr:last-child td {
    border-bottom: none;
}

td strong {
    color: var(--text-primary);
}

.badge-type {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    margin-bottom: 4px;
}

/* 9. - PIE DE PÁGINA (FOOTER LEGAL) Y REDES - */
footer {
    margin-top: 60px;
    padding-top: 25px;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.legal-socials {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 0;
}

.legal-socials a {
    color: var(--text-secondary);
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
}

.legal-socials a:hover {
    color: var(--accent-color);
}

.legal-socials svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* 10. -RESPONSIVE DESIGN (MEDIA QUERIES) - */
@media (max-width: 600px) {
    body {
        padding: 20px 15px;
    }

    h1 {
        font-size: 1.8rem;
    }

    header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}