/* Privacy Policy and Terms of Service, on top of /styles.css */

.navbar .nav-lang {
    display: inline-flex;
    align-items: center;
    height: 28px;
    padding: 0 10px;
    border: 1px solid rgba(15, 23, 42, 0.14);
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    color: #475569;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.navbar .nav-lang:hover {
    border-color: #94a3b8;
    color: #0f172a;
    background: #fff;
}

.legal-hero {
    padding: 56px 36px 32px;
}

.legal-kicker {
    margin: 0 0 14px;
    font-size: 12px;
    font-weight: 400;
    color: #64748b;
}

.legal-title {
    margin: 0;
    font-size: 34px;
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.15;
    color: #111;
}

.legal-meta {
    margin: 14px 0 0;
    font-size: 13px;
    line-height: 1.6;
    color: #64748b;
}

.legal-meta span + span::before {
    content: "·";
    margin: 0 8px;
    color: #cbd5e1;
}

.legal-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
}

.legal-tabs a {
    display: inline-flex;
    align-items: center;
    height: 28px;
    padding: 0 12px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: #fff;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    transition: border-color 0.15s, color 0.15s;
}

.legal-tabs a:hover {
    border-color: #94a3b8;
    color: #0f172a;
}

.legal-tabs a[aria-current="page"] {
    border-color: #0a0a0a;
    background: #0a0a0a;
    color: #fff;
}

.legal-body {
    max-width: 780px;
    padding: 40px 36px 64px;
    font-size: 15px;
    line-height: 1.75;
    letter-spacing: -0.01em;
    color: #334155;
    counter-reset: clause;
}

.legal-body h2 {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin: 36px 0 10px;
    padding-top: 26px;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.35;
    color: #111;
}

.legal-body > h2:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.legal-body h2::before {
    counter-increment: clause;
    content: counter(clause, decimal-leading-zero);
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0;
    font-variant-numeric: tabular-nums;
    color: #ea580c;
}

.legal-body p {
    margin: 0 0 12px;
}

.legal-body ul {
    margin: 6px 0 16px;
    list-style: none;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.legal-body li {
    position: relative;
    padding: 10px 0 10px 18px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    color: #1e293b;
}

.legal-body li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: calc(10px + 0.875em);
    width: 5px;
    height: 5px;
    background: #0f172a;
    transform: translateY(-50%);
}

.legal-body a,
.legal-meta a {
    color: #0f172a;
    text-decoration: underline;
    text-decoration-color: rgba(15, 23, 42, 0.28);
    text-underline-offset: 3px;
}

.legal-body a:hover,
.legal-meta a:hover {
    text-decoration-color: #0f172a;
}

@media (max-width: 640px) {
    .navbar .nav-referral-cta {
        display: none;
    }

    .legal-hero {
        padding: 36px 20px 24px;
    }

    .legal-title {
        font-size: 28px;
    }

    .legal-body {
        padding: 28px 20px 48px;
    }

    .legal-body h2 {
        font-size: 17px;
    }
}
