/* ==========================================
   AVISO LEGAL — PALETA Y TIPOGRAFÍA
   Fondo blanco con texto negro (22 sep 2026, a pedido del dueño; antes
   era gris oscuro casi negro, ver AVISOS-LEGALES.txt Parte 3-B).
   ========================================== */
:root {
    --legal-bg:      #ffffff;                 /* fondo de la página */
    --legal-panel:   #f4f4f4;                 /* bloques de texto, un tono abajo */
    --legal-borde:   rgba(0, 0, 0, 0.1);      /* separadores */
    --legal-titulo:  #000000;                 /* títulos */
    --legal-texto:   #111111;                 /* cuerpo */
    --legal-tenue:   #6b6b6b;                 /* fechas y notas secundarias */
    /* Enlaces, índice y subtítulos. Era el rojo de la marca; el dueño lo
       quitó (22 sep 2026): ahora van en negro y se distinguen por la
       negrita y el subrayado. */
    --legal-acento:  #000000;
}

/* ====== BASE DE LA PÁGINA ====== */
html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--legal-bg);
    color: var(--legal-texto);
}

/* ====== CONTENIDO PRINCIPAL ====== */
.legal-main {
    display: flex;
    justify-content: center;
    background-color: var(--legal-bg);
}

.legal-container {
    width: 100%;
    max-width: 800px;
    /* padding-top de sobra (no el 4rem "estándar"): el menú píldora es
       position:fixed y la franja que ocupa arriba llega a ~90px -- con menos
       aire el título quedaba tapado. Medido y ajustado en navegador real, no
       a ojo (ver notas de verificación). */
    padding: 8rem 2rem 3rem 2rem;
    box-sizing: border-box;
    overflow-wrap: break-word;
    word-break: break-word;
}

.legal-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 2.5rem;
    color: var(--legal-titulo);
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.legal-intro {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--legal-texto);
    margin-bottom: 2rem;
}

.legal-intro strong {
    color: var(--legal-titulo);
}

/* ====== ÍNDICE DE LOS 4 AVISOS ====== */
.legal-index {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1.75rem;
    padding-bottom: 1.75rem;
    margin-bottom: 2.5rem;
    border-bottom: 1px solid var(--legal-borde);
}

.legal-index a {
    display: inline-flex;
    align-items: center;
    color: var(--legal-acento);
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 2px;
    transition: opacity 0.2s ease;
}

.legal-index a:hover {
    text-decoration: underline;
}

/* ====== SECCIONES / DOCUMENTOS ====== */
.legal-section {
    background: var(--legal-panel);
    border-radius: 14px;
    padding: 2rem 2rem 2.25rem 2rem;
    margin-bottom: 2.5rem;
    scroll-margin-top: 110px;
}

.legal-section-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.3rem;
    text-transform: uppercase;
    color: var(--legal-titulo);
    letter-spacing: 0.5px;
    padding-bottom: 0.9rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid var(--legal-borde);
}

.legal-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--legal-acento);
    margin: 1.75rem 0 0.75rem 0;
}

.legal-simplificado .legal-subtitle:first-child,
.legal-section > .legal-subtitle:first-of-type {
    margin-top: 0;
}

.legal-doc {
    padding-top: 1.5rem;
    margin-top: 0.5rem;
    border-top: 1px dashed var(--legal-borde);
}

.legal-fecha {
    font-size: 0.8rem;
    color: var(--legal-tenue);
    margin-bottom: 1.25rem;
}

.legal-section h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--legal-titulo);
    margin: 1.5rem 0 0.6rem 0;
}

.legal-section p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--legal-texto);
    margin-bottom: 0.9rem;
}

.legal-section ul,
.legal-section ol {
    padding-left: 1.4rem;
    margin-bottom: 0.9rem;
}

.legal-section li {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--legal-texto);
    margin-bottom: 0.4rem;
}

.legal-section a {
    color: var(--legal-acento);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.35);
    transition: border-color 0.2s ease;
}

.legal-section a:hover {
    border-bottom-color: var(--legal-acento);
}

/* ====== RESPONSIVE (mismo corte que el resto del sitio) ====== */
@media (max-width: 900px) {
    .legal-container {
        padding: 6.5rem 1.25rem 2.5rem 1.25rem;
    }

    .legal-title {
        font-size: 1.8rem;
    }

    .legal-intro {
        font-size: 0.9rem;
        line-height: 1.65;
    }

    .legal-index {
        flex-direction: column;
        align-items: stretch;
        gap: 0.25rem;
    }

    .legal-index a {
        min-height: 44px;
        padding: 10px 4px;
        border-bottom: 1px solid var(--legal-borde);
    }

    .legal-index a:last-child {
        border-bottom: none;
    }

    .legal-section {
        padding: 1.5rem 1.25rem 1.75rem 1.25rem;
        border-radius: 10px;
        scroll-margin-top: 90px;
    }

    .legal-section-title {
        font-size: 1.1rem;
    }

    .legal-section p,
    .legal-section li {
        font-size: 0.9rem;
        line-height: 1.65;
    }

    .legal-section ul,
    .legal-section ol {
        padding-left: 1.15rem;
    }
}
