/* ══════════════════════════════════════════════════════════════════
   Privacy notice — POPIA. Phase 9a.

   A new file, because this page has no existing styling. Every colour,
   radius, shadow and transition below is a variable already declared in
   shared.css; none is redefined and no new one is introduced.

   The page is a standalone document rather than a page inside the shell:
   it is readable while signed out, so there is no sidebar to render and
   nothing here may depend on /api/me.
   ══════════════════════════════════════════════════════════════════ */

/* shared.css sets `body{display:flex}` for the sidebar layout. This page
   has no sidebar, so it lays out as an ordinary document. */
body.privacy-page {
  display: block;
  background: var(--bg);
}

.pv-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 20px 72px;
}

/* ── Masthead ──────────────────────────────────────────────────── */

.pv-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}

.pv-head img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.pv-head-text h1 {
  font-size: 22px;
  font-weight: 600;
  color: var(--t1);
  letter-spacing: -0.2px;
}

.pv-head-text p {
  font-size: 12.5px;
  color: var(--t3);
  margin-top: 2px;
}

/* ── Body ──────────────────────────────────────────────────────── */

.pv-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--sh);
  padding: 30px 32px;
}

.pv-lede {
  font-size: 15px;
  color: var(--t2);
  line-height: 1.65;
}

.pv-card section {
  margin-top: 30px;
}

.pv-card h2 {
  font-size: 15px;
  font-weight: 600;
  color: var(--t1);
  margin-bottom: 10px;
}

.pv-card h3 {
  font-size: 13px;
  font-weight: 600;
  color: var(--t2);
  margin: 18px 0 6px;
}

.pv-card p {
  font-size: 13.5px;
  color: var(--t2);
  line-height: 1.65;
  margin-bottom: 10px;
}

.pv-card ul {
  margin: 0 0 10px 18px;
}

.pv-card li {
  font-size: 13.5px;
  color: var(--t2);
  line-height: 1.6;
  margin-bottom: 5px;
}

.pv-card a {
  color: var(--teal);
  text-decoration: none;
  border-bottom: 1px solid var(--teal-mid);
  transition: border-color var(--tr);
}

.pv-card a:hover {
  border-bottom-color: var(--teal);
}

/* The one thing on this page a reader most needs to find: what is never
   held. Called out rather than left in a list of twenty other points. */
.pv-note {
  background: var(--teal-light);
  border-left: 3px solid var(--teal);
  border-radius: var(--r-xs);
  padding: 14px 16px;
  margin: 14px 0;
}

.pv-note p:last-child {
  margin-bottom: 0;
}

/* ── What is held ──────────────────────────────────────────────── */

.pv-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 4px;
  font-size: 13px;
}

.pv-table th {
  text-align: left;
  font-weight: 600;
  color: var(--t3);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0 12px 8px 0;
  border-bottom: 1px solid var(--border);
}

.pv-table td {
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid var(--border-2);
  color: var(--t2);
  vertical-align: top;
  line-height: 1.55;
}

.pv-table tr:last-child td {
  border-bottom: none;
}

/* ── Foot ──────────────────────────────────────────────────────── */

.pv-foot {
  margin-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--t3);
}

.pv-foot a {
  color: var(--teal);
  text-decoration: none;
  font-weight: 500;
}

/* ── Mobile. The CSS has breakpoints; this one matches them. ────── */

@media (max-width: 560px) {
  .pv-wrap {
    padding: 20px 14px 56px;
  }

  .pv-card {
    padding: 22px 18px;
    border-radius: var(--r-sm);
  }

  .pv-head {
    gap: 11px;
    margin-bottom: 22px;
  }

  .pv-head img {
    height: 32px;
  }

  .pv-head-text h1 {
    font-size: 18px;
  }

  /* Two narrow columns of prose are unreadable at 375px, so the table
     becomes stacked rows with the label above the value. */
  .pv-table,
  .pv-table tbody,
  .pv-table tr,
  .pv-table td {
    display: block;
    width: 100%;
  }

  .pv-table thead {
    display: none;
  }

  .pv-table tr {
    border-bottom: 1px solid var(--border-2);
    padding: 10px 0;
  }

  .pv-table tr:last-child {
    border-bottom: none;
  }

  .pv-table td {
    border: none;
    padding: 0;
  }

  .pv-table td:first-child {
    font-weight: 600;
    color: var(--t1);
    margin-bottom: 2px;
  }
}
