/* Route-specific styles extracted from landing.css: legal */

/* ============================================
   LEGAL PAGE CINEMATIC STYLES
   ============================================ */

.legal-page-cinematic {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #f8fafc;
    font-family: 'Inter', sans-serif;
    color: #1e293b;
}

/* Ensure all links in legal page are clickable */
.legal-page-cinematic a {
    pointer-events: auto;
    cursor: pointer;
}

/* Force grey background on body for legal pages */
body.landing-page:has(.legal-page-cinematic) {
    background-color: #f8fafc !important;
}

/* Legal Header */
.legal-header {
    background-color: #050b14;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
}

/* Public pages use fixed .tech-navbar (80px); offset the legal header so breadcrumbs/title aren't hidden under the logo */
.legal-page-cinematic.has-front-nav .legal-header {
    padding-top: calc(3rem + 80px);
}

.legal-header-grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(to right, rgba(255,255,255,0.03) 1px, transparent 1px),
                      linear-gradient(to bottom, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.5;
    pointer-events: none;
}

.legal-header-content {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 10;
}

.legal-header-inner {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .legal-header-inner {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-end;
    }
}

.legal-header-left {
    flex: 1;
}

.legal-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 1rem;
}

.legal-breadcrumb a {
    color: #64748b;
    transition: color 0.2s;
    cursor: pointer;
    pointer-events: auto;
}

.legal-breadcrumb a:hover {
    color: #fff;
}

.legal-breadcrumb span:last-child {
    color: #06b6d4;
}

.legal-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.875rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

@media (min-width: 768px) {
    .legal-title {
        font-size: 2.25rem;
    }
}

.legal-subtitle {
    color: #94a3b8;
    font-size: 14px;
    font-weight: 300;
    margin: 0;
}

.legal-header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
}

@media (min-width: 768px) {
    .legal-header-right {
        align-items: flex-end;
    }
}

.legal-meta-badges {
    display: flex;
    gap: 1rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    color: #94a3b8;
}

.legal-meta-badge {
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 2px;
}

.legal-print-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #fff;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: color 0.2s;
}

.legal-print-btn:hover {
    color: #06b6d4;
}

/* Legal Container */
.legal-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
    flex: 1;
    background-color: #f8fafc !important;
    position: relative;
    z-index: 1;
}

/* Ensure legal page wrapper has grey background */
.legal-page-cinematic .legal-container,
.legal-page-cinematic .legal-grid,
.legal-page-cinematic .legal-main {
    background-color: #f8fafc !important;
}

.legal-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 1024px) {
    .legal-grid {
        grid-template-columns: 3fr 7fr 2fr;
    }
}

/* Legal Sidebar */
.legal-sidebar {
    display: none;
}

@media (min-width: 1024px) {
    .legal-sidebar {
        display: block;
    }
}

.legal-sidebar-card {
    position: sticky;
    top: 6rem;
    border: 1px solid #e2e8f0;
    border-radius: 2px;
    background: #fff;
    padding: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    z-index: 1;
}

.legal-sidebar-label {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #94a3b8;
    padding: 0 0.75rem;
    margin-bottom: 1rem;
}

/* TOC Navigation */
.legal-toc {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.legal-toc-link {
    display: block;
    padding: 0.5rem 0.75rem;
    font-size: 12px;
    font-family: 'Inter', sans-serif;
    color: #64748b;
    border-left: 2px solid transparent;
    border-radius: 0 2px 2px 0;
    transition: all 0.2s;
    line-height: 1.4;
    cursor: pointer;
    position: relative;
    z-index: 1;
    pointer-events: auto;
}

.legal-toc-link:hover {
    background-color: #f8fafc;
    color: #0f172a;
}

.legal-toc-link.active {
    color: #06b6d4;
    border-left-color: #06b6d4;
    background-color: #f1f5f9;
    font-weight: 600;
}

/* Sidebar Support */
.legal-sidebar-support {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #f1f5f9;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.legal-sidebar-support p {
    font-size: 10px;
    font-family: 'JetBrains Mono', monospace;
    color: #94a3b8;
    margin-bottom: 0.5rem;
}

.legal-sidebar-support a {
    font-size: 12px;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.2s;
}

.legal-sidebar-support a:hover {
    color: #3b82f6;
}

/* Legal Main Content */
.legal-main {
    min-height: 600px;
}

.legal-main-full {
    grid-column: 1 / -1;
}

@media (min-width: 1024px) {
    .legal-main-full {
        grid-column: 1 / span 2;
    }
}

.legal-content {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 2px;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    min-height: 500px;
    position: relative;
    z-index: 1;
}

@media (min-width: 768px) {
    .legal-content {
        padding: 3rem;
    }
}

/* Legal Content Typography - matching React project */
.legal-content {
    font-family: 'Inter', sans-serif;
}

.legal-content h2 {
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    scroll-margin-top: 120px;
    letter-spacing: -0.01em;
}

/* Hide any H1 in content (title is in header) */
.legal-content h1 {
    display: none;
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #334155;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.legal-content p {
    font-family: 'Inter', sans-serif;
    margin-bottom: 1rem;
    line-height: 1.7;
    color: #475569;
    font-size: 0.95rem;
}

/* Lead paragraph */
.legal-content p.lead,
.legal-content > p:first-of-type {
    font-size: 0.875rem;
    font-weight: 500;
    color: #64748b;
    margin-bottom: 2rem;
}

.legal-content ul,
.legal-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
    color: #475569;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
}

.legal-content ul {
    list-style-type: disc;
}

.legal-content ol {
    list-style-type: decimal;
}

.legal-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.legal-content strong {
    color: #0f172a;
    font-weight: 600;
}

.legal-content a {
    color: #0f172a;
    text-decoration: underline !important;
    text-decoration-color: #94a3b8 !important;
    cursor: pointer;
    position: relative;
    z-index: 1;
    pointer-events: auto;
}

.legal-content a:hover {
    color: #3b82f6;
    text-decoration-color: #3b82f6 !important;
}

/* Callout Box - IOD info style from React */
.legal-content .callout,
.legal-content blockquote {
    background-color: #f8fafc;
    border-left: 4px solid #0f172a;
    padding: 1rem;
    margin: 1.5rem 0;
}

.legal-content blockquote p,
.legal-content .callout p {
    margin-bottom: 0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: #64748b;
    line-height: 1.6;
}

.legal-content blockquote a,
.legal-content .callout a {
    color: #0f172a;
    font-weight: 700;
}

/* Table Styles - matching React project */
.legal-content table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    margin: 1.5rem 0;
    border: 1px solid #e2e8f0;
    font-family: 'Inter', sans-serif;
}

.legal-content thead {
    background-color: #f1f5f9;
}

.legal-content th {
    padding: 0.75rem;
    text-align: left;
    font-weight: 700;
    color: #0f172a;
    text-transform: uppercase;
    font-size: 11px;
    border-bottom: 1px solid #e2e8f0;
}

.legal-content td {
    padding: 0.75rem;
    border-bottom: 1px solid #f1f5f9;
    color: #64748b;
}

.legal-content tbody tr:hover {
    background-color: #f8fafc;
}

/* Empty state */
.legal-empty {
    color: #94a3b8;
    font-style: italic;
    text-align: center;
    padding: 3rem;
}

/* Spacer column */
.legal-spacer {
    display: none;
}

@media (min-width: 1024px) {
    .legal-spacer {
        display: block;
    }
}

/* Print styles */
@media print {
    .legal-header-grid,
    .legal-sidebar,
    .legal-print-btn,
    .cinematic-navbar,
    .cinematic-footer {
        display: none !important;
    }
    
    .legal-header {
        background: #fff !important;
        color: #000 !important;
        border-bottom: 2px solid #000;
    }
    
    .legal-title {
        color: #000 !important;
    }
    
    .legal-content {
        border: none;
        box-shadow: none;
        padding: 0;
    }
    
    .legal-grid {
        display: block;
    }
}


