/* The legal pages (Privatlivspolitik, Cookiepolitik): long text in the `page` template, inside one group with the
   class .legal (build/pages/persondatapolitik.php, cookiepolitik.php). Every rule is scoped to .legal, so no other
   page is affected. No approved design for these pages: built from the concept's tokens and type. */

.legal {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: color-mix(in srgb, var(--ink) 88%, var(--bg));
}
.legal > * { margin-block: 0; }
.legal > * + * { margin-top: 1.1em; }
.legal > p, .legal li { max-width: 68ch; }

/* the subtitle under the page title */
.legal > .legal-lead {
  font-size: clamp(1.15rem, 1rem + .5vw, 1.35rem); line-height: 1.55; color: var(--ink);
  padding-bottom: clamp(1.5rem, 3vw, 2rem); border-bottom: 1px solid var(--line);
}

/* the numbered sections */
.legal > h2 {
  margin-top: clamp(2.5rem, 5vw, 3.25rem);
  font-family: var(--font-display); font-weight: var(--display-wght); letter-spacing: -0.015em;
  font-size: clamp(1.3rem, 1.1rem + .7vw, 1.65rem); line-height: 1.2; color: var(--ink);
  text-wrap: balance; scroll-margin-top: 96px;
}
.legal > .legal-lead + h2 { margin-top: clamp(2rem, 4vw, 2.5rem); }
.legal > h2 + * { margin-top: .85em; }

.legal a {
  color: var(--accent-lit); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em;
  overflow-wrap: anywhere;
}
.legal a:hover { color: var(--ink); }

/* lists whose items carry their own letters ("a) ...", as in the old texts): no second set of markers */
.legal .legal-letters { list-style: none; margin-block: .85em 0; padding-left: clamp(1rem, 3vw, 1.75rem); border-left: 1px solid var(--line); }
.legal .legal-letters > li + li { margin-top: .75em; }

/* a spot that is filled later (the Cookiebot declaration) */
.legal .legal-placeholder {
  padding: 1.1rem 1.25rem; border: 1px dashed color-mix(in srgb, var(--ink) 30%, transparent); border-radius: var(--radius);
  color: var(--muted); font-size: .95rem;
}
.legal .legal-placeholder > * { margin: 0; }
