/* Estilos FORZADOS para modales legales - Máxima prioridad */

/* Fondo del modal */
.legal-modal__dialog {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%) !important;
    border: 1px solid rgba(59, 130, 246, 0.3) !important;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.7) !important;
}

/* Header */
.legal-modal__header {
    background: rgba(15, 23, 42, 0.8) !important;
    border-bottom: 1px solid rgba(148, 163, 184, 0.3) !important;
}

.legal-modal__header h3 {
    color: #ffffff !important;
    font-size: 1.6rem !important;
    font-weight: 700 !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
}

/* Botón cerrar */
.legal-modal__close {
    background: rgba(15, 23, 42, 0.8) !important;
    border: 1px solid rgba(148, 163, 184, 0.3) !important;
    color: #ffffff !important;
    font-weight: bold !important;
}

.legal-modal__close:hover {
    background: rgba(59, 130, 246, 0.2) !important;
    color: #60a5fa !important;
    border-color: rgba(59, 130, 246, 0.5) !important;
}

/* Contenido principal */
.legal-content {
    color: #ffffff !important;
    font-size: 1.05rem !important;
    line-height: 1.8 !important;
}

.legal-content * {
    color: #ffffff !important;
}

.legal-content p {
    color: #ffffff !important;
    font-size: 1.05rem !important;
    margin-bottom: 1rem !important;
    font-weight: 400 !important;
    line-height: 1.7 !important;
}

.legal-content h4 {
    color: #ffffff !important;
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
    border-bottom: 2px solid rgba(59, 130, 246, 0.6) !important;
    padding-bottom: 0.5rem !important;
    margin-bottom: 1rem !important;
    margin-top: 2rem !important;
}

.legal-content li {
    color: #ffffff !important;
    font-size: 1.05rem !important;
    margin-bottom: 0.6rem !important;
    line-height: 1.6 !important;
}

.legal-content strong {
    color: #ffffff !important;
    font-weight: 700 !important;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2) !important;
}

.legal-content b {
    color: #ffffff !important;
    font-weight: 700 !important;
}

.legal-date {
    color: #ffffff !important;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(99, 102, 241, 0.2)) !important;
    border: 1px solid rgba(59, 130, 246, 0.4) !important;
    font-weight: 500 !important;
    font-size: 0.95rem !important;
}

/* Body del modal para scroll */
.legal-modal__body {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    overscroll-behavior: contain !important;
    -webkit-overflow-scrolling: touch !important;
    position: relative !important;
    max-height: calc(90vh - 140px) !important;
}

/* Footer */
.legal-modal__footer {
    background: rgba(15, 23, 42, 0.6) !important;
    border-top: 1px solid rgba(148, 163, 184, 0.3) !important;
}

.legal-modal__footer .btn {
    background: linear-gradient(135deg, #3b82f6, #6366f1) !important;
    color: #ffffff !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
}

/* Asegurar que TODOS los elementos heredan el color blanco */
.legal-content span,
.legal-content div,
.legal-content em,
.legal-content i {
    color: #ffffff !important;
}

/* Viñetas de listas */
.legal-content li::marker {
    color: #60a5fa !important;
    font-weight: bold !important;
}

/* Scrollbar personalizado */
.legal-modal__body::-webkit-scrollbar {
    width: 12px !important;
}

.legal-modal__body::-webkit-scrollbar-track {
    background: rgba(148, 163, 184, 0.15) !important;
    border-radius: 6px !important;
}

.legal-modal__body::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #60a5fa, #8b5cf6) !important;
    border-radius: 6px !important;
    border: 2px solid rgba(30, 41, 59, 0.8) !important;
}

.legal-modal__body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #3b82f6, #7c3aed) !important;
}