/*********************************************************************************/
/* PÁGINAS LEGALES (aviso legal, privacidad, cookies)
/* Públicas y sin Bootstrap: mismos tokens que index.css, texto a una columna.
/*********************************************************************************/
:root {
    --ink: #111827;
    --ink-soft: #4b5563;
    --canvas: #f5f6f8;
    --field: #ffffff;
    --line: #d1d5db;
    --indigo: #4338ca;
    --serif: 'IBM Plex Sans', system-ui, sans-serif;
    --sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    color-scheme: light;
}

[data-bs-theme="dark"] {
    --ink: #f3f4f6;
    --ink-soft: #9ca3af;
    --canvas: #0f1117;
    --field: #171a23;
    --line: #3b4252;
    --indigo: #818cf8;
    color-scheme: dark;
}

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

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--canvas);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 1rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--indigo);
}

.legal-header,
.legal,
.site-footer {
    width: 100%;
    max-width: 46rem;
    margin: 0 auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

.legal-header {
    padding-top: 1.75rem;
}

.wordmark {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    color: var(--ink);
    text-decoration: none;
}

.legal {
    flex: 1;
    padding-top: 2rem;
    padding-bottom: 3rem;
}

.legal h1 {
    margin: 0 0 0.25rem;
    font-family: var(--serif);
    font-weight: 600;
    letter-spacing: -0.02em;
    font-size: clamp(1.75rem, 5vw, 2.25rem);
    line-height: 1.2;
}

.legal h2 {
    margin: 2rem 0 0.5rem;
    font-size: 1.125rem;
}

.legal p,
.legal ul {
    margin: 0 0 1rem;
}

.legal li + li {
    margin-top: 0.375rem;
}

.updated {
    color: var(--ink-soft);
    font-size: 0.875rem;
}

/* La tabla de cookies se desplaza dentro de su caja en pantallas estrechas */
.table-wrap {
    overflow-x: auto;
    margin: 0 0 1rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--field);
}

.legal table {
    width: 100%;
    min-width: 34rem;
    border-collapse: collapse;
    font-size: 0.9375rem;
}

.legal th,
.legal td {
    padding: 0.625rem 0.875rem;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--line);
}

.legal tbody tr:last-child td {
    border-bottom: 0;
}

/* Pie compartido (también se usa en base.html con sus propios estilos) */
.site-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem 1.5rem;
    padding-top: 1.25rem;
    padding-bottom: 1.5rem;
    border-top: 1px solid var(--line);
    font-size: 0.8125rem;
    color: var(--ink-soft);
}

.site-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1rem;
}

.site-footer a {
    color: var(--ink-soft);
}

.site-footer a:hover {
    color: var(--indigo);
}
