/* =====================================================================
   PÁGINAS LEGALES (Política de Cookies, Privacidad, Términos…)
   ---------------------------------------------------------------------
   Layout de lectura para páginas de texto legal. Reutilizable por
   cualquier página institucional de este tipo (clases g-legal*).
   Consume SOLO tokens del contrato (g-colors.css).
   ===================================================================== */

.g-legal {
    padding: var(--g-section-y) 0;
}

/* ---------- Encabezado ---------- */
.g-legal__head {
    text-align: center;
    margin-bottom: 48px;
}
.g-legal__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
    font-size: 28px;
    color: var(--g-primary);
    background: rgba(var(--g-primary-rgb), .10);
    border-radius: var(--g-radius-lg);
}
.g-legal__title {
    margin: 0 0 8px;
    font-size: 34px;
    font-weight: 700;
    color: var(--g-heading);
}
.g-legal__updated {
    margin: 0;
    font-size: 14px;
    color: var(--g-text-muted);
}

/* ---------- Bloques de contenido ---------- */
.g-legal__block {
    margin-bottom: 36px;
}
.g-legal__subtitle {
    margin: 0 0 12px;
    font-size: 22px;
    font-weight: 700;
    color: var(--g-heading);
}
.g-legal__text {
    margin: 0 0 14px;
    font-size: 16px;
    line-height: 1.7;
    color: var(--g-text);
}
.g-legal__text a {
    color: var(--g-primary);
    font-weight: 600;
    text-decoration: underline;
}
.g-legal__text a:hover { color: var(--g-primary-hover); }

/* ---------- Tarjetas de categorías ---------- */
.g-legal-cats {
    margin-top: 20px;
    display: grid;
    gap: 14px;
}
.g-legal-cat {
    background: var(--g-bg-light);
    border: 1px solid var(--g-border);
    border-radius: var(--g-radius-md);
    padding: 18px 20px;
}
.g-legal-cat__head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}
.g-legal-cat__icon {
    font-size: 18px;
    color: var(--g-primary);
}
.g-legal-cat__name {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
    color: var(--g-heading);
}
.g-legal-cat__badge {
    margin-left: auto;
    font-size: 12px;
    font-weight: 600;
    color: var(--g-benefit);
    background: rgba(var(--g-benefit-rgb), .12);
    padding: 4px 10px;
    border-radius: var(--g-radius-pill);
    white-space: nowrap;
}
.g-legal-cat__desc {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: var(--g-text);
}

@media (max-width: 575.98px) {
    .g-legal__title { font-size: 28px; }
    .g-legal__subtitle { font-size: 20px; }
}
