/* ===================================
   PÁGINAS LEGALES — ESTRUCTURA
   =================================== */

.legal-hero {
    padding: 5rem 0 3.5rem;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.legal-section {
    padding: 0 0 5rem;
    overflow: hidden;
}

.legal-wrap {
    max-width: 52rem;
    margin: 0 auto;
}

.legal-intro {
    color: var(--color-gray-400);
    font-size: 0.875rem;
    margin: 0 0 2.5rem;
    text-align: center;
}

/* ===================================
   PÁGINAS LEGALES — BLOQUES
   =================================== */

.legal-block {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 1rem;
    padding: 1.75rem 2rem;
    margin-bottom: 1.25rem;
    border-left: 3px solid var(--color-purple);
}

.legal-block-gdpr {
    border-left-color: var(--color-cyan);
}

.legal-block-data {
    border-left-color: var(--color-pink);
    margin-bottom: 2rem;
}

/* ===================================
   PÁGINAS LEGALES — TIPOGRAFÍA
   =================================== */

.legal-h2 {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-purple);
    margin: 0 0 0.5rem;
}

.legal-block-gdpr .legal-h2 {
    color: var(--color-cyan);
}

.legal-block-data .legal-h2 {
    color: var(--color-pink);
}

.legal-h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 1rem;
}

.legal-h4 {
    font-size: 0.875rem;
    font-weight: 700;
    color: #ffffff;
    margin: 1.25rem 0 0.5rem;
}

.legal-p {
    color: var(--color-gray-300);
    font-size: 0.9rem;
    line-height: 1.8;
    margin: 0 0 0.75rem;
}

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

.legal-p a {
    color: var(--color-cyan);
    text-decoration: none;
}

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

/* ===================================
   PÁGINAS LEGALES — GRID DE DATOS
   =================================== */

.legal-datos-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.legal-dato {
    display: flex;
    gap: 1rem;
    align-items: baseline;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-size: 0.875rem;
}

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

.legal-dato-label {
    color: var(--color-gray-400);
    flex-shrink: 0;
    min-width: 9rem;
    font-size: 0.8rem;
}

.legal-dato-value {
    color: #ffffff;
    font-weight: 500;
}

@media (min-width: 640px) {
    .legal-dato-label { min-width: 12rem; }
}

/* ===================================
   PÁGINAS LEGALES — SEPARADORES
   =================================== */

.legal-section-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 2.5rem 0 1.75rem;
}

.legal-section-divider-line {
    flex: 1;
    height: 1px;
    background: rgba(255,255,255,0.08);
}

.legal-section-title {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-gray-500);
    white-space: nowrap;
}

/* ===================================
   PÁGINAS LEGALES — LISTAS
   =================================== */

.legal-list {
    color: var(--color-gray-300);
    font-size: 0.9rem;
    line-height: 1.8;
    margin: 0 0 0.75rem;
    padding-left: 1.5rem;
}

.legal-list li {
    margin-bottom: 0.4rem;
}

/* ===================================
   POLÍTICA DE COOKIES — TABLA
   =================================== */

.cookies-table-wrap {
    overflow-x: auto;
    margin-top: 1rem;
}

.cookies-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
}

.cookies-table th {
    color: var(--color-gray-400);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.7rem;
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    text-align: left;
    white-space: nowrap;
}

.cookies-table td {
    color: var(--color-gray-300);
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    vertical-align: top;
    line-height: 1.5;
}

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

.cookies-table td:first-child {
    color: #ffffff;
    font-family: monospace;
    font-size: 0.78rem;
}

.badge-tecnica {
    display: inline-block;
    background: rgba(45,212,191,0.12);
    color: var(--color-cyan);
    border-radius: 0.3rem;
    padding: 0.1rem 0.45rem;
    font-size: 0.7rem;
    font-weight: 600;
    white-space: nowrap;
}

.badge-analitica {
    display: inline-block;
    background: rgba(155,77,202,0.15);
    color: var(--color-purple);
    border-radius: 0.3rem;
    padding: 0.1rem 0.45rem;
    font-size: 0.7rem;
    font-weight: 600;
    white-space: nowrap;
}
