:root {
    --red: #E00803;
    --bg: #EFEFF1;
    --ink: #17181C;
    --muted: #5B5F6A;
    --line: #E2E3E8;
    --font-head: 'Oswald', sans-serif;
    --font-body: 'Poppins', sans-serif;
}

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

body {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.75;
    color: var(--ink);
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

.legal-layout {
    display: flex;
    min-height: 100vh;
}

/* ---------- Sidebar (desktop) ---------- */

.legal-sidebar {
    flex: 0 0 280px;
    width: 280px;
    position: sticky;
    top: 0;
    height: 100vh;
    background: var(--bg);
    border-right: 1px solid var(--line);
    padding: 40px 20px;
}

.legal-home {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    margin-bottom: 40px;
}

.legal-home img { width: 88px; height: 88px; }

.legal-home span {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink);
}

.legal-heading {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 20px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 16px;
}

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

.legal-nav-link {
    display: block;
    padding: 10px 0 10px 14px;
    font-size: 15px;
    color: var(--muted);
    text-decoration: none;
    border-left: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.legal-nav-link:hover { color: var(--ink); }

.legal-nav-link.active {
    color: var(--red);
    font-weight: 600;
    border-left-color: var(--red);
}

.legal-back {
    display: inline-block;
    margin-top: 40px;
    font-size: 13px;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.legal-back:hover { color: var(--red); }

/* ---------- Content ---------- */

.legal-content {
    flex: 1;
    padding: 56px 40px 120px;
}

.legal-content-inner {
    max-width: 900px;
    margin: 0 auto;
}

.legal-content h1 {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: clamp(2rem, 4vw, 2.8rem);
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--ink);
}

.legal-updated {
    font-size: 13px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 12px 0 48px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line);
}

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

.legal-section h2 {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 20px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ink);
    margin-bottom: 12px;
}

.legal-section p {
    color: #3A3D45;
    margin-bottom: 12px;
}

.legal-section ul {
    list-style: none;
    margin-bottom: 12px;
}

.legal-section li {
    position: relative;
    padding-left: 18px;
    color: #3A3D45;
    margin-bottom: 6px;
}

.legal-section li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 11px;
    width: 7px;
    height: 1px;
    background: var(--red);
}

.legal-section a { color: var(--red); }

/* ---------- Mobile tab bar ---------- */

.legal-tabs { display: none; }

@media (max-width: 767px) {
    .legal-layout { display: block; }

    .legal-sidebar { display: none; }

    .legal-content { padding: 32px 24px 140px; }

    .legal-tabs {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 60px;
        z-index: 200;
        background: rgba(239, 239, 241, 0.9);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-top: 1px solid var(--line);
    }

    .legal-tab {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 44px;
        font-family: var(--font-head);
        font-weight: 600;
        font-size: 14px;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        color: var(--muted);
        text-decoration: none;
        border-top: 2px solid transparent;
    }

    .legal-tab.active {
        color: var(--red);
        border-top-color: var(--red);
    }
}
