:root {
    --primary-dark: #0e2340;
    --text-light: #ffffff;
    --text-dark: #000000;
    --accent-blue: #2965b7;
}

/* ESTRUCTURA LEGAL & PRIVACIDAD */
.legal-page {
    min-height: calc(100vh - 460px);
    /*font-family: 'Roboto', sans-serif;*/
    overflow-x: hidden;
}

.bg-primary-custom {
    background-color: var(--primary-dark);
}

.logo-privacidad {
    max-width: 220px;
    height: auto;
    display: block;
}

.privacy-content {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-dark);
}

    .privacy-content h2 {
        margin-top: 3rem;
        margin-bottom: 1rem;
        font-size: 1.5rem;
        font-weight: 600;
        color: var(--text-dark);
    }

    .privacy-content h3 {
        margin-top: 1.5rem;
        margin-bottom: 1rem;
        font-size: 1.3rem;
        font-weight: 600;
        color: var(--text-dark);
    }

    .privacy-content p {
        text-align: justify;
        margin-bottom: 1.5rem;
        color: var(--text-dark);
        font-weight: 300;
        /* Evita viudas/huérfanas excesivas en justificado */
        hyphens: auto;
        -webkit-hyphens: auto;
    }

    .privacy-content ul {
        padding-left: 1.5rem;
        margin-bottom: 2rem;
    }

    .privacy-content li {
        margin-bottom: 0.75rem;
    }

/* Items legales simples */
.legal-item {
    margin-bottom: 1.5rem;
}

.legal-label {
    font-weight: 600;
    display: block;
    margin-bottom: 0.25rem;
}

.legal-value {
    font-weight: 400;
}

.legal-index {
    margin-bottom: 3rem;
}

    .legal-index a {
        text-decoration: none;
        color: #000;
        transition: color 0.2s ease;
    }

        .legal-index a:hover {
            text-decoration: underline;
            color: var(--primary-dark);
        }

/* FAQ (DETAILS/SUMMARY) */
.faq-item {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 1.2rem;
    padding: 1.2rem 1.5rem;
    color: var(--primary-dark);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    will-change: transform, box-shadow;
}

    .faq-item:hover {
        border-color: var(--accent-blue);
        transform: translateY(-2px);
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
    }

details[open].faq-item {
    background-color: #fafafa;
    border-color: var(--accent-blue);
    border-width: 1.5px;
    /*transform: translateY(0);*/
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Pregunta (Summary) */
.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    font-family: 'Overpass', sans-serif;
    list-style: none;
    appearance: none;
    -webkit-appearance: none;
    transition: color 0.25s ease;
    width: 100%;
    text-align: left;
}

    /* Ocultar marcador nativo */
    .faq-question::-webkit-details-marker {
        display: none;
    }

    .faq-question:hover {
        color: var(--accent-blue);
    }

details[open] .faq-question {
    color: var(--accent-blue);
}

/* Accesibilidad teclado */
.faq-question:focus-visible {
    outline: 2px solid var(--accent-blue);
    outline-offset: 4px;
    border-radius: 2px;
}

/* Flecha */
.dropdown-plus {
    font-size: 1.5rem;
    margin-left: 6px;
    will-change: transform;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    display: inline-block;
}

details[open] .dropdown-plus {
    transform: rotate(135deg);
}

/* Contenedor animado (Grid Trick) */
.faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.55s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: grid-template-rows;
}

/* --- ESTADOS ABIERTOS [open] --- */
details[open] .faq-answer {
    grid-template-rows: 1fr;
}

.faq-answer-content {
    overflow: hidden;
    padding-top: 0.8rem;
    line-height: 1.6;
    color: #242b38;
    font-family: 'Overpass', sans-serif;
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
    transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

details[open] .faq-answer-content {
    opacity: 1;
    transform: translateY(0) scale(1);
}
