/* Legal Modals */

.legal-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.legal-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.legal-modal-content {
    background: #1A375B;
    margin: 40px auto;
    padding: 0;
    border: 2px solid #2EB2E3;
    border-radius: 16px;
    width: 90%;
    max-width: 900px;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(46, 178, 227, 0.4);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.legal-modal-close {
    color: #2EB2E3;
    float: right;
    font-size: 32px;
    font-weight: bold;
    padding: 20px 32px;
    cursor: pointer;
    transition: 0.3s;
    line-height: 1;
}

.legal-modal-close:hover,
.legal-modal-close:focus {
    color: #95E1FF;
    transform: scale(1.1);
}

.legal-modal-body {
    padding: 0 48px 48px;
    overflow-y: auto;
    max-height: calc(85vh - 100px);
    color: #CDF1FF;
}

.legal-modal-body h2 {
    color: #FFFFFF;
    font-family: 'Coolvetica', sans-serif;
    margin-bottom: 32px;
    margin-top: 16px;
    font-size: 36px;
}

.legal-modal-body h3 {
    color: #2EB2E3;
    font-family: 'Coolvetica', sans-serif;
    margin-top: 32px;
    margin-bottom: 16px;
    font-size: 22px;
}

.legal-modal-body p {
    margin-bottom: 20px;
    line-height: 1.8;
    color: #CDF1FF;
    font-size: 16px;
}

.legal-modal-body ul {
    margin-left: 32px;
    margin-bottom: 20px;
    padding-left: 8px;
}

.legal-modal-body li {
    margin-bottom: 12px;
    line-height: 1.7;
    font-size: 15px;
}

.legal-modal-body strong {
    color: #FFFFFF;
}

/* Scrollbar styling */
.legal-modal-body::-webkit-scrollbar {
    width: 8px;
}

.legal-modal-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.legal-modal-body::-webkit-scrollbar-thumb {
    background: #2EB2E3;
    border-radius: 4px;
}

.legal-modal-body::-webkit-scrollbar-thumb:hover {
    background: #95E1FF;
}

/* Mobile Responsive */
@media (max-width: 767px) {
    .legal-modal-content {
        width: 95%;
        max-height: 90vh;
        margin: 20px auto;
    }

    .legal-modal-body {
        padding: 0 24px 24px;
        max-height: calc(90vh - 80px);
    }

    .legal-modal-body h2 {
        font-size: 28px;
        margin-bottom: 24px;
    }

    .legal-modal-body h3 {
        font-size: 20px;
        margin-top: 24px;
    }

    .legal-modal-body p {
        font-size: 15px;
    }

    .legal-modal-body li {
        font-size: 14px;
    }

    .legal-modal-close {
        font-size: 28px;
        padding: 16px 20px;
    }
}