/* The privacy page (/xx/privacy/), alternative A, approved on 28 October 2026 (review/redesign/pages/).
   A plain reading page after the GOV.UK survey privacy notice (gov.uk/guidance/participation-survey-privacy-notice):
   caption, title, a large summary line, a short contents list, then one heading per part of the notice in a
   two-thirds reading column. The closing band is web/pages/closing.css.
   Header, footer, phone survey bar and reveal safety: web/site.css and web/site.js. Colours only from tokens.css. */

/* Page head: light ground, caption, title, and the plain summary of the survey's use of names */
.pv-head { background: var(--cap-light); padding: var(--cap-space-8) 0 var(--cap-space-7); }
.pv-kicker { display: flex; align-items: center; gap: 12px; font: var(--cap-text-caption); letter-spacing: 0.08em; text-transform: uppercase; color: var(--cap-slate); }
.pv-kicker::before { content: ""; flex: none; width: 10px; height: 10px; background: var(--cap-turquoise); }
.pv-head h1 { font: var(--cap-text-display); color: var(--cap-ink); margin-top: 20px; }
.pv-lede { margin-top: var(--cap-space-5); max-width: 30em; font: var(--cap-text-h3); color: var(--cap-ink); text-wrap: pretty; }

/* Body: the notice in a two-thirds reading column, the contents list in the remaining third */
.pv-body { padding: var(--cap-space-8) 0; }
.pv-grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); grid-template-areas: "text toc"; column-gap: var(--cap-space-8); align-items: start; }

.toc { grid-area: toc; position: sticky; top: var(--cap-space-6); border-top: 3px solid var(--cap-turquoise); padding-top: var(--cap-space-4); }
.toc h2 { font: var(--cap-text-caption); letter-spacing: 0.08em; text-transform: uppercase; color: var(--cap-slate); }
.toc ol { list-style: none; margin: var(--cap-space-3) 0 0; padding: 0; }
.toc a { display: flex; align-items: center; gap: var(--cap-space-3); min-height: 44px; padding: 6px 0; font: var(--cap-text-small); font-weight: 600; }
.toc a { text-decoration: none; }
/* The underline sits on the label only, so the number square stays clean */
.toc a .t { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
.toc a:hover .t, .toc a:focus-visible .t { text-decoration-thickness: 2px; }
.toc a:hover .n, .toc a:focus-visible .n { border-color: var(--cap-turquoise-deep); }

/* The number square, as on the home page's survey path */
.n { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border: 1.5px solid var(--cap-ink); background: var(--cap-white);
  font: var(--cap-text-small); font-weight: 700; line-height: 1; color: var(--cap-ink); font-variant-numeric: tabular-nums; transition: border-color 160ms ease; }

.pv-text { grid-area: text; }
.pv-sec { scroll-margin-top: var(--cap-space-5); }
.pv-sec + .pv-sec { margin-top: var(--cap-space-6); padding-top: var(--cap-space-6); border-top: 1px solid var(--cap-ink-20); }
.pv-sec h2 { display: flex; align-items: flex-start; gap: var(--cap-space-4); font: var(--cap-text-h2); color: var(--cap-ink); }
.pv-sec h2 .n { width: 36px; height: 36px; border-width: 2px; }
.pv-sec p { margin-top: var(--cap-space-4); padding-left: calc(36px + var(--cap-space-4)); max-width: calc(36em + 52px); text-wrap: pretty; }

/* Your rights: the one part that asks the reader to act, set as an inset on the light ground with the turquoise rule
   (light, not turquoise-12, so it does not repeat the closing band) */
.pv-sec--act { margin-top: var(--cap-space-6); padding: var(--cap-space-6) var(--cap-space-6) var(--cap-space-6) calc(var(--cap-space-6) - 3px); background: var(--cap-light); border-left: 3px solid var(--cap-turquoise); }
.pv-sec + .pv-sec--act { border-top: 0; }
.pv-sec--act .n { background: transparent; }
.ext { display: inline-block; vertical-align: -1px; margin-left: 4px; }

.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Page head and contents: once on load, all done by 1.0 s. The notice text itself never moves. */
@media (prefers-reduced-motion: no-preference) {
  .pv-head .cap-container > *, .toc h2, .toc li { animation: rise 500ms var(--ease-out) both; }
  .pv-head .cap-container > :nth-child(1) { animation-delay: 60ms; }
  .pv-head .cap-container > :nth-child(2) { animation-delay: 120ms; }
  .pv-head .cap-container > :nth-child(3) { animation-delay: 180ms; }
  .toc h2 { animation-delay: 260ms; }
  .toc li:nth-child(1) { animation-delay: 300ms; }
  .toc li:nth-child(2) { animation-delay: 340ms; }
  .toc li:nth-child(3) { animation-delay: 380ms; }
  .toc li:nth-child(4) { animation-delay: 420ms; }
  .toc li:nth-child(5) { animation-delay: 460ms; }
  .toc li:nth-child(6) { animation-delay: 500ms; }
}
}
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (max-width: 1023px) {
  .pv-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "toc" "text"; row-gap: var(--cap-space-7); }
  .toc { position: static; max-width: 36em; }
}

@media (max-width: 767px) {
  .pv-head { padding: var(--cap-space-6) 0 var(--cap-space-6); }
  .pv-head h1 { margin-top: var(--cap-space-3); }
  .pv-lede { margin-top: var(--cap-space-4); }
  .pv-body { padding: var(--cap-space-6) 0 var(--cap-space-7); }
  .pv-grid { row-gap: var(--cap-space-6); }
  .pv-sec h2 { gap: var(--cap-space-3); }
  .pv-sec h2 .n { width: 32px; height: 32px; }
  .pv-sec p { padding-left: 0; }
  .pv-sec + .pv-sec { margin-top: var(--cap-space-5); padding-top: var(--cap-space-5); }
  .pv-sec--act { margin: var(--cap-space-5) -16px 0; padding: var(--cap-space-5) 16px var(--cap-space-5) 13px; }
}
@media print {
  .pv-head *, .toc * { opacity: 1 !important; animation: none !important; transition: none !important; }
  .toc { position: static; }
}
/* Reduced motion: nothing moves, no animations and no transitions */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Russian phones: the one-word title (Конфиденциальность) is set one step smaller so it stays inside the page */
@media (max-width: 419px) { :lang(ru) .pv-head h1 { font: var(--cap-text-h1); } }
