/* ============================================================
   LEGAL PAGES — Terms of Service & Privacy Policy
   ============================================================ */

:root {
    --legal-bg: #060b18;
    --legal-card-bg: #ffffff;
    --legal-sidebar-bg: #f8fafc;
    --legal-accent: #059899;
    --legal-text-main: #1e293b;
    --legal-text-muted: #64748b;
    --legal-border: #e2e8f0;
}

/* Hero Section */
.legal-hero {
    position: relative;
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #060b18 0%, #0a1528 100%);
    overflow: hidden;
    color: #ffffff;
    text-align: center;
}

.legal-hero-bg {
    position: absolute;
    inset: 0;
    opacity: 0.4;
    pointer-events: none;
}

.legal-grid-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(6, 182, 212, 0.15) 1px, transparent 1px);
    background-size: 30px 30px;
}

.legal-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(5, 152, 153, 0.15) 0%, transparent 70%);
    filter: blur(60px);
    border-radius: 50%;
}

.legal-hero .container {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
}

.legal-hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.legal-hero p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
}

/* Main Layout */
.legal-main {
    padding: 80px 0;
    background-color: #f1f5f9;
}

.legal-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Sidebar Navigation */
.legal-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
    background: #ffffff;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    border: 1px solid var(--legal-border);
}

.legal-sidebar h4 {
    font-size: 14px;
    color: var(--legal-text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
}

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

.legal-nav-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--legal-text-main);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.legal-nav-link i {
    font-size: 12px;
    color: var(--legal-accent);
    opacity: 0.6;
}

.legal-nav-link:hover {
    background-color: #f1f5f9;
    color: var(--legal-accent);
}

.legal-nav-link.active {
    background-color: rgba(5, 152, 153, 0.1);
    color: var(--legal-accent);
}

/* Content Area */
.legal-card {
    background: #ffffff;
    padding: 60px;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.04);
    border: 1px solid var(--legal-border);
}

.legal-info-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--legal-border);
}

.last-updated-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f1f5f9;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    color: var(--legal-text-muted);
}

.print-btn {
    background: none;
    border: none;
    color: var(--legal-accent);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: opacity 0.3s;
}

.print-btn:hover {
    opacity: 0.7;
}

.legal-body section {
    margin-bottom: 40px;
}

.legal-body h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--legal-text-main);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.legal-body h2 span {
    color: var(--legal-accent);
    font-family: 'Outfit', sans-serif;
    opacity: 0.5;
}

.legal-body p {
    font-size: 16px;
    line-height: 1.8;
    color: #475569;
    margin-bottom: 20px;
}

.legal-body ul {
    list-style: none;
    margin-bottom: 20px;
}

.legal-body li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 12px;
    color: #475569;
    line-height: 1.6;
}

.legal-body li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 4px;
    font-size: 12px;
    color: var(--legal-accent);
}

/* Responsive */
@media screen and (max-width: 992px) {
    .legal-grid {
        grid-template-columns: 1fr;
    }
    .legal-sidebar {
        display: none;
    }
    .legal-card {
        padding: 40px 24px;
    }
}
