/* Privacy policy page. Only what site.css doesn't cover: a quiet reading column with a contents list. */

/* The hero holds links, so clip without letting focus scroll it */
.page-hero { overflow: clip; }
.pv-hero { padding-bottom: clamp(40px, 5vw, 64px); }
.pv-hero::before { inset: -40% -8% auto auto; width: min(58vw, 760px); height: min(58vw, 760px); }
.pv-hero .lead { margin-top: 24px; max-width: 48ch; }
.pv-updated { margin-top: 20px; font-size: 14px; color: var(--text-3); }

/* ---------- Layout: contents on the left, text in a narrow column ---------- */
.section.pv { padding-top: clamp(32px, 4vw, 56px); border-top: 1px solid var(--line); }
.pv-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: clamp(32px, 6vw, 112px); align-items: start; }

.pv-toc { position: sticky; top: calc(var(--header-h) + 32px); }
.pv-toc-title { font-size: 14px; font-weight: 500; color: var(--text-3); margin-bottom: 12px; }
.pv-toc ol { border-left: 1px solid var(--line); }
.pv-toc a {
  display: block; margin-left: -1px; padding: 7px 0 7px 16px;
  border-left: 1px solid transparent;
  color: var(--text-2); text-decoration: none; font-size: 15px; line-height: 1.4;
  transition: color 0.2s ease, border-color 0.2s ease;
}
@media (hover: hover) { .pv-toc a:hover { color: var(--text); border-left-color: var(--accent); } }
.pv-toc a:focus-visible { outline-offset: 0; }

.pv-body { font-size: 17px; max-width: 64ch; min-width: 0; }

/* ---------- Summary ---------- */
.pv-summary {
  padding: clamp(22px, 3vw, 36px);
  border-radius: var(--r-m); border: 1px solid var(--line); background: var(--surface);
}
.pv-summary-title { font-size: 15px; font-weight: 500; color: var(--text-3); margin-bottom: 14px; }
.pv-summary li { padding: 14px 0; border-top: 1px solid var(--line); font-size: 17px; line-height: 1.55; color: var(--text); text-wrap: pretty; }
.pv-summary li:first-child { padding-top: 0; border-top: 0; }
.pv-summary li:last-child { padding-bottom: 0; }

/* ---------- Policy sections ---------- */
.pv-sec { margin-top: clamp(40px, 4vw, 60px); }
.pv-sec + .pv-sec { padding-top: clamp(40px, 4vw, 60px); border-top: 1px solid var(--line); }
.pv-sec h2 { font-weight: 400; font-size: clamp(26px, 2.4vw, 34px); line-height: 1.15; letter-spacing: -0.022em; text-wrap: balance; }
.pv-sec h3 { margin-top: 36px; font-weight: 500; font-size: 19px; line-height: 1.35; letter-spacing: -0.005em; }
.pv-sec h2 + *, .pv-sec h3 + * { margin-top: 18px; }
.pv-sec p, .pv-sec li { font-size: 17px; line-height: 1.65; color: var(--text-2); text-wrap: pretty; }
.pv-sec > p + p, .pv-sec > ul + p, .pv-sec > p + ul, .pv-sec > table + p, .pv-sec > p + table { margin-top: 16px; }
.pv-sec strong { font-weight: 500; color: var(--text); }

.pv-list li { position: relative; padding-left: 24px; }
.pv-list li + li { margin-top: 14px; }
.pv-list li::before { content: ""; position: absolute; left: 2px; top: 0.82em; width: 10px; height: 1px; background: var(--text-3); }

.pv-body a:not(.btn) {
  color: var(--text); text-decoration: underline; text-decoration-color: var(--line-2);
  text-decoration-thickness: 1px; text-underline-offset: 3px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}
@media (hover: hover) { .pv-body a:not(.btn):hover { color: var(--accent-2); text-decoration-color: currentColor; } }

.pv-body code {
  font-family: var(--f-code); font-size: 0.86em; font-weight: 500;
  padding: 1px 6px; border-radius: 6px; background: var(--surface-2); color: var(--text);
  white-space: nowrap;
}

/* ---------- Legal basis table ---------- */
.pv-table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.pv-table th { padding: 0 20px 12px 0; text-align: left; font-weight: 500; font-size: 14px; color: var(--text-3); vertical-align: bottom; }
.pv-table td { padding: 18px 20px 20px 0; border-top: 1px solid var(--line); vertical-align: top; color: var(--text-2); }
.pv-table td:first-child { color: var(--text); width: 32%; }
.pv-table th:last-child, .pv-table td:last-child { padding-right: 0; }
.pv-table .art { white-space: nowrap; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .pv-grid { grid-template-columns: 1fr; gap: 40px; }
  .pv-toc { position: static; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
  .pv-toc ol { columns: 2; column-gap: 24px; }
  .pv-toc li { break-inside: avoid; }
}
@media (max-width: 600px) {
  .pv-toc ol { columns: 1; }
  .pv-sec p, .pv-sec li { font-size: 16px; }
  .pv-summary li { font-size: 16px; }
  .pv-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .pv-table, .pv-table tbody, .pv-table tr, .pv-table td { display: block; width: auto; }
  .pv-table tr { padding: 18px 0 20px; border-top: 1px solid var(--line); }
  .pv-table td, .pv-table td:first-child { width: auto; padding: 0; border: 0; }
  .pv-table td + td { margin-top: 12px; }
  .pv-table td::before { content: attr(data-label); display: block; margin-bottom: 2px; font-size: 13px; color: var(--text-3); }
}

.pv-consent { border: 0; padding: 0 0 3px; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; color: var(--text); font: inherit; font-weight: 500; cursor: pointer; }
