/* Legal texts: the public pages of the terms of use (/nutzungsbedingungen), the privacy policy
   (/datenschutz) and the imprint (/impressum), and their maintenance under /admin/terms and
   /admin/legal_texts (docs/nutzungsbedingungen.md). The text itself carries the wiki class
   `wiki-body`. */

/* Die Anmelde-Karte ist für Formulare schmal; ein Text zum Lesen braucht mehr Breite. */
.auth-card--wide {
  width: min(100%, 46rem);
}

.terms-page__meta {
  margin: 0 0 var(--space-4);
  color: var(--ink-muted);
  font-size: 0.9rem;
}

.terms-admin__intro {
  max-width: 48rem;
  margin: 0 0 var(--space-4);
  color: var(--ink-muted);
}

.terms-admin__card {
  display: grid;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
  padding: var(--space-5);
}

.terms-admin__card h2,
.terms-admin__card p {
  margin: 0;
}

.terms-admin__preview {
  display: grid;
  gap: var(--space-3);
  padding-top: var(--space-4);
  border-top: 1px solid var(--line);
}

.terms-admin__preview h3 {
  margin: 0;
}

/* Publishing under /admin/legal_texts: whether it is a material change, and its summary. */
.terms-admin__publish {
  padding-top: var(--space-4);
  border-top: 1px solid var(--line);
}

/* Switch between privacy policy and imprint under /admin/legal_texts. */
.legal-texts-admin__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

/* Links to the published privacy policy and imprint at the end of the pages without the web
   navigation (legal_texts/_links). */
.legal-links {
  display: flex;
  flex-wrap: wrap;
  column-gap: var(--space-5);
  margin-top: var(--space-3);
  font-size: 0.9rem;
}

.legal-links a {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
}

/* The notice after a material change of the privacy policy or the imprint at the top of the
   pages of the layouts application and home (layouts/_legal_notice), as wide as the flash
   messages below it. The frame has no box of its own, so an empty one takes no room. */
.legal-notice-frame {
  display: block;
  width: min(calc(100% - (2 * var(--space-4))), 96rem);
  margin-inline: auto;
}

.legal-notice {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-4);
  padding: var(--space-4);
  border: 1px solid var(--line);
  border-inline-start: 4px solid var(--accent);
  border-radius: var(--radius-m);
  color: var(--ink);
  background: var(--surface-raised);
  box-shadow: var(--shadow-1);
}

.legal-notice__title {
  margin: 0;
  font-size: 1.05rem;
}

.legal-notice__change {
  display: grid;
  gap: var(--space-1);
}

.legal-notice__meta,
.legal-notice__summary {
  margin: 0;
}

.legal-notice__meta {
  color: var(--ink-muted);
  font-size: 0.85rem;
}

/* The summary is plain text; its line breaks stay. */
.legal-notice__summary {
  white-space: pre-line;
}

.legal-notice__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.legal-notice__dismiss {
  margin: 0;
}
