/* ==========================================================================
   Cookie Policy (cookie-policy.php)
   Dark header band with a jump index, then four "chapters": large outlined
   number + heading on the left (sticky), text on the right.
   ========================================================================== */

/* Header band -------------------------------------------------------------- */

.cookie-hero {
    padding: 3rem 0 4rem;
    background:
        radial-gradient(50% 80% at 100% 0%, rgba(236, 31, 39, .22) 0%, rgba(236, 31, 39, 0) 70%),
        #12151d;
    color: #c7ccd6;
}

.cookie-hero__crumbs { color: rgba(255, 255, 255, .6); }
.cookie-hero__crumbs a { color: rgba(255, 255, 255, .85); }
.cookie-hero__crumbs a:hover { color: var(--ph-white); }
.cookie-hero__crumbs li + li::before { color: rgba(255, 255, 255, .4); }
.cookie-hero__crumbs [aria-current] { color: #ff8a8e; }

.cookie-hero__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    align-items: end;
    gap: 2rem 4rem;
}

.cookie-hero__title {
    margin: 0;
    color: var(--ph-white);
    font-size: clamp(2.6rem, 1.6rem + 4.6vw, 5.25rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0;
}

.cookie-hero__title .text-brand { color: #ff5c61 !important; }

.cookie-hero__index {
    display: grid;
    gap: .5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.cookie-hero__index a {
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: .75rem 1rem;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 6px;
    background: rgba(255, 255, 255, .03);
    color: #e5e7eb;
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-decoration: none;
    transition: border-color .2s ease, background-color .2s ease;
}

.cookie-hero__index a span {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--ph-red-strong);
    color: var(--ph-white);
    font-size: .75rem;
}

.cookie-hero__index a:hover,
.cookie-hero__index a:focus-visible {
    border-color: rgba(255, 92, 97, .6);
    background: rgba(255, 255, 255, .07);
}

/* Chapters ------------------------------------------------------------------ */

.cookie-doc {
    padding: 2rem 0 6rem;
    background: #fafafa;
}

.cookie-block {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr);
    gap: 1.5rem 4rem;
    padding: 4rem 0;
    scroll-margin-top: var(--ph-header-h);
}

.cookie-block + .cookie-block { border-top: 1px solid var(--ph-border); }

.cookie-block__head {
    position: sticky;
    top: calc(var(--ph-header-h) + 28px);
    align-self: start;
}

.cookie-block__num {
    display: block;
    margin-bottom: .5rem;
    font-family: var(--ph-font-heading);
    font-size: clamp(3.5rem, 2.5rem + 3vw, 5.5rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0;
    color: transparent;
    -webkit-text-stroke: 1.5px var(--ph-red);
}

.cookie-block__title {
    margin: 0;
    font-size: clamp(1.1rem, 1rem + .5vw, 1.4rem);
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: .02em;
}

.cookie-block__body p {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--ph-body);
}

.cookie-block__body a { color: var(--ph-red-strong); font-weight: 600; }

/* Cookie type card (section 3) */
.cookie-type {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1.25rem;
    padding: 1.75rem;
    background: var(--ph-white);
    border: 1px solid var(--ph-border);
    border-top: 3px solid var(--ph-red);
    border-radius: 6px;
    box-shadow: var(--ph-shadow-sm);
}

.cookie-type__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: var(--ph-red-soft);
    color: var(--ph-red-strong);
    font-size: 1.4rem;
}

.cookie-type__title {
    margin: .25rem 0 .6rem;
    font-size: 1.2rem;
    font-weight: 700;
}

.cookie-type + .cookie-type { margin-top: 1rem; }
.cookie-block__settings { margin-top: 1.25rem; }

/* Two duration notes (section 4) on a short timeline */
.cookie-life {
    position: relative;
    display: grid;
    gap: 1.25rem;
    margin: 0;
    padding-block: 0 0; padding-inline: 3.25rem 0;
    list-style: none;
}

.cookie-life::before {
    content: "";
    position: absolute;
    top: 1.2rem;
    bottom: 1.2rem;
    inset-inline-start: 19px;
    width: 2px;
    background: linear-gradient(180deg, var(--ph-red) 0%, rgba(236, 31, 39, .2) 100%);
}

.cookie-life li { position: relative; }

.cookie-life li > i {
    position: absolute;
    inset-inline-start: -3.25rem;
    top: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 2px solid var(--ph-red);
    border-radius: 50%;
    background: #fafafa;
    color: var(--ph-red-strong);
}

.cookie-life li p {
    padding: 1.1rem 1.25rem;
    background: var(--ph-white);
    border: 1px solid var(--ph-border);
    border-radius: 6px;
}

/* Responsive -------------------------------------------------------------- */

@media (max-width: 991.98px) {
    .cookie-hero__row,
    .cookie-block { grid-template-columns: 1fr; }
    .cookie-block__head { position: static; }
    .cookie-block { padding: 3rem 0; }
}

@media (max-width: 575.98px) {
    .cookie-hero { padding: 2rem 0 2.75rem; }
    .cookie-block { padding: 2.25rem 0; gap: 1rem; }
    .cookie-type { grid-template-columns: 1fr; padding: 1.25rem; }
    .cookie-life { padding-inline-start: 2.75rem; }
    .cookie-life li > i { inset-inline-start: -2.75rem; width: 34px; height: 34px; }
    .cookie-life::before { inset-inline-start: 16px; }
}
