/* Text pages (privacy statement, cookie policy). Loaded only on pages using
   page-templates/tindeq-legal.php (routing.php keys off the template slug).
   Nothing new is invented: type, colour and spacing come from tokens.css.
   base.css resets lists and margins inside .tq, so the prose rules below put
   them back for running text only. */

/* --- head ---------------------------------------------------------------- */

.tq .tq-legal__head {
  background: var(--tq-snow);
  border-bottom: 1px solid var(--tq-hairline);
  padding: 72px 0 40px;
}
.tq .tq-legal__h1 {
  margin-top: 14px;
  font-family: var(--tq-serif); font-weight: 400;
  font-size: 64px; line-height: 1.02; letter-spacing: var(--tq-track-display);
  color: var(--tq-ink);
}

/* --- body ---------------------------------------------------------------- */

.tq .tq-legal__section { background: var(--tq-snow); padding: 48px 0 96px; }
.tq .tq-legal__body { max-width: 72ch; font-size: 17px; line-height: 1.6; color: var(--tq-ink); }

/* The privacy page's blocks sit inside TranslatePress's <trp-tag> wrapper
   (from [language-include]), so spacing cannot rely on direct children. */
.tq .tq-legal__body trp-tag { display: block; }
.tq .tq-legal__body :is(p, ul, ol, figure, h2, h3) + :is(p, ul, ol, figure) { margin-top: 1em; }
.tq .tq-legal__body h2 {
  margin-top: 2.4em;
  font-family: var(--tq-sans); font-weight: 600;
  font-size: 24px; line-height: 1.25; letter-spacing: -.01em;
}
.tq .tq-legal__body h3 {
  margin-top: 1.8em;
  font-family: var(--tq-sans); font-weight: 600;
  font-size: 18px; line-height: 1.35;
}
.tq .tq-legal__body h2 + *,
.tq .tq-legal__body h3 + * { margin-top: .6em; }

.tq .tq-legal__body ul,
.tq .tq-legal__body ol { padding-left: 1.3em; }
.tq .tq-legal__body ul { list-style: disc; }
.tq .tq-legal__body ol { list-style: decimal; }
.tq .tq-legal__body li + li { margin-top: .35em; }

.tq .tq-legal__body a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.tq .tq-legal__body a:hover { text-decoration-thickness: 2px; }

.tq .tq-legal__body strong { font-weight: 600; }

.tq .tq-legal__body .tq-legal__meta {
  font-family: var(--tq-mono); font-size: 13px; letter-spacing: .04em;
  color: var(--tq-mute);
}

/* Open items in the draft are written as "[MANGLER: …]" / "[FORSLAG – bekreft …]"
   so they can be searched for; the brackets are in the text, so drop the
   ⟨ ⟩ that base.css adds around .tq-todo. */
.tq .tq-legal__body .tq-todo::before,
.tq .tq-legal__body .tq-todo::after { content: none; }
.tq .tq-legal__body .tq-todo { display: inline; }

/* Tables: data-dense, so they scroll sideways on phones instead of squeezing. */
.tq .tq-legal__body figure.wp-block-table { margin: 1.2em 0 0; overflow-x: auto; }
.tq .tq-legal__body table {
  width: 100%; border-collapse: collapse;
  font-size: 15px; line-height: 1.45;
}
.tq .tq-legal__body th,
.tq .tq-legal__body td {
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid var(--tq-hairline);
  text-align: left; vertical-align: top;
  overflow-wrap: anywhere;
}
.tq .tq-legal__body th {
  font-family: var(--tq-mono); font-size: 11px; font-weight: 400;
  letter-spacing: var(--tq-track-micro); text-transform: uppercase;
  color: var(--tq-mute);
}

/* --- Complianz cookie policy markup (#cmplz-document) ----------------------- */

.tq .tq-legal__body #cmplz-document { max-width: none; padding: 0; font-size: inherit; }
.tq .tq-legal__body #cmplz-document h2,
.tq .tq-legal__body #cmplz-document h3 { font-family: var(--tq-sans); }
.tq .tq-legal__body #cmplz-document p,
.tq .tq-legal__body #cmplz-document ul { margin-top: 1em; }
.tq .tq-legal__body #cmplz-document details {
  margin-top: 12px;
  border: 1px solid var(--tq-hairline);
  border-radius: var(--tq-radius);
  background: var(--tq-paper);
}
.tq .tq-legal__body #cmplz-document summary { cursor: pointer; }
/* Long cookie names (PayPal's KHcl0EuY7AKSMgfvHl7J5E7hPtK) widened the grid
   past a 390px screen; let the cells wrap instead. */
.tq .tq-legal__body #cmplz-document details,
.tq .tq-legal__body #cmplz-document details * { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }

/* --- small screens ------------------------------------------------------- */

@media (max-width: 1023px) {
  .tq .tq-legal__h1 { font-size: 52px; }
  .tq .tq-legal__body { font-size: 16px; }
}
@media (max-width: 767px) {
  .tq .tq-legal__head { padding: 48px 0 28px; }
  .tq .tq-legal__h1 { font-size: min(40px, calc((100vw - 48px) / 9)); overflow-wrap: break-word; } /* staging QA 18 Nov 2026: 'Personvernerklæring' fits 320-390 px */
  .tq .tq-legal__section { padding: 32px 0 64px; }
  .tq .tq-legal__body h2 { font-size: 21px; }
}

/* --- withdrawal form box (return policy / terms, 2026-10-29 legal-privacy run) ---
   Appended block; rollback = delete from this comment to the end of the file. */
.tq .tq-legal__body .tq-legal__form {
  margin-top: 1.2em;
  padding: 20px 22px;
  border: 1px solid var(--tq-hairline);
  border-radius: var(--tq-radius);
  background: var(--tq-paper);
  font-size: 15px; line-height: 1.55;
}
.tq .tq-legal__body .tq-legal__form p { overflow-wrap: anywhere; }
.tq .tq-legal__body .tq-legal__form p + p { margin-top: .8em; }
/* The form sits closed under its heading (Joakim, 16 Nov 2026): the law asks
   for it to be provided, not shown open. Core Details block, class
   tq-legal__details; the chevron turns when it opens. */
.tq .tq-legal__body .tq-legal__details > summary {
  display: inline-flex; align-items: center; gap: 10px;
  cursor: pointer; list-style: none;
  font-weight: 600;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
}
.tq .tq-legal__body .tq-legal__details > summary::-webkit-details-marker { display: none; }
.tq .tq-legal__body .tq-legal__details > summary::after {
  content: ""; width: .45em; height: .45em;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: translateY(-.15em) rotate(45deg);
}
.tq .tq-legal__body .tq-legal__details[open] > summary::after { transform: translateY(.1em) rotate(-135deg); }
.tq .tq-legal__body .tq-legal__details > summary:hover { text-decoration-thickness: 2px; }
.tq .tq-legal__body .tq-legal__details > summary + * { margin-top: 1em; }
.tq .tq-legal__body .tq-legal__details + * { margin-top: 1.6em; }
/* --- end withdrawal form box --- */
