/* =============================================================
   legal.css — Páginas legales (documento legible). Depende de consorcio.css.
   ============================================================= */

/* Hero sobrio (sin foto): degradado grafito + acento. */
.cpeis-phero--legal::before {
    background-image: none;
    background-color: #111318;
    background-image:
        radial-gradient(110% 90% at 88% 12%, rgba(206,16,25,0.18), transparent 60%),
        linear-gradient(135deg, #191b21 0%, #0d0d0e 100%);
    transform: none;
}
.cpeis-phero--legal { min-height: min(46vh, 420px); }

/* Documento */
.cpeis-legal-section { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(3rem, 7vw, 6rem); }
.cpeis-consorcio .cpeis-legal-section .cpeis-wrap { width: min(820px, 100vw - 2.5rem); }

.cpeis-legal {
    color: var(--cpeis-texto, #3a3a40);
    font-size: 1.02rem;
    line-height: 1.7;
}
.cpeis-legal__updated {
    display: inline-block;
    margin: 0 0 1.6rem;
    padding: 0.35rem 0.8rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: #86868c;
    background: var(--cpeis-fondo-alt, #f5f5f7);
    border-radius: 8px;
}
.cpeis-legal h2 {
    margin: 2.2rem 0 0.8rem;
    font-size: clamp(1.2rem, 2.3vw, 1.5rem);
    line-height: 1.25;
    letter-spacing: -0.01em;
    color: var(--cpeis-tinta, #1b1b1f);
}
.cpeis-legal h2:first-of-type { margin-top: 0.5rem; }
.cpeis-legal h2::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 0.55rem;
    border-radius: 2px;
    background: var(--cpeis-acento, #ce1019);
    transform: translateY(-3px);
}
.cpeis-legal p { margin: 0 0 1.1rem; }
.cpeis-legal a { color: var(--cpeis-acento, #ce1019); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.cpeis-legal a:hover { text-decoration: none; }
.cpeis-legal ul {
    margin: 0 0 1.2rem;
    padding-left: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}
.cpeis-legal ul li {
    position: relative;
    padding-left: 1.4rem;
}
.cpeis-legal ul li::before {
    content: "";
    position: absolute;
    left: 0.15rem;
    top: 0.6em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--cpeis-acento, #ce1019);
}
.cpeis-legal strong { color: var(--cpeis-tinta, #1b1b1f); }

/* Tabla de cookies */
.cpeis-legal__table-wrap { overflow-x: auto; margin: 0 0 1.3rem; }
.cpeis-legal__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
    background: #fff;
    border: 1px solid var(--cpeis-linea, #e6e6e8);
    border-radius: 12px;
    overflow: hidden;
}
.cpeis-legal__table th,
.cpeis-legal__table td {
    padding: 0.7rem 0.9rem;
    text-align: left;
    border-bottom: 1px solid var(--cpeis-linea, #eeeef0);
}
.cpeis-legal__table th {
    font-size: 0.78rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #6d6d73;
    background: var(--cpeis-fondo-alt, #f7f7f9);
}
.cpeis-legal__table tr:last-child td { border-bottom: 0; }
.cpeis-legal__table td:first-child { font-weight: 600; color: var(--cpeis-tinta, #1b1b1f); }
