/**
 * Legal & trust pages (privacy, terms, cookies, dpa, acceptable-use, security)
 * + the /legal/ hub. Loaded only when one of those page templates is active
 * (see functions.php). All CSS variables here are inherited from style.css.
 */

/* ──────────────────────────────────────────────
   Local design tokens not in the global stylesheet
   ────────────────────────────────────────────── */

:root {
    --fontMono: ui-monospace, SFMono-Regular, "Cascadia Mono", Menlo, Consolas, monospace;
}

/* ──────────────────────────────────────────────
   Page shell helpers
   These are intentionally generic but only reach the DOM on legal pages
   because info.css is conditionally enqueued.
   ────────────────────────────────────────────── */

.legalContainer {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--clrMuted);
    margin: 0 0 14px;
}

.eyebrow::before {
    content: "";
    width: 24px;
    height: 1px;
    background: var(--clrInk40);
    flex: none;
}

.lede {
    font-size: clamp(1.05rem, 1.5vw, 1.25rem);
    color: var(--clrInk70);
    line-height: 1.6;
    max-width: 60ch;
}

.pageHead {
    padding: 1rem 0 2rem;
}

.pageHead h1 {
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.05;
    margin: 0 0 18px;
    color: var(--clrInk);
}

.pageHead h1 mark {
    background: linear-gradient(180deg, transparent 60%, var(--clrAccentSoft) 60%);
    color: inherit;
    padding: 0 4px;
}

/* ──────────────────────────────────────────────
   Crumbs (matches blog/glossary visual language)
   ────────────────────────────────────────────── */

.crumbs {
    padding: 2rem 0 1rem;
    font-size: 13px;
    color: var(--clrMuted);
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.crumbs a { color: var(--clrInk70); text-decoration: none; }
.crumbs a:hover { color: var(--clrInk); text-decoration: underline; text-underline-offset: 3px; }
.crumbs .sep { color: var(--clrInk40); }
.crumbs .here { color: var(--clrInk); font-weight: 600; }

/* ──────────────────────────────────────────────
   Doc hero (per-document banner)
   ────────────────────────────────────────────── */

.docHero {
    padding: 1rem 0 2.5rem;
    max-width: 880px;
}

.docHero .eyebrow {
    margin-bottom: 22px;
    color: var(--clrPrimary);
}

.docHero .eyebrow::before { background: var(--clrPrimary); }

.docHero h1 {
    font-size: clamp(2.6rem, 6vw, 5rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 0.98;
    margin: 0 0 22px;
    max-width: 18ch;
}

.docHero .deck {
    font-size: clamp(1.1rem, 1.7vw, 1.35rem);
    color: var(--clrInk70);
    max-width: 60ch;
    line-height: 1.55;
    margin: 0 0 28px;
}

/* Doc-meta strip: version, dates, changelog link */
.docMeta {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    align-items: stretch;
    background: var(--clrSurface);
    border: 1px solid var(--clrBorder);
    border-radius: var(--radiusMd);
    box-shadow: var(--shadowCard);
    padding: 4px;
    margin-top: 8px;
    max-width: max-content;
    font-variant-numeric: tabular-nums;
}

.docMeta .item { display: flex; flex-direction: column; gap: 3px; padding: 10px 18px; }
.docMeta .item + .item { border-left: 1px solid var(--clrBorder); }
.docMeta .l { font-size: 10.5px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--clrMuted); }
.docMeta .v { font-size: 13.5px; font-weight: 600; color: var(--clrInk); }
.docMeta .v.link { color: var(--clrPrimary); text-decoration: none; }
.docMeta .v.link:hover { text-decoration: underline; text-underline-offset: 3px; }
.docMeta .v .pulseDot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #16A34A; margin-right: 6px; vertical-align: 1px; }

@media (max-width: 640px) {
    .docMeta { flex-direction: column; }
    .docMeta .item + .item { border-left: 0; border-top: 1px solid var(--clrBorder); }
}

/* ──────────────────────────────────────────────
   Two-column body: TOC + prose
   ────────────────────────────────────────────── */

.docBody {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 4rem;
    padding: 1rem 0 4rem;
    align-items: start;
}

@media (max-width: 960px) {
    .docBody { grid-template-columns: 1fr; gap: 1.5rem; }
    .tocCol { position: static !important; }
    .tocCol .tocInner { max-height: none; overflow: visible; }
}

/* TOC sidebar */
.tocCol { position: sticky; top: 6rem; }
.tocCol h4 {
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--clrMuted);
    font-weight: 600;
    margin: 0 0 14px;
    padding-left: 14px;
}

.toc {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
    border-left: 1px solid var(--clrBorder);
}

.toc li a {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 8px 14px;
    font-size: 13.5px;
    color: var(--clrInk70);
    text-decoration: none;
    line-height: 1.4;
    border-left: 2px solid transparent;
    margin-left: -1px;
    transition: all 160ms var(--ease);
}

.toc li a .num {
    font-size: 11px;
    font-weight: 600;
    color: var(--clrInk40);
    font-variant-numeric: tabular-nums;
    min-width: 18px;
}

.toc li a:hover { color: var(--clrInk); }
.toc li a.active {
    color: var(--clrPrimary);
    border-left-color: var(--clrPrimary);
    font-weight: 600;
    background: rgba(79, 70, 229, 0.04);
}
.toc li a.active .num { color: var(--clrPrimary); }

/* TOC footer (jump to other docs) */
.tocFoot {
    margin-top: 24px;
    padding: 16px 14px 14px;
    border-top: 1px solid var(--clrBorder);
}

.tocFoot h5 {
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--clrMuted);
    font-weight: 600;
    margin: 0 0 10px;
}

.tocFoot ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 2px; }
.tocFoot a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 6px 0;
    font-size: 13px;
    font-weight: 500;
    color: var(--clrInk70);
    text-decoration: none;
    transition: color 160ms var(--ease);
}
.tocFoot a:hover { color: var(--clrInk); }
.tocFoot a .arrow { color: var(--clrInk40); transition: all 200ms var(--ease); font-size: 13px; }
.tocFoot a:hover .arrow { color: var(--clrPrimary); transform: translateX(3px); }

/* ──────────────────────────────────────────────
   Prose
   ────────────────────────────────────────────── */

.prose { max-width: 64ch; counter-reset: cwSection; }
.prose section.sec { padding-top: 2.5rem; scroll-margin-top: 7rem; counter-increment: cwSection; }
.prose section.sec:first-of-type { padding-top: 0; }
.prose section.sec + section.sec { border-top: 1px solid var(--clrBorder); }

/* H2 inside a counted section gets the auto-numbered prefix via ::before.
   The auto-TOC walker (cw_legal_doc_build_sections) wraps each H2 + its
   trailing siblings in section.sec, so the counter advances exactly once
   per visible section heading. */
.prose section.sec h2 {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.024em;
    line-height: 1.15;
    margin: 0 0 1rem;
    color: var(--clrInk);
    display: flex;
    align-items: baseline;
    gap: 14px;
}

.prose section.sec h2::before {
    content: counter(cwSection);
    font-size: 0.7em;
    font-weight: 600;
    color: var(--clrPrimary);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0;
    min-width: 1.5em;
    display: inline-block;
}

.prose h2 .anchor {
    opacity: 0;
    margin-left: 6px;
    color: var(--clrInk40);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 180ms var(--ease);
}
.prose h2:hover .anchor { opacity: 1; }
.prose h2 .anchor:hover { color: var(--clrPrimary); }

.prose h3 {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.012em;
    margin: 1.8rem 0 0.5rem;
    color: var(--clrInk);
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.prose h3 .num {
    font-size: 0.85em;
    font-weight: 600;
    color: var(--clrInk40);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0;
    min-width: 2.4em;
}

.prose p { font-size: 16px; line-height: 1.7; color: var(--clrInk); margin: 0 0 1rem; }
.prose p.lede { font-size: 1.05rem; line-height: 1.6; color: var(--clrInk70); margin-bottom: 1.5rem; max-width: none; }
.prose ul, .prose ol { margin: 0 0 1.1rem; padding-left: 1.4rem; }
.prose li { font-size: 16px; line-height: 1.65; margin: 0 0 0.5rem; }
.prose li::marker { color: var(--clrInk40); }
.prose strong { font-weight: 700; color: var(--clrInk); }
.prose a:not(.primaryButton):not(.ghostButton) {
    color: var(--clrPrimary);
    text-decoration: underline;
    text-decoration-color: rgba(79, 70, 229, 0.3);
    text-underline-offset: 3px;
}
.prose a:not(.primaryButton):not(.ghostButton):hover { text-decoration-color: var(--clrPrimary); }
.prose code {
    font-family: var(--fontMono);
    font-size: 0.86em;
    background: var(--clrPaperDeep);
    padding: 2px 6px;
    border-radius: 5px;
}

/* Definition lists for "data we collect" / "term: meaning" pairs */
.prose dl {
    margin: 0 0 1.2rem;
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 14px 28px;
    padding: 18px 22px;
    background: var(--clrSurface);
    border: 1px solid var(--clrBorder);
    border-radius: var(--radiusMd);
}
.prose dt { font-size: 13.5px; font-weight: 700; color: var(--clrInk); letter-spacing: -0.005em; padding-top: 1px; }
.prose dd { font-size: 14.5px; color: var(--clrInk70); line-height: 1.55; margin: 0; }

@media (max-width: 600px) {
    .prose dl { grid-template-columns: 1fr; gap: 6px 0; }
    .prose dd { padding: 0 0 8px; border-bottom: 1px solid var(--clrBorder); }
    .prose dl > *:nth-last-child(-n+2) { padding-bottom: 0; border: 0; }
}

/* ──────────────────────────────────────────────
   The signature "Plain-English summary" card
   ────────────────────────────────────────────── */

.tldr {
    background: var(--clrSurface);
    border: 1px solid var(--clrBorder);
    border-radius: var(--radiusLg);
    padding: 30px 32px 28px;
    margin-bottom: 2.5rem;
    box-shadow: var(--shadowCard);
    position: relative;
    overflow: hidden;
}

.tldr::before {
    content: "";
    position: absolute;
    left: 0;
    top: 24px;
    bottom: 24px;
    width: 4px;
    background: var(--clrPrimary);
    border-radius: 0 4px 4px 0;
}

.tldr .lbl {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--clrPrimary);
    margin: 0 0 18px;
}
.tldr .lbl::after { content: ""; width: 28px; height: 1px; background: currentColor; }

.tldr h2,
.tldr .tldrTitle { font-size: 1.35rem; margin: 0 0 14px; letter-spacing: -0.02em; line-height: 1.25; font-weight: 800; color: var(--clrInk); }
.tldr .tldrOutro { font-size: 14px; color: var(--clrInk70); margin-top: 18px; }
.tldr p { font-size: 15.5px; line-height: 1.6; color: var(--clrInk); margin: 0 0 0.9rem; }
.tldr p:last-child { margin-bottom: 0; }

.tldr ul { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-direction: column; gap: 14px; }
/* The li is positioned (not flex) so the bullet sits in absolute space
   and the bold lead phrase + trailing description text flow naturally
   inside one column. A flex li would split the <strong> and the text
   that follows into separate flex items - the cramped two-column look
   that motivated this rewrite. */
.tldr ul li {
    position: relative;
    padding-left: 32px;
    font-size: 15.5px;
    line-height: 1.55;
    color: var(--clrInk);
}
.tldr ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 5px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: radial-gradient(circle at center, var(--clrPrimary) 0 4px, transparent 4px), rgba(79, 70, 229, 0.10);
}
.tldr ul li strong {
    display: block;
    margin-bottom: 3px;
    font-weight: 700;
    letter-spacing: -0.005em;
    color: var(--clrInk);
}
.tldr ul li .row { display: block; }

/* ──────────────────────────────────────────────
   Inline "what this means in practice" callout
   ────────────────────────────────────────────── */

.practice {
    border-left: 3px solid var(--clrPrimary);
    background: rgba(79, 70, 229, 0.045);
    padding: 14px 18px;
    border-radius: 0 8px 8px 0;
    margin: 1.4rem 0 1.6rem;
}
.practice .pl {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--clrPrimary);
    margin: 0 0 6px;
}
.practice p { font-size: 14.5px; line-height: 1.55; margin: 0 0 0.5rem; color: var(--clrInk); }
.practice p:last-child { margin-bottom: 0; }
.practice .arrow { color: var(--clrPrimary); }

/* ──────────────────────────────────────────────
   Sub-processor / data table
   ────────────────────────────────────────────── */

.dataTable {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0 1.6rem;
    background: var(--clrSurface);
    border: 1px solid var(--clrBorder);
    border-radius: var(--radiusMd);
    overflow: hidden;
    font-size: 14px;
}
.dataTable thead { background: var(--clrPaperDeep); }
.dataTable th {
    text-align: left;
    padding: 12px 16px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--clrMuted);
}
.dataTable td {
    padding: 14px 16px;
    border-top: 1px solid var(--clrBorder);
    vertical-align: top;
    line-height: 1.5;
    color: var(--clrInk);
}
.dataTable td.muted { color: var(--clrInk70); font-size: 13.5px; }
.dataTable td strong { font-weight: 700; }
.dataTable td .geo {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--clrPrimarySoft);
    color: var(--clrPrimary);
    margin-right: 4px;
    letter-spacing: 0.04em;
}
.dataTable td .geo.eu { background: var(--clrAccentSoft); color: #C2410C; }

/* Section "badge" pill on long pages */
.prose section.sec h2 .badge {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 999px;
    background: var(--clrAccentSoft);
    color: #C2410C;
}

/* ──────────────────────────────────────────────
   Bottom contact card
   ────────────────────────────────────────────── */

.contactCard {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
    align-items: center;
    background: var(--clrSurface);
    border: 1px solid var(--clrBorder);
    border-radius: var(--radiusLg);
    padding: 28px 32px;
    margin: 2.5rem 0 0;
    box-shadow: var(--shadowCard);
}
.contactCard h3 { font-size: 1.2rem; margin: 0 0 8px; letter-spacing: -0.018em; }
.contactCard p { font-size: 14.5px; color: var(--clrInk70); margin: 0; line-height: 1.55; }
.contactCard p a { color: var(--clrInk); font-weight: 600; }
.contactCard .who { display: flex; gap: 12px; align-items: center; }
.contactCard .av {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #C7CDFF 0%, #FED7AA 100%);
    border: 2px solid #fff;
    display: grid;
    place-items: center;
    font-size: 14px;
    font-weight: 800;
    color: var(--clrInk);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.1);
    flex: none;
}
@media (max-width: 640px) { .contactCard { grid-template-columns: 1fr; } }

/* ──────────────────────────────────────────────
   Bottom doc-cluster strip (related docs)
   ────────────────────────────────────────────── */

.docCluster { padding: 0 0 5rem; }
.docCluster-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--clrBorder);
}
.docCluster-head h2 { font-size: 1.4rem; margin: 0; letter-spacing: -0.022em; font-weight: 800; }
.docCluster-head a { font-size: 13px; font-weight: 600; color: var(--clrPrimary); text-decoration: none; }
.docCluster-head a:hover { text-decoration: underline; text-underline-offset: 3px; }

.clusterGrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
@media (max-width: 800px) { .clusterGrid { grid-template-columns: 1fr; } }

.clusterCard {
    background: var(--clrSurface);
    border: 1px solid var(--clrBorder);
    border-radius: var(--radiusMd);
    padding: 22px 24px;
    text-decoration: none;
    color: var(--clrInk);
    transition: all 220ms var(--ease);
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.clusterCard:hover { transform: translateY(-3px); border-color: var(--clrBorderStrong); box-shadow: var(--shadowCard); }
.clusterCard .cl { font-size: 10.5px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--clrPrimary); }
.clusterCard h3 { font-size: 1.05rem; margin: 0; letter-spacing: -0.015em; line-height: 1.3; font-weight: 700; }
.clusterCard p { font-size: 13.5px; color: var(--clrInk70); line-height: 1.55; margin: 0; flex: 1; }
.clusterCard .upd { font-size: 11.5px; color: var(--clrMuted); margin-top: 6px; font-variant-numeric: tabular-nums; }

/* ──────────────────────────────────────────────
   Reading-progress bar
   ────────────────────────────────────────────── */

.progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 100;
    background: transparent;
}
.progress-bar {
    height: 100%;
    background: var(--clrPrimary);
    width: 0;
    transition: width 80ms linear;
    box-shadow: 0 0 12px rgba(79, 70, 229, 0.55);
}

/* ──────────────────────────────────────────────
   Hub page (legal index)
   ────────────────────────────────────────────── */

.hubGrid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    padding: 1rem 0 3rem;
}
@media (max-width: 760px) { .hubGrid { grid-template-columns: 1fr; } }

.hubCard {
    background: var(--clrSurface);
    border: 1px solid var(--clrBorder);
    border-radius: var(--radiusLg);
    padding: 28px 30px;
    text-decoration: none;
    color: var(--clrInk);
    transition: all 220ms var(--ease);
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 220px;
    position: relative;
}
.hubCard:hover { transform: translateY(-3px); border-color: var(--clrBorderStrong); box-shadow: var(--shadowCard); }
.hubCard .head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.hubCard .cat { font-size: 10.5px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--clrPrimary); }
.hubCard h3 { font-size: 1.4rem; margin: 0; letter-spacing: -0.022em; line-height: 1.18; font-weight: 800; }
.hubCard p { font-size: 14.5px; color: var(--clrInk70); line-height: 1.55; margin: 0; flex: 1; }
.hubCard .foot {
    display: flex;
    gap: 14px;
    align-items: center;
    font-size: 12px;
    color: var(--clrMuted);
    padding-top: 12px;
    border-top: 1px solid var(--clrBorder);
    font-variant-numeric: tabular-nums;
}
.hubCard .foot strong { color: var(--clrInk); font-weight: 600; }
.hubCard .v {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 999px;
    background: var(--clrPaperDeep);
    color: var(--clrInk70);
    letter-spacing: 0.04em;
}

.hubCard.featured {
    background: var(--clrInk);
    color: #fff;
    border-color: transparent;
    isolation: isolate;
    overflow: hidden;
}
.hubCard.featured::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(ellipse 50% 70% at 100% 0%, rgba(249, 115, 22, 0.28), transparent 55%),
        radial-gradient(ellipse 60% 80% at 0% 100%, rgba(79, 70, 229, 0.40), transparent 55%);
}
.hubCard.featured h3 { color: #fff; }
.hubCard.featured p { color: rgba(255, 255, 255, 0.78); }
.hubCard.featured .cat { color: var(--clrAccent); }
.hubCard.featured .foot { color: rgba(255, 255, 255, 0.55); border-top-color: rgba(255, 255, 255, 0.15); }
.hubCard.featured .foot strong { color: #fff; }
.hubCard.featured .v { background: rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.85); }

.quickLinks {
    padding: 1rem 0 5rem;
    border-top: 1px solid var(--clrBorder);
    margin-top: 2rem;
}
.quickLinks h2 { font-size: 1.4rem; margin: 0 0 1.25rem; letter-spacing: -0.022em; font-weight: 800; }

.qlGrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 760px) { .qlGrid { grid-template-columns: 1fr; } }

.qlCard {
    background: var(--clrSurface);
    border: 1px solid var(--clrBorder);
    border-radius: var(--radiusMd);
    padding: 18px 20px;
    text-decoration: none;
    color: var(--clrInk);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 200ms var(--ease);
}
.qlCard:hover { border-color: var(--clrBorderStrong); transform: translateY(-2px); box-shadow: var(--shadowCard); }
.qlCard .lbl { font-size: 10.5px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--clrMuted); margin: 0 0 4px; }
.qlCard .ttl { font-size: 14.5px; font-weight: 700; }
.qlCard .arr { color: var(--clrInk40); transition: all 200ms var(--ease); }
.qlCard:hover .arr { color: var(--clrPrimary); transform: translateX(3px); }

/* ──────────────────────────────────────────────
   Dark CTA section reused from marketing
   ────────────────────────────────────────────── */

.ctaSec {
    padding: 4rem 0 5rem;
}

.ctaBox {
    background: var(--clrInk);
    color: #fff;
    border-radius: var(--radiusLg);
    padding: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 5vw, 3.5rem);
    text-align: center;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}
.ctaBox::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(ellipse 60% 80% at 100% 0%, rgba(249, 115, 22, 0.22), transparent 55%),
        radial-gradient(ellipse 70% 100% at 0% 100%, rgba(79, 70, 229, 0.40), transparent 55%);
}
.ctaBox .eyebrow { color: var(--clrAccent); margin-bottom: 18px; }
.ctaBox .eyebrow::before { background: var(--clrAccent); }
.ctaBox h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.1;
    margin: 0 0 14px;
    color: #fff;
}
.ctaBox h2 mark {
    background: linear-gradient(180deg, transparent 60%, rgba(249, 115, 22, 0.55) 60%);
    color: inherit;
    padding: 0 4px;
}
.ctaBox p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.78);
    max-width: 56ch;
    margin: 0 auto 22px;
    line-height: 1.6;
}
.ctaBox .ctaActions {
    display: inline-flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

/* On dark background, the theme's primaryButton already has good contrast.
   Add an outline variant for the secondary action. */
.ctaBox .ghostOnDark {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 22px;
    border-radius: var(--radiusPill);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background 200ms var(--ease), border-color 200ms var(--ease);
}
.ctaBox .ghostOnDark:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.5);
}

/* ──────────────────────────────────────────────
   Print styles: Save-as-PDF should look respectable
   ────────────────────────────────────────────── */

@media print {
    .siteHeader, .siteFooter, .ctaSec, .docCluster, .progress, .tocCol, .contactCard .primaryButton { display: none !important; }
    .docBody { grid-template-columns: 1fr; gap: 0; padding: 0; }
    .prose { max-width: none; }
    .prose section.sec { page-break-inside: avoid; }
}
