/*
 * School legal footer – mod_schoollegalfooter
 * (C) 2026 Wolkenberg Gymnasium – GNU GPL v2 or later
 * Colours are inherited from the template (dark footer); the optional module colours set the variables.
 */

/* Font size and line height are inherited from the template's module position (like the neighbouring
   modules in bottom2–4); a fixed rem size would be larger than the template's footer text. */
.slf {
  background: var(--slf-bg, transparent);
  color: var(--slf-color, inherit);
}

.slf--pad-small { padding: .75rem; }
.slf--pad-medium { padding: 1.5rem; }

.slf a {
  color: var(--slf-link, inherit);
  text-decoration: underline;
  text-underline-offset: .15em;
  overflow-wrap: anywhere;
}

.slf a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.slf-entry { margin: 0 0 .75rem; }
.slf-line { display: block; }
.slf--detailed .slf-entry__label { display: block; font-weight: 600; }
.slf--compact .slf-entry { margin-bottom: .25rem; }
.slf--compact .slf-entry__label { font-weight: 600; margin-right: .25em; }
.slf--compact .slf-line { display: inline; }
.slf--compact .slf-line + .slf-line::before { content: ", "; }

.slf-links ul {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem 1.25rem;
  list-style: none;
  margin: .75rem 0 0;
  padding: 0;
}

.slf-hint {
  border: 1px dashed currentColor;
  font-size: .875em;
  padding: .5rem;
}
