:root {
    --ts-primary: #3f9b46;
    --ts-primary-dark: #2d7533;
    --ts-primary-soft: #eef8ef;
    --ts-accent: #f3a51b;
    --ts-ink: #202832;
    --ts-muted: #66717d;
    --ts-line: #dfe5e8;
    --ts-bg: #f4f6f7;
    --ts-white: #ffffff;
    --ts-shadow: 0 12px 34px rgba(26, 42, 51, .08);
}

html {
    scroll-behavior: smooth;
}

/* Scoped to avoid conflicts with Toner Support header / mega menu */
.cookies-page {
    color: var(--ts-ink);
    background: var(--ts-bg);
}

.cookies-page a {
    color: var(--ts-primary-dark);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.cookies-page a:hover {
    color: var(--ts-primary);
}

.cookies-hero {
    position: relative;
    overflow: hidden;
    padding: 76px 0 70px;
    color: var(--ts-white);
    background: linear-gradient(125deg, #172128 0%, #26333b 66%, #31413f 100%);
    border-bottom: 5px solid var(--ts-primary);
}

.cookies-hero::after {
    content: "";
    position: absolute;
    width: 430px;
    height: 430px;
    right: -140px;
    top: -180px;
    border: 72px solid rgba(63, 155, 70, .18);
    border-radius: 50%;
}

.cookies-hero__content {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

.cookies-page .eyebrow {
    display: inline-flex;
    padding: 7px 13px;
    margin-bottom: 18px;
    color: #e7f7e9;
    background: rgba(63, 155, 70, .2);
    border: 1px solid rgba(159, 219, 164, .35);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.cookies-hero p {
    max-width: 820px;
    margin: 0 0 20px;
    color: #dbe2e6;
    font-size: 18px;
}

.cookies-hero p strong {
    color: inherit;
}

.cookies-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 30px;
    padding-top: 42px;
    padding-bottom: 72px;
}

.cookies-sidebar {
    min-width: 0;
}

.cookies-page .sidebar-card {
    position: sticky;
    top: 70px;
    padding: 24px;
    background: #fff;
    border: 1px solid var(--ts-line);
    border-radius: 12px;
    box-shadow: var(--ts-shadow);
}

.cookies-page .sidebar-card h2 {
    margin: 0 0 16px;
    font-size: 18px;
    font-weight: 800;
}

.cookie-index-links {
    display: grid;
    gap: 7px;
}

.cookie-index-links a {
    display: grid;
    grid-template-columns: 32px 1fr;
    gap: 9px;
    align-items: start;
    padding: 9px 10px;
    color: #37424b;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.35;
    text-decoration: none;
}

.cookie-index-links a:hover {
    color: var(--ts-primary-dark);
    background: var(--ts-primary-soft);
}

.cookie-index-links span {
    display: grid;
    place-items: center;
    min-height: 24px;
    color: #fff;
    background: var(--ts-primary);
    border-radius: 5px;
    font-size: 11px;
    font-weight: 800;
}

.cookies-content {
    min-width: 0;
}

.cookies-card {
    margin-bottom: 24px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--ts-line);
    border-radius: 12px;
    box-shadow: var(--ts-shadow);
    scroll-margin-top: 70px;
}

.cookies-card__header {
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 20px 26px;
    background: linear-gradient(90deg, #f8fbf8, #fff);
    border-bottom: 1px solid var(--ts-line);
}

.cookies-page .part-number {
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--ts-primary);
    border-radius: 10px;
    font-weight: 800;
    box-shadow: 0 7px 18px rgba(63, 155, 70, .22);
}

.cookies-card__header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.25;
}

.cookies-card__body {
    padding: 28px;
}

.cookies-card__body > :last-child {
    margin-bottom: 0;
}

.cookies-card__body p {
    margin: 0 0 17px;
}

.cookies-card__body strong {
    color: #161d22;
}

.cookies-list {
    margin: 0 0 20px;
    padding-left: 0;
    list-style: none;
}

.cookies-list li {
    position: relative;
    margin-bottom: 10px;
    padding-left: 25px;
}

.cookies-list li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: .72em;
    width: 8px;
    height: 8px;
    background: var(--ts-accent);
    border-radius: 50%;
}

.cookies-note {
    margin-top: 18px;
    padding: 16px 18px;
    color: var(--ts-ink);
    background: var(--ts-primary-soft);
    border: 1px solid #cfe6d1;
    border-left: 4px solid var(--ts-primary);
    border-radius: 0 8px 8px 0;
}

.browser-list li strong {
    color: var(--ts-primary-dark);
}

@media (max-width: 991.98px) {
    .cookies-layout {
        grid-template-columns: 1fr;
    }

    .cookies-page .sidebar-card {
        position: static;
    }

    .cookie-index-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .cookies-page {
        font-size: 15px;
    }

    .cookies-hero {
        padding: 52px 0 48px;
    }

    .cookies-hero p {
        font-size: 16px;
    }

    .cookies-layout {
        padding-top: 24px;
        padding-bottom: 44px;
    }

    .cookie-index-links {
        grid-template-columns: 1fr;
    }

    .cookies-card__header {
        padding: 17px;
        align-items: flex-start;
    }

    .cookies-page .part-number {
        flex-basis: 40px;
        width: 40px;
        height: 40px;
    }

    .cookies-card__header h2 {
        font-size: 20px;
    }

    .cookies-card__body {
        padding: 20px 17px;
    }
}

@media print {
    .cookies-page {
        background: #fff;
        color: #000;
        font-size: 11pt;
    }

    .cookies-hero {
        padding: 25px 0;
        color: #000;
        background: #fff;
        border-bottom: 2px solid #000;
    }

    .cookies-hero::after,
    .cookies-sidebar {
        display: none;
    }

    .cookies-hero p {
        color: #000;
    }

    .cookies-layout {
        display: block;
        padding: 20px 0;
    }

    .cookies-card {
        break-inside: avoid;
        box-shadow: none;
        border-color: #aaa;
    }

    .cookies-page .part-number {
        color: #000;
        background: #fff;
        border: 1px solid #000;
        box-shadow: none;
    }

    .cookies-page a {
        color: #000;
        text-decoration: none;
    }
}

/* =========================================================
   COOKIE POLICY INDEX
   Uses a neutral DIV instead of <nav> so the Toner Support
   menu/navigation JavaScript cannot take control of it.
   ========================================================= */

.cookies-page .sidebar-card .cookie-index-links {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 7px;
    width: 100%;
    height: auto;
    max-height: none;
    margin: 0;
    padding: 0;
    overflow: visible;
    visibility: visible;
    opacity: 1;
    position: static;
    transform: none;
}

.cookies-page .sidebar-card .cookie-index-links > a {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 9px;
    align-items: start;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 9px 10px;
    position: static;
    visibility: visible;
    opacity: 1;
    color: #37424b;
    background: transparent;
    border: 0;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.35;
    text-decoration: none;
    transform: none;
}

.cookies-page .sidebar-card .cookie-index-links > a:hover,
.cookies-page .sidebar-card .cookie-index-links > a:focus {
    color: var(--ts-primary-dark);
    background: var(--ts-primary-soft);
    text-decoration: none;
}

.cookies-page .sidebar-card .cookie-index-links > a > span {
    display: grid;
    place-items: center;
    width: 32px;
    min-width: 32px;
    min-height: 24px;
    padding: 0;
    color: #fff;
    background: var(--ts-primary);
    border-radius: 5px;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;
}

@media (max-width: 991.98px) {
    .cookies-page .sidebar-card .cookie-index-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .cookies-page .sidebar-card .cookie-index-links {
        grid-template-columns: minmax(0, 1fr);
    }
}

