/* Legal Modals Styles */
.legal-modal {
    display: none;
    position: fixed;
    z-index: 10002;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

.legal-modal-content {
    background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 0;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
}

.legal-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: var(--muted);
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    z-index: 10;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
}

.legal-modal-close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

.legal-modal-body {
    padding: 40px;
    overflow-y: auto;
    flex: 1;
}

.legal-modal-body h1 {
    font-family: Oswald, Impact, sans-serif;
    font-size: 32px;
    margin: 0 0 24px 0;
    color: #fff;
    letter-spacing: 0.5px;
    padding-right: 50px;
}

.legal-content {
    color: var(--text);
    line-height: 1.8;
}

.legal-content h2 {
    font-family: Oswald, Impact, sans-serif;
    font-size: 24px;
    margin: 32px 0 16px 0;
    color: #fff;
    letter-spacing: 0.4px;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 8px;
}

.legal-content h3 {
    font-family: Oswald, Impact, sans-serif;
    font-size: 20px;
    margin: 24px 0 12px 0;
    color: #fff;
    letter-spacing: 0.3px;
}

.legal-content p {
    margin: 12px 0;
    color: var(--text);
    font-size: 15px;
    line-height: 1.7;
}

.legal-content ul, .legal-content ol {
    margin: 16px 0;
    padding-left: 24px;
    color: var(--text);
}

.legal-content li {
    margin: 8px 0;
    line-height: 1.7;
    color: var(--text);
}

.legal-content strong {
    color: #fff;
    font-weight: 600;
}

.legal-content a {
    color: var(--primary);
    text-decoration: underline;
    transition: color 0.2s ease;
}

.legal-content a:hover {
    color: #ff3b3b;
}

/* Scrollbar styling for modal */
.legal-modal-body::-webkit-scrollbar {
    width: 8px;
}

.legal-modal-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.legal-modal-body::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

.legal-modal-body::-webkit-scrollbar-thumb:hover {
    background: #ff3b3b;
}

/* Responsive */
@media (max-width: 768px) {
    .legal-modal {
        padding: 10px;
    }
    
    .legal-modal-content {
        max-height: 95vh;
        border-radius: 12px;
    }
    
    .legal-modal-body {
        padding: 24px 20px;
    }
    
    .legal-modal-body h1 {
        font-size: 24px;
        margin-bottom: 20px;
        padding-right: 40px;
    }
    
    .legal-content h2 {
        font-size: 20px;
        margin-top: 24px;
    }
    
    .legal-content h3 {
        font-size: 18px;
    }
    
    .legal-content p {
        font-size: 14px;
    }
    
    .legal-modal-close {
        top: 15px;
        right: 15px;
        width: 36px;
        height: 36px;
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .legal-modal-body {
        padding: 20px 16px;
    }
    
    .legal-modal-body h1 {
        font-size: 20px;
    }
    
    .legal-content h2 {
        font-size: 18px;
    }
    
    .legal-content h3 {
        font-size: 16px;
    }
}

