/*
 * Cookie policy page (Cms, CookiePolicyController). A static sheet on purpose: it is
 * only linked from that page, needs no build step, and uses the site's own tokens
 * (tokens.css) with a fallback for each, so it follows the brand without a new colour.
 */
.cms-cookie-policy__version {
    color: var(--c-muted, #5b5b7a);
    font-size: var(--text-sm, .9375rem);
    margin: var(--space-3, .75rem) 0 0;
}

.cms-cookie-policy h3 {
    font-family: var(--font-display, inherit);
    font-size: var(--text-h3, 1.375rem);
    margin: var(--space-6, 2rem) 0 var(--space-3, .75rem);
    text-transform: uppercase;
}

.cms-cookie-policy__provider {
    border-left: 4px solid var(--c-signal, var(--brand-danger, #cc2038));
    margin: 0 0 var(--space-5, 1.5rem);
    padding-left: var(--space-4, 1rem);
}

.cms-cookie-policy__provider h4 {
    font-size: var(--text-lg, 1.125rem);
    margin: 0 0 var(--space-2, .5rem);
}

.cms-cookie-policy__provider p {
    margin: 0 0 var(--space-2, .5rem);
    max-width: var(--measure, 68ch);
}

.cms-cookie-policy__meta {
    color: var(--c-muted, #5b5b7a);
    font-size: var(--text-sm, .9375rem);
}

.cms-cookie-policy__scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.cms-cookie-policy__table {
    border-collapse: collapse;
    font-size: var(--text-sm, .9375rem);
    margin: var(--space-3, .75rem) 0 0;
    min-width: 36rem;
    width: 100%;
}

.cms-cookie-policy__table thead th {
    background: var(--c-navy, var(--brand-primary, #25255c));
    color: #ffffff;
    font-weight: 700;
    padding: .7rem .85rem;
    text-align: left;
}

.cms-cookie-policy__table tbody th,
.cms-cookie-policy__table td {
    border-bottom: 1px solid var(--c-line, #e6e0d6);
    padding: .7rem .85rem;
    text-align: left;
    vertical-align: top;
}

.cms-cookie-policy__table tbody tr:nth-child(even) > * {
    background: var(--c-tint, #f6f3ee);
}

.cms-cookie-policy__table code {
    font-size: .9em;
    overflow-wrap: anywhere;
}

.cms-cookie-policy__status:empty {
    display: none;
}

.cms-cookie-policy__status {
    background: var(--c-tint, #f6f3ee);
    border-radius: var(--radius, .5rem);
    padding: var(--space-3, .75rem) var(--space-4, 1rem);
}

@media (max-width: 640px) {
    .cms-cookie-policy__table {
        min-width: 0;
    }

    .cms-cookie-policy__table thead {
        clip: rect(0 0 0 0);
        height: 1px;
        overflow: hidden;
        position: absolute;
        width: 1px;
    }

    .cms-cookie-policy__table,
    .cms-cookie-policy__table tbody,
    .cms-cookie-policy__table tr,
    .cms-cookie-policy__table th,
    .cms-cookie-policy__table td {
        display: block;
        width: 100%;
    }

    .cms-cookie-policy__table tr {
        border: 1.5px solid var(--c-line, #e6e0d6);
        border-radius: var(--radius, .5rem);
        margin-bottom: var(--space-3, .75rem);
    }

    .cms-cookie-policy__table tbody tr:nth-child(even) > * {
        background: transparent;
    }

    .cms-cookie-policy__table td::before {
        color: var(--c-muted, #5b5b7a);
        content: attr(data-label);
        display: block;
        font-size: var(--text-xs, .8125rem);
        font-weight: 700;
        text-transform: uppercase;
    }
}

/* One text band holds the whole policy: its headings need their own air, and the
   tables may use the full content width instead of the reading measure. */
.cms-cookie-policy > h2 {
    margin-top: var(--space-7, 3rem);
}

.cms-cookie-policy > h2:first-child {
    margin-top: 0;
}

.cms-block--text.cms-cookie-policy > .cms-cookie-policy__category {
    max-width: 64rem;
}

.cms-cookie-policy__table th[scope="row"] code {
    white-space: nowrap;
}

.cms-cookie-policy__generated h2 {
    margin-top: var(--space-7, 3rem);
}

.cms-cookie-policy__generated > h3:first-child {
    margin-top: 0;
}
