.legal-main {
    padding: 6rem 0;
    max-width: 1200px;
    margin: 0 auto;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text);
}

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

.legal-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.05em;
}

.legal-hero .last-updated {
    color: var(--text-muted, #888);
    font-size: 0.95rem;
}

.legal-container {
    display: flex;
    gap: 4rem;
    padding: 0 2rem;
    position: relative;
    align-items: flex-start;
}

.legal-content {
    flex: 1;
    max-width: 800px;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-secondary, #a1a1aa);
}

.legal-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text);
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    scroll-margin-top: 100px;
}

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

.legal-content ul {
    margin-bottom: 2rem;
    padding-left: 1.5rem;
}

.legal-content li {
    margin-bottom: 0.75rem;
}

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

.legal-content a {
    color: var(--primary);
    text-decoration: none;
}

.legal-content a:hover {
    text-decoration: underline;
}

.legal-toc {
    width: 250px;
    flex-shrink: 0;
}

.toc-sticky {
    position: sticky;
    top: 100px;
}

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

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

.toc-sticky li {
    margin-bottom: 0.75rem;
}

.toc-sticky a {
    color: var(--text-muted, #888);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.toc-sticky a:hover {
    color: var(--text);
}

@media (max-width: 900px) {
    .legal-container {
        flex-direction: column-reverse;
    }
    
    .legal-toc {
        width: 100%;
        margin-bottom: 2rem;
        padding-bottom: 2rem;
        border-bottom: 1px solid var(--border);
    }
    
    .toc-sticky {
        position: static;
    }
}
