.legal-page {
    background-color: var(--background-color);
    min-height: 100vh;
    padding-top: var(--header-height);
}

.legal-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1589829545856-d10d557cf95f?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=100');
    background-size: cover;
    background-position: center;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

    .legal-hero::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
        opacity: 0.4;
        z-index: 1;
    }

.legal-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 2rem;
}

    .legal-hero-content h1 {
        font-size: 3rem;
        margin-bottom: 1rem;
        font-weight: 700;
    }

    .legal-hero-content p {
        font-size: 1.2rem;
        opacity: 0.9;
        margin-bottom: 2rem;
    }

.update-badge {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.legal-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.toc-section {
    background: var(--card-bg);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 3rem;
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.toc-title {
    color: var(--text-color);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .toc-list li {
        margin-bottom: 0.8rem;
    }

    .toc-list a {
        color: var(--text-muted);
        text-decoration: none;
        display: flex;
        align-items: center;
        gap: 0.8rem;
        padding: 0.5rem 0;
        transition: color 0.3s ease;
        font-size: 0.95rem;
    }

        .toc-list a:hover {
            color: var(--primary-color);
        }

        .toc-list a i {
            color: var(--primary-color);
            font-size: 0.8rem;
        }

.terms-section {
    background: var(--card-bg);
    border-radius: 1rem;
    padding: 3rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(59, 130, 246, 0.1);
    position: relative;
    overflow: hidden;
}

    .terms-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url('https://images.unsplash.com/photo-1589829545856-d10d557cf95f?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=100') center/cover no-repeat;
        opacity: 0.02;
        z-index: 0;
    }

.terms-content {
    position: relative;
    z-index: 1;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--primary-color);
}

.section-number {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.section-title {
    color: var(--text-color);
    font-size: 2rem;
    font-weight: 600;
    margin: 0;
}

.subsection {
    margin-bottom: 2.5rem;
}

.subsection-title {
    color: var(--text-color);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.subsection-number {
    color: var(--primary-color);
    font-weight: 700;
}

.subsection-content {
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 1rem;
}

    .subsection-content p {
        margin-bottom: 1.5rem;
    }

.definitions-list {
    background: rgba(59, 130, 246, 0.05);
    border-radius: 0.8rem;
    padding: 2rem;
    margin: 1.5rem 0;
    border-left: 4px solid var(--primary-color);
}

.definition-item {
    margin-bottom: 1.5rem;
}

.definition-term {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.definition-desc {
    color: var(--text-muted);
    line-height: 1.6;
}

.prohibited-list {
    background: rgba(239, 68, 68, 0.05);
    border-radius: 0.8rem;
    padding: 2rem;
    margin: 1.5rem 0;
    border-left: 4px solid #ef4444;
}

.prohibited-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
    line-height: 1.6;
}

    .prohibited-item i {
        color: #ef4444;
        margin-top: 0.3rem;
        flex-shrink: 0;
    }

.warning-box {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 0.8rem;
    padding: 1.5rem;
    margin: 1.5rem 0;
    display: flex;
    gap: 1rem;
}

    .warning-box i {
        color: #f59e0b;
        font-size: 1.5rem;
        flex-shrink: 0;
        margin-top: 0.2rem;
    }

.warning-content {
    color: var(--text-muted);
    line-height: 1.6;
}

    .warning-content strong {
        color: var(--text-color);
    }

.important-box {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 0.8rem;
    padding: 1.5rem;
    margin: 1.5rem 0;
    display: flex;
    gap: 1rem;
}

    .important-box i {
        color: var(--primary-color);
        font-size: 1.5rem;
        flex-shrink: 0;
        margin-top: 0.2rem;
    }

.important-content {
    color: var(--text-muted);
    line-height: 1.6;
}

    .important-content strong {
        color: var(--text-color);
    }

.contact-section {
    background: var(--card-bg);
    border-radius: 1rem;
    padding: 2rem;
    margin-top: 3rem;
    border: 1px solid rgba(59, 130, 246, 0.1);
    text-align: center;
}

.contact-title {
    color: var(--text-color);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.contact-info {
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.contact-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.contact-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 1rem 2rem;
    border-radius: 0.8rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

    .contact-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
    }

    .contact-btn.secondary {
        background: rgba(59, 130, 246, 0.1);
        color: var(--primary-color);
        border: 1px solid rgba(59, 130, 246, 0.3);
    }

        .contact-btn.secondary:hover {
            background: rgba(59, 130, 246, 0.2);
        }

@media (max-width: 768px) {
    .legal-hero-content h1 {
    font-size: 2rem;
}

.legal-content {
    padding: 2rem 1rem;
}

.terms-section {
    padding: 2rem 1.5rem;
}

.section-title {
    font-size: 1.5rem;
}

.section-header {
    flex-direction: column;
    text-align: center;
}

.contact-buttons {
    flex-direction: column;
    align-items: center;
}

.contact-btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
}

}