/* ──────────────────────────────────────────────────────────────
   Legal pages — Haus Vajbz. One sheet for the five legal templates in
   templates/documentation/ (privacy policy, staff-app privacy policy,
   terms of service, complaints & refunds, secure payment). The layout
   primitives (ink hero, sticky TOC column, ruled prose, callout, icon
   tile) come from hv/docs.css; this sheet adds only what the legal texts
   need: section counters, the numbered TOC, the contact line, the fact
   list, the card-mark strip and the processor link. Tokens only: radius 0,
   no shadows, no gradients, rules instead of boxes, → as the list marker.
   ────────────────────────────────────────────────────────────── */

/* ── TOC: numbered entries, red counter ─────────────────────── */
.dl-toc__n { flex: none; min-width: 2.2ch; color: var(--red); font-variant-numeric: tabular-nums; }

/* ── Sections: mono counter over the title (beside it from 768) ── */
.dl-sec__head { display: grid; gap: 0.35rem; margin-bottom: 0.8rem; }
.doc-prose .dl-sec__head h2 { margin: 0; }
.dl-sec__n { margin: 0; color: var(--red); font-variant-numeric: tabular-nums; }

/* ── Contact line: red icon tile on an ink block ─────────────── */
.doc-prose .dl-contact {
  display: inline-flex; align-items: center; gap: 0.9rem;
  margin: 0.2rem 0 0; padding-right: 1rem;
  background: var(--ink); color: var(--paper);
  font-family: var(--font-sub); font-weight: 600; font-size: 0.95rem; line-height: 1.3;
}

/* ── Callout with an icon (the one thing to remember) ────────── */
.dl-note { display: flex; align-items: flex-start; gap: 0.8rem; }
.dl-note__icon { flex: none; color: var(--red); font-size: 1rem; line-height: 1.65; }
.doc-prose .dl-note p { margin: 0; }

/* ── Facts: label | value rows on rules (merchant, contact) ──── */
.dl-facts { margin: 0.3rem 0 0; border-top: 2px solid var(--ink); }
.dl-facts > div { display: grid; gap: 0.2rem; padding: 0.6rem 0; border-bottom: 1px solid var(--line); }
.dl-facts dt { margin: 0; }
.dl-facts dd { margin: 0; font-family: var(--font-sub); font-weight: 600; font-size: 0.95rem; color: var(--ink); overflow-wrap: anywhere; }

/* ── Card marks: a ruled strip; the jpg backgrounds multiply into the paper ── */
.dl-logos {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem 1.6rem;
  margin: 0.4rem 0 1rem; padding: 0.9rem 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.dl-logos img { height: 26px; width: auto; mix-blend-mode: multiply; }
.dl-logos a { display: block; }

/* ── Processor: outlined link, logo + mono address ───────────── */
.doc-prose .dl-processor {
  display: inline-flex; align-items: center; gap: 0.9rem;
  margin-top: 0.2rem; padding: 0.6rem 1rem;
  border: 2px solid var(--line-strong); text-decoration: none;
  transition: border-color var(--dur) var(--ease);
}
.dl-processor img { height: 28px; width: auto; mix-blend-mode: multiply; }
.dl-processor .hv-mono { color: var(--text); transition: color var(--dur) var(--ease); }
.doc-prose .dl-processor:hover, .doc-prose .dl-processor:focus-visible { border-color: var(--red); text-decoration: none; outline: none; }
.dl-processor:hover .hv-mono, .dl-processor:focus-visible .hv-mono { color: var(--red); }

/* ── Tablet / desktop ────────────────────────────────────────── */
@media (min-width: 768px) {
  .dl-sec__head { grid-template-columns: 3.2rem minmax(0, 1fr); gap: 0; align-items: baseline; }
  .dl-facts > div { grid-template-columns: 170px minmax(0, 1fr); gap: 1rem; align-items: baseline; }
}
