/* Custom Scrollbar for Legal Modal */
.legal-modal-content::-webkit-scrollbar {
    width: 12px;
}

.legal-modal-content::-webkit-scrollbar-track {
    background: #0A0A0A;
}

.legal-modal-content::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 6px;
    border: 2px solid #0A0A0A;
}

.legal-modal-content::-webkit-scrollbar-thumb:hover {
    background: #ffd54f;
}

/* Firefox */
.legal-modal-content {
    scrollbar-width: thin;
    scrollbar-color: var(--primary) #0A0A0A;
}

/* Legal Modal Styles */
.footer-legal {
    text-align: center;
    border-top: 1px solid #222;
    padding: 30px 0;
    margin-bottom: 20px;
}

.legal-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.legal-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.legal-links a:hover {
    color: var(--primary);
}

.legal-links span {
    color: var(--text-muted);
}

/* Legal Modal */
.legal-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.legal-modal-content {
    background: #0A0A0A;
    border: 1px solid #222;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 40px;
    position: relative;
}

.legal-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: 1px solid #333;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 24px;
    transition: all 0.3s;
}

.legal-modal-close:hover {
    background: var(--primary);
    color: #000;
    border-color: var(--primary);
}

.legal-modal-content h2 {
    font-family: 'AlimamaShuHeiTi-Bold', sans-serif;
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 30px;
    text-transform: uppercase;
}

.legal-modal-content h3 {
    font-family: 'AlimamaShuHeiTi-Bold', sans-serif;
    font-size: 20px;
    color: var(--text);
    margin: 30px 0 15px;
}

.legal-modal-content p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 20px;
}

.legal-modal-content ul {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 20px;
    padding-left: 20px;
}
