/* ==========================================================================
   Cookie Policy page
   ========================================================================== */

.cookie-policy {
    background: var(--c-bg-white);
    color: var(--c-text-dark);
}

.cookie-policy .container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 var(--container-px);
}

/* ── Hero ── */
.cookie-policy__hero {
    padding: 120px 0 24px;
    border-bottom: 1px solid var(--c-border-light);
}

.cookie-policy__hero-title {
    font-family: var(--font-display);
    font-size: 40px;
    font-weight: 500;
    letter-spacing: -0.5px;
    line-height: 52px;
    color: rgb(15, 15, 16);
    margin: 0;
}

/* ── Intro ── */
.cookie-policy__intro {
    padding: 48px 0 0;
}

.cookie-policy__intro p {
    font-family: var(--font-display);
    font-size: var(--fs-body);
    line-height: var(--lh-body);
    color: rgb(23, 23, 25);
    margin: 0 0 20px;
}

.cookie-policy__intro p:last-child {
    margin-bottom: 0;
}

/* ── Section wrapper ── */
.cookie-policy__section {
    padding: 72px 0;
}

.cookie-policy__number {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: var(--c-text-muted);
    margin-bottom: 12px;
}

.cookie-policy__section-title {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 500;
    letter-spacing: -0.5px;
    line-height: 48px;
    color: rgb(23, 23, 25);
    margin: 0 0 16px;
}

.cookie-policy__lead {
    font-family: var(--font-display);
    font-size: var(--fs-body);
    line-height: var(--lh-body);
    color: rgb(23, 23, 25);
    margin: 0 0 24px;
}

/* ── Declaration group ── */
.cookie-policy__group {
    margin-bottom: 48px;
}

.cookie-policy__group:last-child {
    margin-bottom: 0;
}

.cookie-policy__group-title {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 28px;
    color: rgb(23, 23, 25);
    margin: 0 0 8px;
}

.cookie-policy__group-desc {
    font-family: var(--font-display);
    font-size: 15px;
    line-height: 24px;
    color: var(--c-text-muted);
    margin: 0 0 16px;
}

/* ── Table ── */
.cookie-policy__table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-display);
    font-size: 14px;
    line-height: 22px;
    color: rgb(23, 23, 25);
    margin: 0 0 8px;
}

.cookie-policy__table thead th {
    text-align: left;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: -0.3px;
    color: rgb(23, 23, 25);
    padding: 12px 12px;
    border-bottom: 1px solid var(--c-border-light);
    background: var(--c-bg-light);
}

.cookie-policy__table tbody td {
    padding: 14px 12px;
    border-bottom: 1px solid var(--c-border-light);
    vertical-align: top;
    word-break: break-word;
}

.cookie-policy__name {
    font-weight: 600;
    white-space: nowrap;
}

.cookie-policy__count {
    text-align: center;
    font-variant-numeric: tabular-nums;
    width: 60px;
}

.cookie-policy__table--overview tbody td:first-child {
    white-space: nowrap;
    font-weight: 700;
}

.cookie-policy__table--overview tbody td:nth-child(2) {
    color: var(--c-text-muted);
}

/* ── Cookiebot auto-embed (cd.js) ──
   Cookiebot injects its own table styles. Scope tweaks to match theme. */
.cookie-policy__cookiebot {
    font-family: var(--font-display);
    font-size: 14px;
    line-height: 22px;
    color: rgb(23, 23, 25);
}

.cookie-policy__cookiebot .CookieDeclaration,
.cookie-policy__cookiebot h2,
.cookie-policy__cookiebot h3 {
    font-family: var(--font-display);
}

.cookie-policy__cookiebot h3 {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 28px;
    margin: 32px 0 8px;
}

.cookie-policy__cookiebot p {
    font-size: 15px;
    line-height: 24px;
    color: var(--c-text-muted);
    margin: 0 0 16px;
}

.cookie-policy__cookiebot table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.cookie-policy__cookiebot th,
.cookie-policy__cookiebot td {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid var(--c-border-light);
    vertical-align: top;
}

.cookie-policy__cookiebot thead th {
    background: var(--c-bg-light);
    font-weight: 700;
}

.cookie-policy__cookiebot a {
    color: var(--c-accent-purple);
}

/* Hide Cookiebot's own branding footer if desired */
.cookie-policy__cookiebot .CookieDeclarationLastUpdated {
    font-size: 12px;
    color: var(--c-text-muted);
}

/* ── Manage button ── */
.cookie-policy__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 999px;
    border: 1px solid rgb(23, 23, 25);
    background: rgb(23, 23, 25);
    color: #fff;
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: -0.2px;
    cursor: pointer;
    margin-top: 16px;
    transition: opacity var(--transition);
}

.cookie-policy__btn:hover {
    opacity: 0.9;
}

/* ── Contact block ── */
.cookie-policy__contact-block {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--c-border-light);
}

.cookie-policy__contact-block p {
    font-family: var(--font-display);
    font-size: 15px;
    line-height: 24px;
    color: rgb(23, 23, 25);
    margin: 0 0 16px;
}

.cookie-policy__contact-block p:last-child {
    margin-bottom: 0;
}

.cookie-policy a {
    color: var(--c-accent-purple);
    text-decoration: none;
}

.cookie-policy a:hover {
    text-decoration: underline;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .cookie-policy__hero {
        padding: 96px 0 20px;
    }

    .cookie-policy__hero-title {
        font-size: 30px;
        line-height: 38px;
    }

    .cookie-policy__section {
        padding: 48px 0;
    }

    .cookie-policy__section-title {
        font-size: 24px;
        line-height: 32px;
    }

    .cookie-policy__table {
        font-size: 13px;
    }

    .cookie-policy__table thead th,
    .cookie-policy__table tbody td {
        padding: 10px 8px;
    }

    .cookie-policy__table--overview {
        font-size: 13px;
    }
}

@media (max-width: 640px) {
    /* Stack declaration table into rows */
    .cookie-policy__table:not(.cookie-policy__table--overview) thead {
        display: none;
    }

    .cookie-policy__table:not(.cookie-policy__table--overview) tbody tr {
        display: grid;
        grid-template-columns: 100px 1fr;
        gap: 4px 12px;
        padding: 12px 0;
        border-bottom: 1px solid var(--c-border-light);
    }

    .cookie-policy__table:not(.cookie-policy__table--overview) tbody td {
        padding: 2px 0;
        border: 0;
    }

    .cookie-policy__table:not(.cookie-policy__table--overview) tbody td:first-child {
        grid-column: 1 / -1;
    }
}
