/* ========================================
   LUMINA FLOW - LEGAL PAGES SYSTEM
   Scoped Styles for Terms, Privacy, etc.
   ======================================== */

.legal-page {
    padding-top: 10rem;
    padding-bottom: 10rem;
    background-color: var(--lf3-bg-light);
    color: var(--lf3-text-main-light);
    line-height: 1.6;
}

[data-theme="dark"] .legal-page {
    background-color: #07111F;
    color: var(--lf3-text-main-dark);
}

.legal-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 4rem;
}

@media (max-width: 1024px) {
    .legal-container {
        grid-template-columns: 1fr;
    }
}

/* Header */
.legal-header {
    margin-bottom: 4rem;
    text-align: left;
}

.legal-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
    background: linear-gradient(90deg, var(--lf3-blue), var(--lf3-glow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.legal-subtitle {
    font-size: 1.25rem;
    color: var(--lf3-text-sec-light);
    max-width: 600px;
}

[data-theme="dark"] .legal-subtitle { color: rgba(255, 255, 255, 0.7); }

/* Metadata Card */
.legal-metadata-card {
    background: var(--lf3-card-light);
    border: 1px solid var(--lf3-border-light);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 3rem;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
}

[data-theme="dark"] .legal-metadata-card {
    background: #121C30;
    border-color: rgba(255, 255, 255, 0.08);
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.meta-label {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.5;
}

.meta-value {
    font-size: 0.95rem;
    font-weight: 600;
}

.legal-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 800;
    background: rgba(16, 185, 129, 0.1);
    color: #10B981;
}

.checksum-value {
    font-family: monospace;
    font-size: 0.8rem;
    word-break: break-all;
    max-width: 300px;
    opacity: 0.8;
}

/* Sidebar Nav */
.legal-nav {
    position: sticky;
    top: 8rem;
    height: fit-content;
}

@media (max-width: 1024px) {
    .legal-nav { display: none; }
}

.legal-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.legal-nav-link {
    color: var(--lf3-text-sec-light);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

[data-theme="dark"] .legal-nav-link { color: rgba(255, 255, 255, 0.6); }

.legal-nav-link:hover {
    background: rgba(21, 101, 255, 0.05);
    color: var(--lf3-blue);
}

.legal-nav-link.active {
    background: rgba(21, 101, 255, 0.08);
    color: var(--lf3-blue);
    font-weight: 700;
}

/* Content Sections */
.legal-content {
    max-width: 800px;
}

.legal-section {
    margin-bottom: 5rem;
    scroll-margin-top: 8rem;
}

.legal-section h2 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: var(--lf3-text-main-light);
    display: flex;
    align-items: baseline;
    gap: 12px;
}

[data-theme="dark"] .legal-section h2 { color: white; }

.section-number {
    font-size: 1rem;
    opacity: 0.3;
    font-weight: 400;
}

.legal-section p {
    margin-bottom: 1.25rem;
    color: var(--lf3-text-sec-light);
    line-height: 1.8;
}

[data-theme="dark"] .legal-section p { color: rgba(255, 255, 255, 0.72); }

.legal-section ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    color: var(--lf3-text-sec-light);
}

[data-theme="dark"] .legal-section ul { color: rgba(255, 255, 255, 0.72); }

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

.legal-section strong {
    color: var(--lf3-text-main-light);
}

[data-theme="dark"] .legal-section strong { color: white; }

.legal-highlight-box {
    background: rgba(21, 101, 255, 0.03);
    border: 1px solid rgba(21, 101, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    margin: 2rem 0;
}

[data-theme="dark"] .legal-highlight-box {
    background: rgba(41, 214, 255, 0.02);
    border-color: rgba(41, 214, 255, 0.08);
}

.legal-footer-contact {
    margin-top: 8rem;
    padding-top: 4rem;
    border-top: 1px solid var(--lf3-border-light);
    text-align: center;
}

[data-theme="dark"] .legal-footer-contact { border-color: rgba(255, 255, 255, 0.05); }
