/* CertaRounds — Privacy (src/screens/privacy.js). A reading page: 720px column, calm cards.
   Semantic tokens only. */

.pv { display: flex; flex-direction: column; gap: var(--sp-4); padding: var(--sp-4) 0 var(--sp-8); }
.pv-head { display: flex; flex-direction: column; gap: var(--sp-2); padding: var(--sp-2) 0 var(--sp-3); }
.pv-brand { display: inline-flex; align-self: flex-start; margin-bottom: var(--sp-6); border-radius: 8px; }
.pv-brand:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.pv-over { font-size: var(--fs-13); font-weight: var(--fw-semibold); letter-spacing: var(--tracking-wide); text-transform: uppercase; color: var(--text-accent); }
.pv-title { font-size: var(--fs-30); font-weight: var(--fw-bold); letter-spacing: var(--tracking-tight); line-height: 1.15; color: var(--text-strong); text-wrap: balance; }
.pv-title:focus { outline: none; }
.pv-lead { font-size: var(--fs-17); line-height: 1.55; color: var(--text-2); max-width: 60ch; }

.pv-block {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding: var(--sp-5);
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}
.pv-block__head { display: flex; align-items: center; gap: var(--sp-3); }
.pv-block__icon {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-soft-fg);
}
.pv-block__title { font-size: var(--fs-17); font-weight: var(--fw-bold); letter-spacing: var(--tracking-snug); color: var(--text-strong); }
.pv-block__lead { font-size: var(--fs-15); line-height: 1.6; color: var(--text-2); max-width: 68ch; }
.pv-list { display: flex; flex-direction: column; gap: var(--sp-3); padding-left: 0; list-style: none; }
.pv-list li {
  position: relative;
  padding-left: var(--sp-5);
  font-size: var(--fs-15);
  line-height: 1.6;
  color: var(--text-2);
  max-width: 68ch;
}
.pv-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: .62em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.pv-list strong { color: var(--text-strong); font-weight: var(--fw-semibold); }
.pv-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-3); margin-top: var(--sp-1); }

@media (min-width: 768px) {
  .pv { padding-top: var(--sp-6); gap: var(--sp-5); }
  .pv-title { font-size: var(--fs-36); }
  .pv-block { padding: var(--sp-6); }
}
@media (min-width: 1024px) {
  .pv--public { padding-top: var(--sp-9); }
}

/* ============ F1: own container, short version first, section index on desktop ============ */
.pv { max-width: calc(var(--reading-max) + 2 * var(--gutter)); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.pv-lead { margin-top: var(--sp-3); }
.pv-updated { font-size: var(--fs-13); color: var(--text-3); }
.pv-summary {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding: var(--sp-5);
  border-radius: var(--r-lg);
  background: var(--w-hero-bg);
}
.pv-summary__title { font-size: var(--fs-17); font-weight: var(--fw-bold); letter-spacing: var(--tracking-snug); color: var(--text-strong); }
.pv-summary__list { display: flex; flex-direction: column; gap: var(--sp-2); }
.pv-summary__list li { display: flex; align-items: flex-start; gap: var(--sp-2); font-size: var(--fs-15); line-height: 1.5; color: var(--text); }
.pv-summary__list .icon { flex-shrink: 0; margin-top: 2px; color: var(--accent); }
.pv-blocks { display: flex; flex-direction: column; gap: var(--sp-4); }
.pv-block__title:focus { outline: none; }
.pv-toprow { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); margin-bottom: var(--sp-5); }
.pv-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  padding: 0 var(--sp-2);
  margin-left: calc(-1 * var(--sp-2));
  border-radius: var(--r-pill);
  font-size: var(--fs-15);
  font-weight: var(--fw-semibold);
  color: var(--link);
}
.pv-back:hover { background: var(--surface-hover); }
.pv-back:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.pv-brand { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: 0; }

@media (min-width: 768px) {
  .pv-blocks { gap: var(--sp-5); }
  .pv-summary { padding: var(--sp-6); }
}
@media (min-width: 1024px) {
  .pv--split { max-width: 1040px; padding-top: var(--sp-7); }
  .pv-layout { display: grid; grid-template-columns: 220px minmax(0, 760px); gap: var(--sp-8); align-items: start; }
  .pv-main { display: flex; flex-direction: column; gap: var(--sp-5); min-width: 0; }
  .pv-index { position: sticky; top: var(--sp-7); padding-top: 64px; }
  .pv-index__title { font-size: var(--fs-12); font-weight: var(--fw-semibold); letter-spacing: var(--tracking-wide); text-transform: uppercase; color: var(--text-3); margin-bottom: var(--sp-2); }
  .pv-index ol { display: flex; flex-direction: column; gap: 2px; border-left: 2px solid var(--divider); }
  .pv-index__link {
    display: flex;
    align-items: center;
    min-height: 36px;
    padding: 0 var(--sp-3);
    margin-left: -2px;
    border-left: 2px solid transparent;
    font-size: var(--fs-15);
    color: var(--text-2);
    text-decoration: none;
  }
  .pv-index__link:hover { color: var(--link); border-left-color: var(--accent); }
  .pv-index__link:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: 6px; }
}

/* ============ F2 ============ */
/* Reading measure: about 70 characters a line inside the 760px card */
.pv-list li, .pv-block__lead { max-width: 58ch; }
/* Phones/tablets: a compact "On this page" under the short version */
.pv-jump { display: flex; flex-direction: column; gap: var(--sp-2); }
.pv-jump__title { font-size: var(--fs-12); font-weight: var(--fw-semibold); letter-spacing: var(--tracking-wide); text-transform: uppercase; color: var(--text-3); }
.pv-jump__list { --cluster: 10px 8px; }
@media (min-width: 1024px) {
  /* The top row spans both columns; the index then starts level with the PRIVACY eyebrow */
  .pv--split > .pv-toprow { margin-bottom: 0; }
  .pv-index { padding-top: var(--sp-2); }
  .pv-index__link.is-current { color: var(--text-strong); font-weight: var(--fw-semibold); border-left-color: var(--accent); }
}

/* ============ F3 ============ */
/* Cards hug the reading measure: a narrower column, and the text runs to the card padding */
.pv-list li, .pv-block__lead { max-width: none; }
@media (min-width: 1024px) {
  .pv--split { max-width: 940px; }
  .pv-layout { grid-template-columns: 220px minmax(0, 620px); }
  /* Back sits at the top of the index column in both states; the column is the sticky part */
  .pv-side { position: sticky; top: var(--sp-7); display: flex; flex-direction: column; align-items: flex-start; gap: var(--sp-4); }
  .pv-side .pv-index { position: static; padding-top: 0; }
  .pv-side .pv-back { margin-left: calc(-1 * var(--sp-2)); }
  /* "You are here": a violet segment on the rail and ink text */
  .pv-index__link.is-current { color: var(--text-strong); font-weight: var(--fw-semibold); border-left-color: var(--accent); }
}
/* Phones: the jump chips sit under the lead; each section ends with a quiet "Back to top" */
.pv-jump { margin-top: calc(-1 * var(--sp-2)); }
.pv-top {
  align-self: flex-end;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  padding: 0 var(--sp-2);
  margin: calc(-1 * var(--sp-2)) calc(-1 * var(--sp-2)) calc(-1 * var(--sp-3)) 0;
  border-radius: 10px;
  font-size: var(--fs-13);
  font-weight: var(--fw-semibold);
  color: var(--text-2);
}
.pv-top:hover { color: var(--link); }
.pv-top:focus-visible { outline: none; box-shadow: var(--focus-ring); }

/* ============ F4 ============ */
/* Phones: "On this page" is a row of jump links (each with ↓), one horizontally scrolling line */
.pv-jump__list {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  margin-inline: calc(-1 * var(--gutter));
  padding: 2px var(--gutter) 4px;
  scroll-padding-inline: var(--gutter);
}
.pv-jump__list::-webkit-scrollbar { display: none; }
.pv-jump__list > li { flex: 0 0 auto; }
.pv-jump__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  padding: 0 var(--sp-3);
  border-radius: var(--r-pill);
  background: var(--accent-soft);
  color: var(--accent-soft-fg);
  font-size: var(--fs-13);
  font-weight: var(--fw-semibold);
  white-space: nowrap;
  text-decoration: none;
}
.pv-jump__link:hover { text-decoration: underline; }
.pv-jump__link:focus-visible { outline: none; box-shadow: var(--focus-ring); }
/* The one "Back to top" sits at the end of the page, centred */
.pv-blocks > .pv-top { align-self: center; margin: 0; }
/* Tablet portrait: the reading column is capped at a comfortable measure and centred */
@media (min-width: 768px) and (max-width: 1023px) {
  .pv { max-width: calc(680px + 2 * var(--gutter)); }
}
/* Desktop, signed out: Log in on the right of the top row */
.pv-toprow { display: flex; align-items: center; justify-content: space-between; }
