:root {
    --brand-navy: #1A3C6E;
    --brand-blue: #2E6DB4;
    --accent-light: #EAF1FB;

    --text-dark: #1E2A3A;
    --text-body: #444F5E;
    --text-muted: #6B7A8D;

    --border: #D3DFF0;
    --bg-page: #F8FAFD;
    --white: #FFFFFF;

    --radius: 8px;
    --shadow: 0 2px 16px rgba(26, 60, 110, 0.08);
    --max-w: 1024px;

    --c-necessary: #1A3C6E;
    --c-functional: #2E6DB4;
    --c-analytics: #0A7D6C;
    --c-marketing: #7B3FA0;
}

a {
    color: var(--brand-blue);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.topbar {
    background: var(--brand-navy);
    color: #fff;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.topbar-logo {
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
    text-decoration: none;
}

.topbar-sep {
    color: rgba(255,255,255,.35);
}

.topbar-page {
    color: rgba(255,255,255,.75);
    font-size: .9rem;
}

.doc-hero {
    background: linear-gradient(
            135deg,
            #0F2A50 0%,
            var(--brand-blue) 100%
    );

    color: #fff;
    padding: 64px 24px;
    text-align: center;
}

.doc-hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 10px;
}

.doc-hero .subtitle {
    font-size: 1.05rem;
    opacity: .85;
    margin-bottom: 28px;
}

.doc-meta {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.doc-meta span {
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 20px;
    padding: 5px 14px;
    font-size: .82rem;
    font-weight: 500;
}

/*.doc-wrapper {*/
/*    max-width: var(--max-w);*/
/*    margin: 0 auto;*/
/*    padding: 48px 24px 80px;*/
/*}*/

.toc {
    background: var(--white);
    border: 1px solid var(--border);
    border-left: 4px solid var(--brand-blue);
    border-radius: var(--radius);
    padding: 24px 28px;
    margin-bottom: 40px;
    box-shadow: var(--shadow);
}

.toc h2 {
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.toc ol {
    padding-left: 18px;
    columns: 2;
    column-gap: 28px;
}

.toc li {
    margin-bottom: 6px;
    font-size: .88rem;
    break-inside: avoid;
}

.policy-section {
    margin-bottom: 52px;
}

.policy-section h2 {
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--brand-navy);
    padding-bottom: 10px;
    border-bottom: 2px solid var(--brand-blue);
    margin-bottom: 20px;

    display: flex;
    align-items: center;
    gap: 10px;
}

.policy-section h2 .sec-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 30px;
    height: 30px;

    background: var(--brand-blue);
    color: #fff;
    border-radius: 50%;

    font-size: .85rem;
    font-weight: 700;
    flex-shrink: 0;
}

.policy-section h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--brand-blue);
    margin: 24px 0 10px;
}

.policy-section p {
    margin-bottom: 14px;
    font-size: .95rem;
}

.policy-section ul,
.policy-section ol {
    padding-left: 22px;
    margin-bottom: 14px;
}

.policy-section li {
    font-size: .95rem;
    margin-bottom: 7px;
}

.info-grid {
    display: grid;
    grid-template-columns: auto 1fr;

    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;

    margin: 20px 0;
    box-shadow: var(--shadow);
}

.info-grid dt {
    background: var(--accent-light);
    color: var(--brand-navy);
    font-weight: 700;
    font-size: .82rem;
    padding: 11px 16px;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.info-grid dd {
    padding: 11px 16px;
    font-size: .88rem;
    border-bottom: 1px solid var(--border);
    margin: 0;
}

.info-grid dt:last-of-type,
.info-grid dd:last-of-type {
    border-bottom: none;
}

.callout {
    background: var(--accent-light);
    border-left: 4px solid var(--brand-blue);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 16px 20px;
    margin: 18px 0;
    font-size: .9rem;
}

.callout strong {
    color: var(--brand-navy);
}

.rights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px,1fr));
    gap: 14px;
    margin: 18px 0;
}

.right-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-top: 3px solid var(--brand-blue);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow);
}

.right-card .right-title {
    font-weight: 700;
    color: var(--brand-navy);
    font-size: .88rem;
    margin-bottom: 5px;
}

.right-card p {
    font-size: .82rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

.cookie-categories {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(210px,1fr));
    gap: 16px;
    margin: 24px 0;
}

.cat-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 16px;
    box-shadow: var(--shadow);
}

.cat-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;

    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #fff;

    margin-bottom: 10px;
}

.cat-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.cat-card p {
    font-size: .82rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

.cat-opt {
    font-size: .78rem;
    margin-top: 10px;
    font-weight: 600;
}

.badge-nec { background: var(--c-necessary); }
.badge-func { background: var(--c-functional); }
.badge-ana { background: var(--c-analytics); }
.badge-mkt { background: var(--c-marketing); }

.cookie-table-wrap {
    overflow-x: auto;
    margin: 18px 0;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.cookie-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .85rem;
    background: var(--white);
}

.cookie-table thead tr {
    background: var(--brand-navy);
    color: #fff;
}

.cookie-table th,
.cookie-table td {
    padding: 11px 14px;
    text-align: left;
    vertical-align: top;
}

.cookie-table td {
    border-bottom: 1px solid var(--border);
}

.cookie-table tbody tr:nth-child(even) {
    background: var(--accent-light);
}

.cookie-table tbody tr:last-child td {
    border-bottom: none;
}

.badge-pill {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 20px;
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    white-space: nowrap;
}

.compliance-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 16px 0;
}

.comp-badge {
    flex: 1;
    min-width: 160px;

    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 18px;
    box-shadow: var(--shadow);
}

.comp-label {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.comp-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--brand-navy);
}

.doc-footer {
    background: var(--brand-navy);
    color: rgba(255,255,255,.7);
    text-align: center;
    padding: 28px 24px;
    font-size: .83rem;
}

.doc-footer a {
    color: rgba(255,255,255,.9);
}

@media (max-width: 768px) {
    .doc-wrapper {
        padding: 36px 18px 60px;
    }

    .doc-hero {
        padding: 48px 18px;
    }

    .policy-section h2 {
        font-size: 1.25rem;
    }
}

@media (max-width: 560px) {
    .toc ol {
        columns: 1;
    }

    .info-grid dt,
    .info-grid dd {
        border-bottom: 1px solid var(--border);
    }

    .doc-meta {
        flex-direction: column;
        align-items: center;
    }
}