/* ===== LEGAL PAGES — legal.css ===== */
:root {
    --primary: #2196F3;
    --primary-dark: #1565C0;
    --primary-light: #42A5F5;
    --secondary: #0D1B2A;
    --accent: #00BCD4;
    --text-primary: #1a1a2e;
    --text-secondary: #5a6170;
    --text-muted: #8b92a5;
    --bg-light: #f7f9fc;
    --bg-subtle: #eef2f7;
    --border: #e3e8ef;
    --white: #ffffff;
    --success: #22c55e;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    background: var(--white);
}

/* ===== HEADER ===== */
.landing-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(227,232,239,0.6);
    z-index: 1000;
    transition: all 0.3s ease;
}

.landing-header.scrolled { box-shadow: var(--shadow-md); }

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.875rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.logo-section img {
    height: 45px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.938rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover { color: var(--primary); }

.nav-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

/* ===== BUTTONS ===== */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.938rem;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    line-height: 1.4;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 2px 8px rgba(33,150,243,0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    padding: 0.75rem 1rem;
}

.btn-ghost:hover {
    color: var(--primary);
    background: rgba(33,150,243,0.06);
}

/* ===== LEGAL HERO ===== */
.legal-hero {
    padding: 140px 2rem 60px;
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--white) 100%);
    border-bottom: 1px solid var(--border);
    text-align: center;
}

.legal-hero-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(33,150,243,0.08);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.legal-hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -1px;
    margin-bottom: 0.75rem;
}

.legal-hero-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.legal-hero-meta span {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

/* ===== LEGAL BODY ===== */
.legal-body {
    padding: 60px 2rem 80px;
}

.legal-container {
    max-width: 820px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 4rem;
    align-items: start;
}

/* ===== TABLE OF CONTENTS ===== */
.legal-toc {
    position: sticky;
    top: 90px;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.legal-toc h4 {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.legal-toc ol {
    list-style: none;
    counter-reset: toc-counter;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.legal-toc ol li {
    counter-increment: toc-counter;
}

.legal-toc ol li a {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    text-decoration: none;
    font-size: 0.825rem;
    color: var(--text-secondary);
    line-height: 1.4;
    transition: color 0.2s;
}

.legal-toc ol li a::before {
    content: counter(toc-counter) ".";
    color: var(--primary);
    font-weight: 700;
    flex-shrink: 0;
    font-size: 0.75rem;
    margin-top: 1px;
}

.legal-toc ol li a:hover { color: var(--primary); }

/* ===== LEGAL CONTENT ===== */
.legal-content {
    min-width: 0;
}

.legal-section {
    margin-bottom: 3rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--bg-subtle);
}

.legal-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.legal-section-number {
    display: inline-block;
    background: rgba(33,150,243,0.08);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.625rem;
    border-radius: 50px;
    margin-bottom: 0.625rem;
}

.legal-section h2 {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: -0.3px;
}

.legal-section p {
    color: var(--text-secondary);
    font-size: 0.938rem;
    line-height: 1.8;
    margin-bottom: 0.875rem;
}

.legal-section p:last-child { margin-bottom: 0; }

.legal-section ul,
.legal-section ol {
    padding-left: 1.25rem;
    margin-bottom: 0.875rem;
    color: var(--text-secondary);
    font-size: 0.938rem;
    line-height: 1.75;
}

.legal-section ul li,
.legal-section ol li {
    margin-bottom: 0.375rem;
}

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

.legal-highlight {
    background: rgba(33,150,243,0.05);
    border-left: 3px solid var(--primary);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 1rem 1.25rem;
    margin: 1rem 0;
    color: var(--text-secondary);
    font-size: 0.925rem;
    line-height: 1.7;
}

.legal-highlight strong { color: var(--primary); }

.legal-warning {
    background: rgba(239,68,68,0.05);
    border-left: 3px solid #EF4444;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 1rem 1.25rem;
    margin: 1rem 0;
    color: var(--text-secondary);
    font-size: 0.925rem;
    line-height: 1.7;
}

/* ===== FOOTER ===== */
.landing-footer {
    padding: 4rem 2rem 2rem;
    background: var(--secondary);
    color: white;
}

.footer-container { max-width: 1200px; margin: 0 auto; }

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    color: rgba(255,255,255,0.5);
    font-size: 0.875rem;
    line-height: 1.65;
    max-width: 280px;
}

.footer-logo { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.75rem; }
.footer-logo-image { max-width: 180px; height: auto; }

.footer-column h4 {
    color: rgba(255,255,255,0.9);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.25rem;
}

.footer-column ul { list-style: none; }
.footer-column ul li { margin-bottom: 0.625rem; }
.footer-column ul li a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.footer-column ul li a:hover { color: white; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-text {
    color: rgba(255,255,255,0.4);
    font-size: 0.85rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .legal-container { grid-template-columns: 1fr; }
    .legal-toc { position: static; }
    .nav-links { display: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .legal-hero { padding: 120px 1.5rem 40px; }
    .legal-hero-title { font-size: 1.875rem; }
    .legal-body { padding: 40px 1.5rem 60px; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .footer-bottom { flex-direction: column; text-align: center; }
}
