/* =============================================================================
   Content element "Accessibility statement (BFSG)", loaded only where it is used (Statement.html).
   GKMB templates reset the margins of p, ul and headings inside content elements, so the statement sets its own
   from the grid variables of the site template; a site can change them with the --accessibility-statement-*
   variables, e.g. in its variables.css
   ========================================================================== */

.accessibility-statement {
  --accessibility-statement-gap: var(--g-gap-s, 12px);
  --accessibility-statement-heading-gap: var(--g-gap, 28px);
  --accessibility-statement-heading-gap-below: var(--g-gap-s, 12px);
}

/* Paragraphs and lists, also those from the rich text fields */
.accessibility-statement p,
.accessibility-statement ul,
.accessibility-statement ol {
  margin-top: 0;
  margin-bottom: var(--accessibility-statement-gap);
}

/* Each section starts with more room above its heading (h2 to h6, chosen in the content element) and keeps some
   room below it, as the template sets none */
.accessibility-statement__heading {
  margin-top: var(--accessibility-statement-heading-gap);
  margin-bottom: var(--accessibility-statement-heading-gap-below);
}

.accessibility-statement > :first-child {
  margin-top: 0;
}

.accessibility-statement > :last-child,
.accessibility-statement li > :last-child {
  margin-bottom: 0;
}
