:root {
    --primary-blue: #500EAF;
    --primary-purple: #9810fa;
    --text-main: #101828;
    --text-muted: #667085;
    --text-soft: #98a2b3;
    --line: #e4e7ec;
    --surface: #ffffff;
    --surface-soft: #f8f9fb;
    --gradient-main: linear-gradient(135deg, #500EAF 0%, #9810fa 100%);
    --shadow-card: 0 18px 44px rgba(16, 24, 40, 0.08);
    --purple-dark: #5038C8;
    --purple: #9810FA;
    --main: #500EAF;
    --text: #1a1a2e;
    --text-mid: #4b5563;
    --text-light: #9ca3af;
    --white: #ffffff;
    --bg-input: #f3f4f6;
    --border: #e5e7eb;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 12px 48px rgba(0, 0, 0, 0.12);
    --radius: 18px;
    --radius-sm: 12px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text-main);
    background:
        linear-gradient(180deg, #ffffff 0%, #f7f9ff 34%, #ffffff 100%),
        #ffffff;
    font-family: "Inter", sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

.policy-shell {
    min-height: 100vh;
}

/* ════════════════════════════════════════
   NAVBAR
════════════════════════════════════════ */
.login-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    height: 62px;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.login-nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--purple);
}

.login-logo-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, #9810FA, #500EAF);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.login-nav-pills {
    display: flex;
    align-items: center;
    gap: 10px;
}

.login-nav-pill {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px 18px;
    border-radius: 24px;
    border: 1.5px solid var(--main);
    color: var(--main);
    font-size: 0.84rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
    white-space: nowrap;
}

.login-nav-pill:hover {
    background: rgba(74, 108, 247, 0.06);
}

.login-hamburger {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.login-hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
}

.desktop-only {
    display: flex;
}

.mobile-only {
    display: none;
}

.policy-topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    min-height: 78px;
    padding: 0 clamp(20px, 7vw, 112px);
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(16, 24, 40, 0.08);
    backdrop-filter: blur(16px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    color: #4a3df0;
}

.brand__mark {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    color: #ffffff;
    background: var(--gradient-main);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.24);
}

.brand__text {
    font-size: 18px;
}

.top-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.top-links a {
    padding: 10px 15px;
    border: 1px solid #dbe4ff;
    border-radius: 999px;
    color: var(--primary-blue);
    background: #ffffff;
    font-size: 12px;
    font-weight: 600;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.top-links a:hover {
    transform: translateY(-1px);
    border-color: #a9c2ff;
    background: #f4f7ff;
}

.policy-main {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 54px 0 72px;
}

.policy-hero {
    max-width: 760px;
    margin-bottom: 34px;
}

.eyebrow {
    margin: 0 0 10px;
    color: #6941c6;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.policy-hero h1 {
    margin: 0;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.05;
    font-weight: 800;
}

.policy-hero p:last-child {
    margin: 16px 0 0;
    color: var(--text-muted);
    font-size: 17px;
    line-height: 28px;
}

.policy-layout {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.policy-sidebar {
    position: sticky;
    top: 104px;
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(12px);
}

.policy-tab {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 58px;
    padding: 12px 14px;
    border: 1px solid transparent;
    border-radius: 14px;
    color: #344054;
    background: #ffffff;
    font-size: 14px;
    font-weight: 700;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.policy-tab:hover,
.policy-tab--active {
    transform: translateY(-1px);
    border-color: #dbe4ff;
    background: #f5f8ff;
}

.policy-tab__icon {
    flex: 0 0 auto;
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
}

.policy-tab__icon--main {
    color: #500EAF;
    background: #eaf1ff;
}

.policy-tab__icon--red {
    color: #f04438;
    background: #fff0ee;
}

.policy-tab__icon--green {
    color: #12b76a;
    background: #eafaf2;
}

.policy-content {
    display: grid;
    gap: 28px;
}

.policy-card {
    scroll-margin-top: 112px;
    padding: clamp(24px, 4vw, 44px);
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--surface);
    box-shadow: var(--shadow-card);
}

.policy-card__heading {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 22px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--line);
}

.policy-card__heading .policy-tab__icon {
    width: 38px;
    height: 38px;
    font-size: 16px;
}

.policy-card h2 {
    margin: 0;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.15;
}

.policy-card__heading p {
    margin: 6px 0 0;
    color: var(--text-soft);
    font-size: 13px;
    line-height: 20px;
}

.policy-block+.policy-block {
    margin-top: 26px;
}

.policy-block h3 {
    margin: 0 0 10px;
    font-size: 17px;
    line-height: 26px;
}

.policy-block p,
.policy-block li {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 27px;
}

.policy-block p {
    margin: 0;
}

.policy-block ul {
    display: grid;
    gap: 8px;
    margin: 12px 0 0;
    padding-left: 20px;
}

.policy-footer {
    padding: 24px;
    color: #d0d5dd;
    text-align: center;
    background: #101828;
}

.policy-footer p {
    margin: 0;
    font-size: 14px;
    line-height: 22px;
}

@media (max-width: 860px) {
    .policy-topbar {
        position: static;
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding-top: 18px;
        padding-bottom: 18px;
    }

    .top-links {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 2px;
    }

    .top-links a {
        white-space: nowrap;
    }

    .policy-main {
        width: min(100% - 24px, 640px);
        padding: 28px 0 46px;
    }

    .policy-hero {
        margin-bottom: 20px;
    }

    .policy-hero h1 {
        font-size: 30px;
    }

    .policy-hero p:last-child {
        font-size: 14px;
        line-height: 23px;
    }

    .policy-layout {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .policy-sidebar {
        position: static;
        padding: 10px;
        border-radius: 16px;
        box-shadow: 0 10px 24px rgba(16, 24, 40, 0.06);
    }

    .policy-tab {
        min-height: 54px;
        font-size: 13px;
    }

    .policy-card {
        scroll-margin-top: 18px;
        padding: 22px 18px;
        border-radius: 16px;
        box-shadow: 0 10px 24px rgba(16, 24, 40, 0.06);
    }

    .policy-card__heading {
        align-items: flex-start;
        margin-bottom: 20px;
        padding-bottom: 18px;
    }

    .policy-card h2 {
        font-size: 22px;
    }

    .policy-block+.policy-block {
        margin-top: 22px;
    }

    .policy-block h3 {
        font-size: 15px;
        line-height: 23px;
    }

    .policy-block p,
    .policy-block li {
        font-size: 13px;
        line-height: 22px;
    }
}

@media (max-width: 420px) {
    .policy-main {
        width: min(100% - 20px, 390px);
    }

    .brand__text {
        font-size: 16px;
    }

    .policy-hero h1 {
        font-size: 28px;
    }

    .policy-card {
        padding: 20px 14px;
    }
}