/* Legal Modal Styles */
.legal-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    overflow: auto;
}

.legal-modal.open {
    display: block;
}

.legal-modal-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    margin: 5% auto;
    padding: 40px;
    color: #e0e0e0;
    border: 2px solid #E50914;
    border-radius: 10px;
    max-width: 900px;
    max-height: 85vh;
    overflow-y: auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.legal-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.legal-modal-header h1 {
    color: #fff;
    margin: 0;
    font-size: 1.8em;
}

.legal-modal-close {
    color: #E50914;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    border: none;
    background: none;
    padding: 0;
    width: 30px;
    height: 30px;
    transition: color 0.2s ease;
}

.legal-modal-close:hover {
    color: #fff;
}

.legal-modal-body {
    color: #e0e0e0;
}

.legal-modal-body h2 {
    color: #E50914;
    margin: 25px 0 15px 0;
    font-size: 1.3em;
}

.legal-modal-body p {
    line-height: 1.7;
    margin-bottom: 15px;
}

.legal-modal-body ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.legal-modal-body li {
    margin-bottom: 8px;
}

/* Scrollbar styling */
.legal-modal-content::-webkit-scrollbar {
    width: 8px;
}

.legal-modal-content::-webkit-scrollbar-track {
    background: #1a1a2e;
}

.legal-modal-content::-webkit-scrollbar-thumb {
    background: #E50914;
    border-radius: 4px;
}

.legal-modal-content::-webkit-scrollbar-thumb:hover {
    background: #FF6B5B;
}

/* Mobile responsiveness */
@media (max-width: 600px) {
    .legal-modal-content {
        margin: 20% auto;
        padding: 25px;
        max-height: 80vh;
    }
    
    .legal-modal-header h1 {
        font-size: 1.3em;
    }
    
    .legal-modal-body h2 {
        font-size: 1.1em;
    }
}
