html,body,#root{height:100%;margin:0;padding:0}*{box-sizing:border-box}::-webkit-scrollbar{width:8px;height:8px}::-webkit-scrollbar-track{background:var(--colorNeutralBackground3, #f0f0f0);border-radius:4px}::-webkit-scrollbar-thumb{background:var(--colorNeutralStrokeAccessible, #c0c0c0);border-radius:4px}::-webkit-scrollbar-thumb:hover{background:var(--colorNeutralStrokeAccessibleHover, #a0a0a0)}*{scrollbar-color:var(--colorNeutralStrokeAccessible, #c0c0c0) var(--colorNeutralBackground3, #f0f0f0)}
.legal-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(6px);

    animation: legalFadeIn 0.25s ease;
}

.legal-modal-box {
    position: relative;

    width: 100%;
    max-width: 680px;
    max-height: 85vh;

    overflow-y: auto;

    padding: 35px;

    color: #e8e8e8;
    background: linear-gradient(
        145deg,
        #171717,
        #0d0d0d
    );

    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;

    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.65),
        0 0 40px rgba(255, 255, 255, 0.03);

    animation: legalModalIn 0.3s ease;
}

/* Botón cerrar */

.legal-modal-close {
    position: absolute;

    top: 14px;
    right: 16px;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;

    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.05);
    color: #aaa;

    font-size: 26px;
    line-height: 1;

    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.legal-modal-close:hover {
    background: #e63946;
    color: white;
    transform: rotate(90deg);
}

/* Contenido */

.legal-modal-content {
    padding: 5px 10px 5px 0;
}

.legal-modal-content h2 {
    margin: 0 45px 22px 0;

    color: #ffffff;

    font-size: 26px;
    font-weight: 700;
}

.legal-modal-content p {
    margin: 0 0 16px;

    color: #bdbdbd;

    font-size: 15px;
    line-height: 1.7;
}

.legal-modal-content strong {
    color: #ffffff;
}

/* Scroll */

.legal-modal-box::-webkit-scrollbar {
    width: 7px;
}

.legal-modal-box::-webkit-scrollbar-track {
    background: transparent;
}

.legal-modal-box::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 10px;
}

.legal-modal-box::-webkit-scrollbar-thumb:hover {
    background: #666;
}

/* Enlaces legales */

.legal-links {
    display: flex;
    justify-content: center;
    align-items: center;

    flex-wrap: wrap;
    gap: 12px 24px;
}

.legal-links a {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    color: #aaa;

    text-decoration: none;

    font-size: 14px;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.legal-links a:hover {
    color: #ffffff;
    transform: translateY(-1px);
}

.legal-links a i {
    font-size: 13px;
}

/* Aviso legal */

.disclaimer {
    max-width: 800px;

    margin: 20px auto 0;
    padding: 14px 18px;

    color: #888;

    font-size: 12px;
    line-height: 1.6;

    text-align: center;

    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.disclaimer p {
    margin: 0;
}

.disclaimer strong {
    color: #aaa;
}


/* Animaciones */

@keyframes legalFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes legalModalIn {
    from {
        opacity: 0;
        transform: translateY(25px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}


/* Móviles */

@media (max-width: 600px) {

    .legal-modal-overlay {
        padding: 12px;
    }

    .legal-modal-box {
        max-height: 88vh;

        padding: 28px 22px;

        border-radius: 15px;
    }

    .legal-modal-content h2 {
        font-size: 22px;
        margin-bottom: 18px;
    }

    .legal-modal-content p {
        font-size: 14px;
        line-height: 1.65;
    }

    .legal-modal-close {
        top: 10px;
        right: 10px;

        width: 34px;
        height: 34px;

        font-size: 23px;
    }

    .legal-links {
        gap: 14px 18px;
    }

    .legal-links a {
        font-size: 13px;
    }

    .disclaimer {
        padding: 14px 10px;
        font-size: 11px;
    }
}
