/* ================================================================
   Data processing policy blocks (Blocks\\Policy*)
   hero / key topics / document with contents / contact band
   ================================================================ */

:root {
    --dp-bordo: #6b0c26;
    --dp-red: #8d0b2c;
    --dp-bordo-soft: #9b4a61;
    --dp-ink: #33282b;
    --dp-muted: #7d6a70;
    --dp-line: #e7dcdf;
    --dp-line-soft: #f0e6e9;
    --dp-card: #faf2f3;
    --dp-rose: #faf6f7;
    --dp-shadow-s: 0 6px 18px rgba(88, 20, 40, .06);
    --dp-shadow-m: 0 14px 34px rgba(88, 20, 40, .11);
    --dp-sticky-top: 24px;
}

.dp-icon {
    display: block;
    width: 100%;
    height: 100%;
}

/* ================= shared section head ================= */

.dp-section {
    position: relative;
    padding: 72px 0;
}

.dp-section--alt {
    background-color: var(--dp-rose);
}

/* anchor jumps (hero button) stop below the site's sticky header */
.dp-section[id] {
    scroll-margin-top: var(--dp-offset, 0px);
}

.dp-section__head {
    max-width: 780px;
    margin: 0 0 40px;
}

.dp-section__eyebrow {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0 0 14px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--dp-bordo-soft);
}

.dp-section__eyebrow::after {
    content: '';
    flex: 1;
    max-width: 64px;
    height: 1px;
    background-color: #d8c3c9;
}

.dp-section__title {
    margin: 0;
    font-size: 34px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--dp-bordo);
}

.dp-section__desc {
    margin: 14px 0 0;
    font-size: 16px;
    line-height: 1.7;
    color: var(--dp-muted);
}

/* ================= buttons ================= */

.dp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    padding: 0 26px;
    border: 1px solid var(--dp-bordo);
    border-radius: 100px;
    background-color: var(--dp-bordo);
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .25s ease, border-color .25s ease, color .25s ease, box-shadow .25s ease, transform .25s ease;
}

.dp-btn:hover {
    background-color: var(--dp-red);
    border-color: var(--dp-red);
    box-shadow: var(--dp-shadow-m);
    transform: translateY(-2px);
}

.dp-btn--ghost {
    background-color: #fff;
    border-color: #e2d2d7;
    color: var(--dp-bordo);
}

.dp-btn--ghost:hover {
    background-color: #fff;
    border-color: var(--dp-bordo);
    color: var(--dp-bordo);
}

.dp-btn__icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

/* ================= hero ================= */

.dp-hero {
    position: relative;
    overflow: hidden;
    padding: 56px 0 64px;
    background-image:
        radial-gradient(1100px 520px at 82% -10%, #f7eef0 0%, rgba(247, 238, 240, 0) 70%),
        linear-gradient(180deg, #fdf9f8 0%, #fdfbf9 62%);
}

.dp-hero__decor {
    position: absolute;
    top: -70px;
    right: -110px;
    width: min(52%, 720px);
    opacity: .32;
    mask-image: linear-gradient(250deg, #000 30%, rgba(0, 0, 0, 0) 86%);
    -webkit-mask-image: linear-gradient(250deg, #000 30%, rgba(0, 0, 0, 0) 86%);
    pointer-events: none;
    user-select: none;
}

.dp-hero__decor img {
    display: block;
    width: 100%;
    height: auto;
}

.dp-hero__inner {
    position: relative;
    z-index: 1;
}

.dp-hero__crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 0 0 26px;
    padding: 0;
    list-style: none;
    font-size: 14px;
    color: var(--dp-muted);
}

.dp-hero__crumbs li:not(:last-child)::after {
    content: '/';
    margin-left: 10px;
    color: #cbb6bd;
}

.dp-hero__crumbs a {
    color: var(--dp-muted);
    text-decoration: none;
    transition: color .25s ease;
}

.dp-hero__crumbs a:hover {
    color: var(--dp-red);
}

.dp-hero__crumbs li:last-child {
    color: var(--dp-bordo);
}

.dp-hero__top {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    align-items: end;
    gap: 48px;
}

.dp-hero__eyebrow {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0 0 16px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--dp-bordo-soft);
}

.dp-hero__eyebrow::after {
    content: '';
    width: 64px;
    height: 1px;
    background-color: #d8c3c9;
}

.dp-hero__title {
    margin: 0 0 20px;
    font-size: clamp(34px, 4.4vw, 54px);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -.01em;
    color: var(--dp-bordo);
}

.dp-hero__lead {
    margin: 0;
    max-width: 640px;
    font-size: 17px;
    line-height: 1.75;
    color: var(--dp-muted);
}

.dp-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 34px 0 0;
}

/* ---------- hero card ---------- */

.dp-hero__card {
    position: relative;
    overflow: hidden;
    padding: 30px 32px;
    border-radius: 12px;
    background-image: linear-gradient(135deg, #7a1030 0%, #5a0a20 100%);
    color: #fff;
    box-shadow: 0 20px 44px rgba(90, 10, 32, .22);
}

.dp-hero__card::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 220px;
    height: 220px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 50%;
    box-shadow: 0 0 0 26px rgba(255, 255, 255, .04), 0 0 0 52px rgba(255, 255, 255, .03);
}

.dp-hero__card-shield {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin: 0 0 20px;
    border-radius: 14px;
    background-color: rgba(255, 255, 255, .1);
    color: #fff;
}

.dp-hero__card-shield svg {
    width: 26px;
    height: 26px;
}

.dp-hero__card-label {
    position: relative;
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .62);
}

.dp-hero__card-name {
    position: relative;
    margin: 0 0 22px;
    font-size: 23px;
    font-weight: 700;
    line-height: 1.3;
}

.dp-hero__card-list {
    position: relative;
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 18px 0 0;
    border-top: 1px solid rgba(255, 255, 255, .16);
    list-style: none;
}

.dp-hero__card-list li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    font-size: 14px;
    color: rgba(255, 255, 255, .7);
}

.dp-hero__card-list b {
    font-weight: 500;
    color: #fff;
    text-align: right;
}

/* ================= key topics ================= */

.dp-topics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.dp-topic {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 26px 24px 24px;
    border: 1px solid var(--dp-line);
    border-radius: 12px;
    background-color: #fff;
    color: inherit;
    text-decoration: none;
    box-shadow: var(--dp-shadow-s);
    transition: border-color .3s ease, box-shadow .3s ease, transform .3s ease;
}

.dp-topic:hover {
    border-color: #dcc6cc;
    box-shadow: var(--dp-shadow-m);
    transform: translateY(-4px);
}

.dp-topic__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin: 0 0 20px;
    border-radius: 12px;
    background-color: var(--dp-card);
    color: var(--dp-bordo);
    transition: background-color .3s ease, color .3s ease;
}

.dp-topic:hover .dp-topic__icon {
    background-color: var(--dp-bordo);
    color: #fff;
}

.dp-topic__icon svg {
    width: 22px;
    height: 22px;
}

.dp-topic__num {
    margin: 0 0 6px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--dp-bordo-soft);
}

.dp-topic__title {
    margin: 0 0 10px;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--dp-bordo);
}

.dp-topic__text {
    flex: 1;
    margin: 0 0 18px;
    font-size: 14px;
    line-height: 1.65;
    color: var(--dp-muted);
}

.dp-topic__more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--dp-bordo);
}

.dp-topic__more svg {
    width: 16px;
    height: 16px;
    transition: transform .25s ease;
}

.dp-topic:hover .dp-topic__more svg {
    transform: translateX(4px);
}

/* ================= policy layout ================= */

.dp-policy {
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr);
    align-items: start;
    gap: 48px;
}

/* ---------- table of contents ---------- */

/* --dp-offset is the height of the site's own sticky header, measured by the script */
.dp-toc {
    position: sticky;
    top: calc(var(--dp-offset, 0px) + var(--dp-sticky-top));
    z-index: 5;
}

.dp-toc__panel {
    border: 1px solid var(--dp-line);
    border-radius: 12px;
    background-color: #fff;
    box-shadow: var(--dp-shadow-s);
}

.dp-toc__toggle {
    display: none;
}

.dp-toc__head {
    padding: 22px 24px 16px;
    border-bottom: 1px solid var(--dp-line-soft);
}

.dp-toc__title {
    margin: 0 0 12px;
    font-size: 19px;
    font-weight: 700;
    color: var(--dp-bordo);
}

.dp-toc__progress {
    height: 4px;
    border-radius: 4px;
    background-color: var(--dp-line-soft);
    overflow: hidden;
}

.dp-toc__progress-bar {
    display: block;
    width: 0;
    height: 100%;
    border-radius: 4px;
    background-color: var(--dp-bordo);
    transition: width .15s linear;
}

.dp-toc__list {
    margin: 0;
    padding: 10px 12px 14px;
    list-style: none;
    max-height: calc(100vh - var(--dp-offset, 0px) - var(--dp-sticky-top) - 140px);
    overflow-y: auto;
}

.dp-toc__link {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 9px 12px;
    border-radius: 8px;
    color: var(--dp-muted);
    font-size: 14px;
    line-height: 1.45;
    text-decoration: none;
    transition: background-color .25s ease, color .25s ease;
}

.dp-toc__link:hover {
    background-color: var(--dp-rose);
    color: var(--dp-ink);
}

.dp-toc__num {
    flex-shrink: 0;
    min-width: 20px;
    font-size: 12px;
    font-weight: 500;
    color: #c2aab1;
    font-variant-numeric: tabular-nums;
    transition: color .25s ease;
}

.dp-toc__link.is-active {
    background-color: var(--dp-card);
    color: var(--dp-bordo);
    font-weight: 500;
}

.dp-toc__link.is-active .dp-toc__num {
    color: var(--dp-bordo);
}

/* ---------- chapters ---------- */

.dp-article {
    display: grid;
    gap: 22px;
    min-width: 0;
}

.dp-chapter {
    scroll-margin-top: calc(var(--dp-offset, 0px) + var(--dp-sticky-top));
    padding: 34px 38px 36px;
    border: 1px solid var(--dp-line);
    border-radius: 12px;
    background-color: #fff;
    box-shadow: var(--dp-shadow-s);
}

.dp-chapter__head {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin: 0 0 22px;
}

.dp-chapter__num {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background-color: var(--dp-card);
    color: var(--dp-bordo);
    font-size: 17px;
    font-weight: 700;
}

.dp-chapter__title {
    margin: 9px 0 0;
    font-size: 23px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--dp-bordo);
}

.dp-chapter__text {
    margin: 0;
    font-size: 16px;
    line-height: 1.8;
    color: var(--dp-ink);
}

/* ---------- numbered clauses ---------- */

.dp-clauses {
    display: grid;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.dp-clause {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--dp-line-soft);
}

.dp-clause:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.dp-clause__num {
    padding-top: 2px;
    font-size: 14px;
    font-weight: 500;
    color: var(--dp-bordo-soft);
    font-variant-numeric: tabular-nums;
}

.dp-clause__text {
    margin: 0;
    font-size: 16px;
    line-height: 1.8;
    color: var(--dp-ink);
}

/* nested sub clauses 3.1.1 etc. */
.dp-sub {
    display: grid;
    gap: 10px;
    margin: 14px 0 4px;
    padding: 0;
    list-style: none;
}

.dp-sub__item {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 10px;
    padding: 14px 18px;
    border-radius: 10px;
    background-color: var(--dp-rose);
}

.dp-sub__num {
    font-size: 13px;
    font-weight: 500;
    color: var(--dp-bordo-soft);
    font-variant-numeric: tabular-nums;
    padding-top: 2px;
}

.dp-sub__text {
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
    color: var(--dp-ink);
}

/* ---------- glossary (chapter 1) ---------- */

.dp-terms {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 0;
}

.dp-term {
    position: relative;
    margin: 0;
    padding: 20px 22px 22px;
    border: 1px solid var(--dp-line-soft);
    border-radius: 10px;
    background-color: var(--dp-rose);
}

.dp-term--wide {
    grid-column: 1 / -1;
}

.dp-term__top {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin: 0 0 8px;
}

.dp-term__num {
    font-size: 12px;
    font-weight: 500;
    color: var(--dp-bordo-soft);
}

.dp-term__name {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--dp-bordo);
}

.dp-term__text {
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
    color: var(--dp-ink);
}

/* ---------- interests grid (chapter 4) ---------- */

.dp-checks {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
}

.dp-check {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 16px 18px;
    border: 1px solid var(--dp-line-soft);
    border-radius: 10px;
    background-color: var(--dp-rose);
}

.dp-check__mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background-color: #fff;
    color: var(--dp-bordo);
    box-shadow: 0 2px 6px rgba(88, 20, 40, .08);
}

.dp-check__mark svg {
    width: 16px;
    height: 16px;
}

.dp-check__num {
    display: block;
    margin: 0 0 3px;
    font-size: 12px;
    font-weight: 500;
    color: var(--dp-bordo-soft);
}

.dp-check__text {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: var(--dp-ink);
}

/* ---------- note plate ---------- */

.dp-note {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin: 18px 0 0;
    padding: 18px 22px;
    border-left: 3px solid var(--dp-bordo);
    border-radius: 0 10px 10px 0;
    background-color: var(--dp-card);
}

.dp-note__icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    margin-top: 2px;
    color: var(--dp-bordo);
}

.dp-note__text {
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
    color: var(--dp-ink);
}

.dp-note__text b {
    margin-right: 6px;
    font-weight: 500;
    color: var(--dp-bordo);
}

/* ---------- legal bases (chapters 5–7) ---------- */

.dp-bases {
    display: grid;
    gap: 14px;
}

/* compact row card: icon + number on the left, text on the right */
.dp-base {
    scroll-margin-top: calc(var(--dp-offset, 0px) + var(--dp-sticky-top));
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    column-gap: 22px;
    padding: 26px 30px;
    border: 1px solid var(--dp-line);
    border-radius: 12px;
    background-color: #fff;
    box-shadow: var(--dp-shadow-s);
}

.dp-base__top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.dp-base__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background-color: var(--dp-card);
    color: var(--dp-bordo);
}

.dp-base__icon svg {
    width: 22px;
    height: 22px;
}

.dp-base__num {
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
    color: #ead9de;
}

.dp-base__title {
    margin: 0 0 12px;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--dp-bordo);
}

.dp-base__text {
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
    color: var(--dp-ink);
}

/* ---------- rights (chapter 9) ---------- */

.dp-chapter--accent {
    border-color: transparent;
    background-image: linear-gradient(135deg, #7a1030 0%, #5a0a20 100%);
    color: #fff;
    box-shadow: 0 20px 44px rgba(90, 10, 32, .2);
}

.dp-chapter--accent .dp-chapter__num {
    background-color: rgba(255, 255, 255, .12);
    color: #fff;
}

.dp-chapter--accent .dp-chapter__title {
    color: #fff;
}

.dp-rights {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 22px;
    padding: 0;
    list-style: none;
}

.dp-right {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 10px;
    background-color: rgba(255, 255, 255, .06);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}

.dp-right svg {
    width: 22px;
    height: 22px;
    color: rgba(255, 255, 255, .75);
}

.dp-chapter--accent .dp-clause {
    border-bottom-color: rgba(255, 255, 255, .14);
}

.dp-chapter--accent .dp-clause__num {
    color: rgba(255, 255, 255, .6);
}

.dp-chapter--accent .dp-clause__text {
    color: rgba(255, 255, 255, .9);
}

html:has(.dp-policy) {
    scroll-behavior: smooth;
}

.dp-hero__top--single {
    grid-template-columns: minmax(0, 1fr);
}

.dp-chapter__text + .dp-clauses,
.dp-chapter__text + .dp-terms {
    margin-top: 14px;
}

.dp-base__text + .dp-base__text {
    margin-top: 8px;
}

/* two light sections in a row should not double the gap */
.dp-section:not(.dp-section--alt) + .dp-section--band {
    padding-top: 0;
}

/* ================= contact band ================= */

.dp-band {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 40px 48px;
    border-radius: 14px;
    background-image: linear-gradient(120deg, #6b0c26 0%, #8d0b2c 100%);
    color: #fff;
}

.dp-band::after {
    content: '';
    position: absolute;
    right: -60px;
    bottom: -120px;
    width: 300px;
    height: 300px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 50%;
    box-shadow: 0 0 0 30px rgba(255, 255, 255, .03);
    pointer-events: none;
}

.dp-band__content {
    position: relative;
    z-index: 1;
    max-width: 560px;
}

.dp-band__title {
    margin: 0 0 10px;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.25;
}

.dp-band__text {
    margin: 0;
    font-size: 16px;
    line-height: 1.7;
    color: rgba(255, 255, 255, .78);
}

.dp-band__actions {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.dp-band .dp-btn {
    background-color: #fff;
    border-color: #fff;
    color: var(--dp-bordo);
}

.dp-band .dp-btn:hover {
    background-color: #fff;
    box-shadow: 0 14px 30px rgba(0, 0, 0, .18);
}

.dp-band .dp-btn--ghost {
    background-color: transparent;
    border-color: rgba(255, 255, 255, .45);
    color: #fff;
}

.dp-band .dp-btn--ghost:hover {
    background-color: rgba(255, 255, 255, .08);
    border-color: #fff;
}

/* ================= back to top ================= */

.dp-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background-color: var(--dp-bordo);
    color: #fff;
    box-shadow: var(--dp-shadow-m);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: opacity .3s ease, transform .3s ease, background-color .25s ease;
}

.dp-top.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: none;
}

.dp-top:hover {
    background-color: var(--dp-red);
}

.dp-top svg {
    width: 20px;
    height: 20px;
}

/* ================= reveal ================= */

.dp-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .7s ease, transform .7s ease;
}

.dp-reveal.is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    html:has(.dp-policy) {
        scroll-behavior: auto;
    }

    .dp-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ================= adaptive ================= */

@media (max-width: 1500px) {
    .dp-hero__title {
        font-size: 48px;
    }

    .dp-section__title {
        font-size: 31px;
    }
}

@media (max-width: 1200px) {
    .dp-hero {
        padding: 48px 0 56px;
    }

    .dp-section {
        padding: 62px 0;
    }

    .dp-hero__top {
        gap: 36px;
    }

    .dp-section__title {
        font-size: 28px;
    }

    .dp-topics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dp-policy {
        grid-template-columns: 250px minmax(0, 1fr);
        gap: 32px;
    }

    .dp-chapter {
        padding: 30px 30px 32px;
    }

    .dp-rights {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dp-band {
        padding: 36px 40px;
    }
}

@media (max-width: 1024px) {
    :root {
        --dp-sticky-top: 12px;
    }

    .dp-hero__top {
        grid-template-columns: minmax(0, 1fr);
    }

    .dp-hero__card {
        max-width: 560px;
    }

    /* table of contents turns into a sticky dropdown bar above the text */
    .dp-policy {
        grid-template-columns: minmax(0, 1fr);
        gap: 22px;
    }

    .dp-toc__toggle {
        display: flex;
        align-items: center;
        gap: 14px;
        width: 100%;
        padding: 14px 18px;
        border: 0;
        background: none;
        color: var(--dp-ink);
        text-align: left;
        cursor: pointer;
    }

    .dp-toc__toggle-label {
        flex-shrink: 0;
        font-size: 12px;
        font-weight: 500;
        letter-spacing: .16em;
        text-transform: uppercase;
        color: var(--dp-bordo-soft);
    }

    .dp-toc__toggle-current {
        flex: 1;
        min-width: 0;
        overflow: hidden;
        font-size: 15px;
        font-weight: 500;
        color: var(--dp-bordo);
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .dp-toc__toggle-icon {
        flex-shrink: 0;
        width: 20px;
        height: 20px;
        color: var(--dp-bordo);
        transition: transform .3s ease;
    }

    .dp-toc.is-open .dp-toc__toggle-icon {
        transform: rotate(180deg);
    }

    .dp-toc__head {
        padding: 0;
        border: 0;
    }

    .dp-toc__title {
        display: none;
    }

    .dp-toc__progress {
        height: 3px;
        border-radius: 0;
    }

    .dp-toc__list {
        display: none;
        max-height: 60vh;
        border-top: 1px solid var(--dp-line-soft);
    }

    .dp-toc.is-open .dp-toc__list {
        display: block;
    }

    .dp-toc__panel {
        overflow: hidden;
        box-shadow: 0 10px 28px rgba(88, 20, 40, .12);
    }

    .dp-chapter,
    .dp-base {
        scroll-margin-top: calc(var(--dp-offset, 0px) + 80px);
    }
}

@media (max-width: 768px) {
    .dp-hero {
        padding: 36px 0 44px;
    }

    .dp-hero__decor {
        top: -40px;
        right: -90px;
        width: 78%;
        opacity: .2;
    }

    .dp-hero__crumbs {
        margin-bottom: 20px;
        font-size: 13px;
    }

    .dp-hero__actions {
        margin-top: 26px;
    }

    .dp-hero__card {
        max-width: none;
        padding: 26px 24px;
    }

    .dp-section {
        padding: 46px 0;
    }

    .dp-section__head {
        margin-bottom: 28px;
    }

    .dp-section__title {
        font-size: 25px;
    }

    .dp-topics {
        gap: 14px;
    }

    .dp-topic {
        padding: 22px 20px;
    }

    .dp-chapter {
        padding: 24px 22px 26px;
    }

    .dp-base {
        padding: 22px;
    }

    .dp-chapter__head {
        gap: 14px;
        margin-bottom: 16px;
    }

    .dp-chapter__num {
        width: 40px;
        height: 40px;
        font-size: 15px;
    }

    .dp-chapter__title {
        margin-top: 6px;
        font-size: 20px;
    }

    .dp-terms,
    .dp-checks {
        grid-template-columns: minmax(0, 1fr);
    }

    .dp-clause {
        grid-template-columns: 44px minmax(0, 1fr);
        gap: 8px;
    }

    .dp-clause__text,
    .dp-chapter__text {
        font-size: 15px;
        line-height: 1.75;
    }

    .dp-band {
        flex-direction: column;
        align-items: flex-start;
        padding: 32px 26px;
    }

    .dp-band__title {
        font-size: 23px;
    }

    .dp-top {
        right: 16px;
        bottom: 16px;
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 576px) {
    .dp-hero__title {
        font-size: 32px;
    }

    .dp-hero__lead {
        font-size: 16px;
    }

    .dp-hero__actions .dp-btn,
    .dp-band__actions,
    .dp-band__actions .dp-btn {
        flex: 1 1 100%;
    }

    .dp-section__title {
        font-size: 23px;
    }

    .dp-topics {
        grid-template-columns: minmax(0, 1fr);
    }

    /* topic cards become compact rows with the icon on the left */
    .dp-topic {
        display: grid;
        grid-template-columns: 44px minmax(0, 1fr);
        column-gap: 16px;
        padding: 18px;
    }

    .dp-topic__icon {
        grid-row: span 3;
        width: 44px;
        height: 44px;
        margin: 0;
    }

    .dp-topic__text {
        margin-bottom: 10px;
    }

    .dp-topic__num,
    .dp-topic__title,
    .dp-topic__text,
    .dp-topic__more {
        grid-column: 2;
    }

    .dp-chapter {
        padding: 22px 16px 24px;
    }

    .dp-chapter__head {
        flex-direction: column;
        gap: 12px;
    }

    .dp-chapter__title {
        margin-top: 0;
        font-size: 19px;
    }

    .dp-clause {
        grid-template-columns: minmax(0, 1fr);
        gap: 2px;
    }

    .dp-sub__item {
        grid-template-columns: minmax(0, 1fr);
        gap: 2px;
        padding: 12px 14px;
    }

    .dp-term {
        padding: 16px 16px 18px;
    }

    .dp-note {
        padding: 16px;
    }

    .dp-base {
        display: block;
        padding: 22px 16px;
    }

    .dp-base__top {
        flex-direction: row;
        justify-content: space-between;
        margin-bottom: 14px;
    }

    .dp-base__num {
        font-size: 26px;
    }

    .dp-rights {
        grid-template-columns: minmax(0, 1fr);
    }

    .dp-right {
        flex-direction: row;
        align-items: center;
    }
}

/* ================= variants ================= */

/* document without the contents column */
.dp-policy--plain {
    grid-template-columns: minmax(0, 1fr);
}

.dp-chapter__num svg {
    width: 22px;
    height: 22px;
}

/* clauses shown directly as check cards */
.dp-checks--cards {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
    margin-top: 20px;
}

.dp-checks--cards .dp-check {
    align-items: center;
    padding: 18px 20px;
}

.dp-checks--cards .dp-check__text {
    font-size: 16px;
    font-weight: 500;
}

/* three topic cards in a row */
.dp-topics--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* cards without a link: no hover lift, text is the main content */
.dp-topic--static:hover {
    border-color: var(--dp-line);
    box-shadow: var(--dp-shadow-s);
    transform: none;
}

.dp-topic--static:hover .dp-topic__icon {
    background-color: var(--dp-card);
    color: var(--dp-bordo);
}

.dp-topic--static .dp-topic__text {
    margin-bottom: 0;
    font-size: 15px;
    color: var(--dp-ink);
}

@media (max-width: 1024px) {
    /* three cards become full width rows with the icon on the left */
    .dp-topics--3 {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }

    .dp-topics--3 .dp-topic {
        display: grid;
        grid-template-columns: 48px minmax(0, 1fr);
        column-gap: 20px;
    }

    .dp-topics--3 .dp-topic__icon {
        grid-row: span 3;
        margin: 0;
    }

    .dp-topics--3 .dp-topic__num,
    .dp-topics--3 .dp-topic__title,
    .dp-topics--3 .dp-topic__text,
    .dp-topics--3 .dp-topic__more {
        grid-column: 2;
    }
}

@media (max-width: 576px) {
    .dp-topics--3 .dp-topic {
        grid-template-columns: 44px minmax(0, 1fr);
        column-gap: 16px;
    }

    .dp-checks--cards {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ================= print ================= */

@media print {
    body {
        background: #fff;
    }

    /* site header, menus, footer and cookie bar only on the policy page */
    body:has(.dp-hero) .page > :not(main),
    body:has(.dp-hero) .cc-window {
        display: none !important;
    }

    body:has(.dp-hero) main {
        background: none !important;
    }

    .dp-hero__decor,
    .dp-hero__actions,
    .dp-hero__crumbs,
    .dp-hero__card,
    .dp-section--topics,
    .dp-toc,
    .dp-band,
    .dp-section--band,
    .dp-top {
        display: none !important;
    }

    .dp-hero,
    .dp-section {
        padding: 12px 0;
        background: none;
    }

    .dp-hero__top,
    .dp-policy {
        display: block;
    }

    .dp-chapter,
    .dp-base {
        margin: 0 0 12px;
        box-shadow: none;
        break-inside: avoid-page;
    }

    .dp-bases {
        display: block;
    }

    .dp-chapter--accent {
        background: #fff;
        color: var(--dp-ink);
        border: 1px solid var(--dp-line);
    }

    .dp-chapter--accent .dp-chapter__title,
    .dp-chapter--accent .dp-clause__text {
        color: var(--dp-ink);
    }

    .dp-rights {
        display: none;
    }

    .dp-reveal {
        opacity: 1;
        transform: none;
    }
}