/* =========================================
   PÁGINAS LEGALES — legal.css
   Se carga además de style.css, solo en
   aviso-legal.html, privacidad.html y cookies.html
   ========================================= */

/* Hero legal: fondo oscuro neutro, sin imagen de banda */
.legal-hero {
    background-image: none;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a0520 50%, #0a0a0a 100%);
    border-bottom: 4px solid var(--red);
    min-height: 35vh !important;
}

/* El h1 en el hero legal pierde el gradiente animado y se queda en blanco limpio */
.legal-hero h1 {
    font-size: clamp(2.2rem, 7vw, 5.5rem);
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: var(--white);
    background-clip: unset;
    animation: none;
    color: var(--white);
    letter-spacing: 6px;
}

/* La palabra destacada del título en rojo */
.legal-hero-span {
    color: var(--red);
    -webkit-text-fill-color: var(--red);
    display: block;
    filter: drop-shadow(0 0 12px rgba(228, 3, 46, 0.7));
}

/* Contenedor de texto legal con max-width más estrecho para mejor legibilidad */
.legal-container {
    max-width: 860px !important;
}

/* Fecha de última actualización */
.legal-updated {
    color: #888;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 3rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(228, 3, 46, 0.3);
}

/* Bloque de cada cláusula */
.legal-block {
    margin-bottom: 3rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.legal-block:last-of-type {
    border-bottom: none;
}

/* H2 dentro de bloques legales: más pequeño y sin el rojo por defecto */
.legal-block h2 {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: var(--red);
    letter-spacing: 3px;
    margin-bottom: 1.2rem;
    font-weight: 700;
}

/* Párrafos legales */
.legal-block p {
    color: #ccc;
    line-height: 1.9;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.legal-block p:last-child {
    margin-bottom: 0;
}

/* Links dentro del texto legal */
.legal-block a {
    color: var(--red);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s;
}

.legal-block a:hover {
    color: var(--white);
}

/* Lista legal */
.legal-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 1rem 0;
}

.legal-list li {
    color: #ccc;
    font-size: 0.95rem;
    line-height: 1.9;
    padding-left: 1.4rem;
    position: relative;
    margin-bottom: 0.4rem;
}

.legal-list li::before {
    content: '›';
    position: absolute;
    left: 0;
    color: var(--red);
    font-weight: 900;
    font-size: 1.1rem;
    line-height: 1.9;
}

/* Placeholder a rellenar (resaltado para que no se olvide) */
.legal-placeholder {
    color: var(--red);
    font-weight: 700;
    background: rgba(228, 3, 46, 0.1);
    padding: 0 4px;
    border-radius: 2px;
    font-style: italic;
}

/* Tabla de cookies */
.legal-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.88rem;
    color: #ccc;
}

.legal-table th {
    background: rgba(228, 3, 46, 0.15);
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 10px 14px;
    text-align: left;
    border-bottom: 2px solid var(--red);
}

.legal-table td {
    padding: 10px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    vertical-align: top;
    line-height: 1.6;
}

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

.legal-table tr:nth-child(even) td {
    background: rgba(255, 255, 255, 0.02);
}

.legal-table code {
    background: rgba(112, 36, 127, 0.3);
    color: #e0a0ff;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: var(--font-body);
    font-size: 0.85em;
}

/* Navegación entre páginas legales */
.legal-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid rgba(228, 3, 46, 0.3);
}

.legal-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #aaa;
    font-size: 0.85rem;
    font-family: var(--font-heading);
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    padding: 8px 14px;
    border: 1px solid #333;
    transition: all 0.3s;
}

.legal-link:hover {
    color: var(--white);
    border-color: var(--red);
    background: rgba(228, 3, 46, 0.08);
}


/* Responsive tablas legales en móvil */
@media (max-width: 768px) {
    .legal-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .legal-nav {
        flex-direction: column;
    }
}
