/* Illan Legal Core Styles */

/* --- 1. BLOQUEO DE BODY --- */
body.illan-legal-locked {
    overflow: hidden !important;
    height: 100vh;
}

/* --- 2. MURO (BACKDROP) --- */
.legal-wall-backdrop {
    position: fixed;
    inset: 0;
    background-color: rgba(250, 250, 249, 0.98); /* Muro sólido */
    backdrop-filter: blur(5px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* --- 3. TARJETA MODAL --- */
.legal-wall-card {
    background: #fff;
    width: 100%;
    max-width: 600px;
    border-radius: 16px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
    border: 1px solid #e5e5e5;
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    animation: illanLegalPop 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

@keyframes illanLegalPop {
    from { transform: scale(0.95) translateY(20px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}

/* Header */
.legal-wall-header {
    padding: 25px 30px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 15px;
}
.lw-icon { font-size: 1.8rem; }
.legal-wall-header h3 { margin: 0; font-size: 1.25rem; color: #2d2d2d; }

/* Body */
.legal-wall-body {
    padding: 30px;
    overflow-y: auto;
}
.lw-intro { font-size: 1rem; color: #444; margin-bottom: 20px; line-height: 1.5; }

/* Scroll Box */
.lw-scroll-box {
    background: #f9fafb;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 20px;
    height: 250px;
    overflow-y: auto;
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 20px;
}
.lw-scroll-box h2 { font-size: 1.1rem; color: #000; margin-top: 1.5rem; margin-bottom: 0.8rem; }
.lw-scroll-box h2:first-child { margin-top: 0; }
.lw-scroll-box p { margin-bottom: 1rem; }
.lw-scroll-box ul { margin-left: 1.5rem; margin-bottom: 1rem; }

.lw-consent-note { font-size: 0.8rem; color: #888; margin: 0; font-style: italic; }

/* Footer & Actions */
.legal-wall-footer {
    padding: 20px 30px;
    background: #fcfcfc;
    border-top: 1px solid #f0f0f0;
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
}

.btn-legal-primary {
    background: #2d2d2d; color: #fff;
    border: none; padding: 12px 24px; border-radius: 50px;
    font-weight: 600; cursor: pointer; transition: transform 0.2s, background 0.2s;
}
.btn-legal-primary:hover { background: #00AEEF; transform: translateY(-1px); }

.btn-legal-secondary {
    display: flex; align-items: center;
    color: #666; text-decoration: none; font-size: 0.9rem; font-weight: 500;
}
.btn-legal-secondary:hover { color: #d00; }