/* Legal Page */

.legal-page {
    padding: 8rem 2rem 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.legal-header {
    text-align: center;
    margin-bottom: 3rem;
}

.legal-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.legal-header p {
    font-size: 1.25rem;
    color: var(--text-secondary);
}

/* Tabs */
.legal-tabs {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
    border-bottom: 2px solid var(--border);
}

.legal-tab {
    padding: 1rem 2rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
}

.legal-tab:hover {
    color: var(--text-primary);
}

.legal-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* Content */
.legal-content {
    position: relative;
}

.legal-section {
    display: none;
    animation: fadeIn 0.3s ease;
}

.legal-section.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.legal-section h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    margin-top: 2rem;
}

.legal-section h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    margin-top: 2.5rem;
    color: var(--text-primary);
}

.legal-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    margin-top: 2rem;
    color: var(--text-primary);
}

.legal-section p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1.0625rem;
}

.legal-section ul {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    margin-left: 2rem;
}

.legal-section li {
    margin-bottom: 0.5rem;
}

.legal-section a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}

.legal-section a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.legal-section strong {
    color: var(--text-primary);
    font-weight: 600;
}

.legal-section code {
    background: rgba(102, 126, 234, 0.1);
    color: var(--primary);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.loading {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
    font-size: 1.125rem;
}

.legal-placeholder {
    text-align: center;
    padding: 4rem 2rem;
    background: rgba(42, 42, 42, 0.5);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.legal-placeholder h2 {
    margin-bottom: 1rem;
}

.legal-placeholder p {
    color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 768px) {
    .legal-page {
        padding: 6rem 1.5rem 3rem;
    }

    .legal-header h1 {
        font-size: 2rem;
    }

    .legal-tabs {
        flex-direction: column;
        border-bottom: none;
    }

    .legal-tab {
        border-bottom: 1px solid var(--border);
        border-left: 3px solid transparent;
        text-align: left;
        margin-bottom: 0;
    }

    .legal-tab.active {
        border-left-color: var(--primary);
        border-bottom-color: var(--border);
    }

    .legal-section h1 {
        font-size: 1.75rem;
    }

    .legal-section h2 {
        font-size: 1.5rem;
    }

    .legal-section h3 {
        font-size: 1.25rem;
    }
}
