/* Estilos del footer legal, botón de preferencias de cookies y páginas de textos legales (MOVD-2742) */

.legal-footer {
    clear: both;
    padding: 10px 14px 14px;
    text-align: center;
    font-size: 13px;
    line-height: 1.6;
    color: #e6e6e6;
}

.legal-footer a {
    color: #ffffff;
    text-decoration: underline;
    white-space: nowrap;
}

.legal-footer a:hover,
.legal-footer a:focus {
    color: #99cc33;
}

.legal-footer .legal-sep {
    margin: 0 6px;
    color: #bbbbbb;
}

.legal-footer.is-fixed {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    margin: 0;
    padding: 6px 10px;
    background: rgba(0, 0, 0, 0.55);
}

/* Botón flotante para reabrir las preferencias de cookies (sustituye al engranaje del plugin antiguo) */
.cc-gear {
    position: fixed;
    left: 14px;
    bottom: 44px;
    z-index: 1001;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid #cccccc;
    border-radius: 50%;
    background: #ffffff;
    color: #555555;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
    line-height: 0;
}

.cc-gear:hover,
.cc-gear:focus {
    color: #2d4156;
    background: #f1f1f1;
}

/* Páginas de textos legales: tarjeta clara legible sobre el fondo oscuro del sitio */
body.legal .legal-content {
    background: #ffffff;
    color: #333333;
    color-scheme: light;
    padding: 28px 32px;
    margin: 10px 0 40px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.7;
    text-align: left;
}

/* Color explícito en cada elemento de texto: el body del sitio es blanco translúcido
   (style.css) y no puede quedar ningún elemento dependiendo solo de la herencia */
body.legal .legal-content p,
body.legal .legal-content li,
body.legal .legal-content ul,
body.legal .legal-content td,
body.legal .legal-content th,
body.legal .legal-content caption,
body.legal .legal-content b,
body.legal .legal-content strong {
    color: #333333;
}

body.legal .legal-content h1 {
    font-size: 26px;
    margin: 0 0 20px;
    color: #2d4156;
}

body.legal .legal-content h2 {
    font-size: 19px;
    margin: 26px 0 10px;
    color: #2d4156;
}

body.legal .legal-content h3 {
    font-size: 16px;
    margin: 20px 0 8px;
    color: #2d4156;
}

body.legal .legal-content h4 {
    font-size: 15px;
    margin: 16px 0 6px;
    color: #2d4156;
}

body.legal .legal-content a {
    color: #4c7c2c;
    text-decoration: underline;
}

body.legal .legal-content table {
    width: 100%;
    margin: 12px 0 20px;
    border-collapse: collapse;
    font-size: 13px;
}

body.legal .legal-content table th,
body.legal .legal-content table td {
    border: 1px solid #dddddd;
    padding: 6px 10px;
    vertical-align: top;
    text-align: left;
    word-break: break-word;
}

body.legal .legal-content table th {
    background: #f5f5f5;
}

body.legal .tabla-scroll {
    overflow-x: auto;
}

/* Modal de preferencias de cookies: más ancho (la librería lo limita a 43em) para que
   quepan las tablas de 4 columnas, y permitir partir nombres de cookie largos (kndctr_...) */
#cc-main .pm--box {
    max-width: 56em;
}

#cc-main .pm__table-th,
#cc-main .pm__table-td {
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* Cláusula informativa de protección de datos en los formularios (antes del botón Enviar) */
.clausula-rgpd {
    clear: both;
    margin: 10px 0 15px;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: #fafafa;
    text-align: left;
    font-size: 12.5px;
    line-height: 1.55;
}

.clausula-rgpd p {
    margin: 0 0 6px;
}

.finalidad-discapacidad {
    margin-top: 8px;
    line-height: 1.4;
}
