/* ─────────────────────────────────────────────────────────
   Blue Terra — the Privacy Policy page

   Nineteen numbered sections, so it is built like the Terms page:
   one narrow column of text with a contents list that stays in
   view. Colours and typefaces come from styles.css.
   ───────────────────────────────────────────────────────── */

.privacy-page main { padding-top: var(--header-h); background: var(--cream); }

/* ── Title band ─────────────────────────────────────────── */
.pv-head {
  max-width: var(--wrap-content);
  padding-top: clamp(28px, 5vw, 52px);
  padding-bottom: clamp(18px, 3vw, 28px);
}
.pv-crumbs {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: .85rem; color: var(--muted); margin-bottom: 1rem;
}
.pv-crumbs a { color: inherit; text-decoration: none; }
.pv-crumbs a:hover { color: var(--navy); text-decoration: underline; }

/* "Datenschutzbestimmungen" is wider than a 320 px phone, so let it
   hyphenate at a proper syllable rather than break anywhere. */
.pv-head h1 { margin-bottom: 0; -webkit-hyphens: auto; hyphens: auto; }
/* On the narrowest phones even 28px is too big for the one word the title
   is made of, and hyphenation needs a dictionary the browser may not have. */
@media (max-width: 389px) { .pv-head h1 { font-size: 22px; } }

/* ── The two columns ────────────────────────────────────── */
.pv-layout {
  max-width: var(--wrap-content);
  /* minmax(0, …) so the long web addresses in the text cannot push the
     column wider than the phone screen. */
  display: grid; grid-template-columns: minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  padding-bottom: clamp(48px, 7vw, 88px);
  align-items: start;
}

/* ── Contents ───────────────────────────────────────────── */
.pv-toc {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 4px 18px;
}
.pv-toc-summary {
  cursor: pointer; list-style: none; font-weight: 600; color: var(--heading);
  padding: 14px 0; display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.pv-toc-summary::-webkit-details-marker { display: none; }
/* A chevron that turns over when the list opens. */
.pv-toc-summary::after {
  content: ''; width: 9px; height: 9px; flex: none;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translate(-2px, -2px); transition: transform .18s ease;
}
.pv-toc[open] .pv-toc-summary::after { transform: rotate(-135deg) translate(-2px, -2px); }

.pv-toc-nav { padding-bottom: 14px; }
.pv-toc-list { display: flex; flex-direction: column; gap: 2px; margin: 6px 0; }
.pv-toc-list a {
  display: block; padding: 6px 10px; border-radius: 8px;
  font-size: .85rem; line-height: 1.35; color: var(--text); text-decoration: none;
  border-left: 2px solid transparent;
}
.pv-toc-list a:hover { background: var(--sky-bg); color: var(--navy-dark); }
.pv-toc-list a[aria-current] {
  background: var(--sky-bg); color: var(--navy-dark);
  font-weight: 600; border-left-color: var(--navy);
}

/* ── The document ───────────────────────────────────────── */
.pv-body {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: clamp(22px, 4vw, 46px);
  /* Words like "Datenschutzgrundverordnung" are wider than a phone column. */
  overflow-wrap: break-word;
}
.pv-body p { margin: 0 0 1rem; font-size: .95rem; line-height: 1.75; }
/* Web addresses here run to 60 characters and more — let them wrap
   mid-address rather than stick out of the card on a phone. */
.pv-body a { color: var(--navy); overflow-wrap: anywhere; }
.pv-body strong { color: var(--heading); }

.pv-lead { margin-bottom: 2rem; }
.pv-lead p:first-child { font-weight: 600; color: var(--heading); }

.pv-section { scroll-margin-top: calc(var(--header-h) + 18px); }
.pv-section + .pv-section { margin-top: 2rem; }
.pv-section-title {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(19px, 2.2vw, 24px); line-height: 1.3;
  color: var(--navy-dark);
  padding-top: 1.4rem; border-top: 2px solid var(--line); margin-bottom: 1.2rem;
}

.pv-list { margin: 0 0 1rem; padding-left: 1.1rem; }
.pv-list li {
  position: relative; padding-left: .85rem; margin-bottom: .5rem;
  font-size: .95rem; line-height: 1.7;
}
.pv-list li::before {
  content: ''; position: absolute; left: 0; top: .72em;
  width: 5px; height: 5px; border-radius: 50%; background: var(--navy);
}

/* ── Desktop: contents beside the text, and it stays put ── */
@media (min-width: 900px) {
  .pv-layout { grid-template-columns: 265px minmax(0, 1fr); }
  .pv-toc-wrap { position: sticky; top: calc(var(--header-h) + 16px); }
  .pv-toc {
    padding: 4px 14px;
    max-height: calc(100vh - var(--header-h) - 48px);
    overflow-y: auto;
  }
  /* Open permanently here — the summary would only be in the way. */
  .pv-toc-summary { cursor: default; }
  .pv-toc-summary::after { display: none; }
}

@media (max-width: 899px) {
  /* Keep the folded contents within reach while scrolling the sections. */
  .pv-toc-nav { max-height: 55vh; overflow-y: auto; }
}
