.legal-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.legal-modal-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.legal-modal-container {
    width: 90%;
    max-width: 800px;
    height: 85vh;
    background: #0a0a0a;
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: scale(0.95) translateY(20px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.8);
}

.legal-modal-backdrop.active .legal-modal-container {
    transform: scale(1) translateY(0);
}

.legal-scroll-track {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.05);
    z-index: 10;
}

.legal-scroll-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    box-shadow: 0 0 10px var(--primary);
    transition: width 0.1s linear;
}

.legal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    color: #fff;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    transition: 0.3s;
}

.legal-close-btn:hover {
    background: var(--primary);
    transform: rotate(90deg);
}

.legal-modal-content {
    flex: 1;
    overflow-y: auto;
    padding: 3rem 4rem;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) #0a0a0a;
}

.legal-modal-content::-webkit-scrollbar {
    width: 6px;
}

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

.legal-modal-content::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

.legal-hero {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--glass-border);
}

.legal-hero h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.legal-lead {
    font-size: 1.2rem;
    color: var(--text-alt);
    max-width: 600px;
    margin: 0 auto;
}

.legal-section {
    margin-bottom: 3rem;
}

.legal-section h3 {
    font-family: 'Syne', sans-serif;
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.legal-section h3::before {
    content: '';
    display: block;
    width: 4px;
    height: 20px;
    background: var(--gold);
    border-radius: 2px;
}

.legal-section p {
    color: var(--text-alt);
    line-height: 1.7;
    font-size: 1.05rem;
}

.legal-link {
    display: inline-block;
    margin-top: 10px;
    color: var(--primary-bright);
    text-decoration: none;
    font-weight: 700;
    border-bottom: 1px solid transparent;
    transition: 0.3s;
}

.legal-link:hover {
    border-color: var(--primary-bright);
    transform: translateX(5px);
}

@media (max-width: 768px) {
    .legal-modal-container {
        width: 100%;
        height: 100%;
        border-radius: 0;
    }

    .legal-modal-content {
        padding: 4rem 1.5rem 2rem;
    }

    .legal-hero h2 {
        font-size: 2.2rem;
    }
}
