/* css/legal.css */

.legal-layout {
    display: grid;
    gap: 4rem;
    align-items: start;
}

@media (min-width: 1024px) {
    .legal-layout {
        grid-template-columns: 280px 1fr;
    }
}

.legal-sidebar {
    position: sticky;
    top: 8rem;
    z-index: 10;
}

.legal-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.legal-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-body);
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.legal-nav-link:hover {
    background-color: var(--bg-soft);
    color: var(--text-dark);
}

.legal-nav-link.active {
    background-color: white;
    color: var(--primary-hover);
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
}

.legal-nav-link i {
    width: 1.25rem;
    height: 1.25rem;
}

.legal-content .prose {
    max-width: none;
}

/* Typography Fallback/Enhancements for non-Tailwind environments or extra polish */
.prose h2 {
    font-size: 1.875rem;
    color: var(--text-dark);
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -0.025em;
}

.prose h3 {
    font-size: 1.25rem;
    color: var(--text-dark);
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.prose p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.prose ul {
    margin-bottom: 2rem;
    padding-left: 1.5rem;
    list-style-type: disc;
}

.prose li {
    margin-bottom: 0.75rem;
}

.prose strong {
    color: var(--text-dark);
    font-weight: 700;
}

/* Premium Background Blobs */
.legal-blob-1 {
    position: absolute;
    top: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.05) 0%, transparent 70%);
    filter: blur(80px);
    pointer-events: none;
    z-index: -1;
}

.legal-blob-2 {
    position: absolute;
    bottom: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
    filter: blur(80px);
    pointer-events: none;
    z-index: -1;
}

/* Custom TOC or Section Marker styling */
.prose h2 {
    padding-top: 2rem;
    border-top: 1px solid var(--border-light);
    margin-top: 3rem !important;
    font-size: 1.875rem !important;
    /* Force override of base.css aggressive h2 style */
    line-height: 1.3 !important;
}

.prose h2:first-of-type {
    border-top: none;
    padding-top: 0;
    margin-top: 0 !important;
}