/* --- Legal Pages Styles --- */
.legal-wrapper {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 60px;
    align-items: start;
}

/* Reading Progress */
.progress-container {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    z-index: 1000;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(to right, var(--primary), #a855f7);
    width: 0%;
}

/* Sidebar Navigation */
.legal-sidebar {
    position: sticky;
    top: 120px;
}

.legal-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.legal-nav-link {
    padding: 12px 20px;
    border-radius: 12px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.legal-nav-link:hover {
    color: var(--primary);
    background: rgba(109, 40, 217, 0.05);
}

.legal-nav-link.active {
    color: var(--primary);
    background: rgba(109, 40, 217, 0.1);
    border-color: rgba(109, 40, 217, 0.2);
}

/* Legal Content */
.legal-article {
    color: var(--text-muted);
    line-height: 1.8;
}

.legal-article h2 {
    color: var(--text-primary-light);
    font-size: 1.75rem;
    font-weight: 700;
    margin: 40px 0 20px;
    scroll-margin-top: 140px;
}

[data-theme="dark"] .legal-article h2 {
    color: var(--text-primary-dark);
}

.legal-article p {
    margin-bottom: 20px;
}

.legal-article ul {
    margin-bottom: 24px;
    padding-left: 20px;
}

.legal-article li {
    margin-bottom: 12px;
    position: relative;
}

.last-updated {
    font-size: 0.9rem;
    margin-bottom: 40px;
    font-weight: 600;
}

@media (max-width: 992px) {
    .legal-wrapper { grid-template-columns: 1fr; }
    .legal-sidebar { display: none; }
}
