/*
 * Keyfiler Web – Rechtstexte als eigene Seite (legal/imprint.html, legal/privacy.html)
 * In der App erscheinen dieselben Texte im Fenster „Impressum“ bzw. „Datenschutz“ (scripts/legal.js);
 * dort gilt die Gestaltung aus main.css (.legal-content).
 */

@font-face {
  font-family: "Saira";
  src: url("../fonts/saira-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Saira";
  src: url("../fonts/saira-medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Variablennamen und Grüntöne wie in der App (main.css) */
  --text-color: #5c5c5c;
  --strong-text-color: #3d3d3d;
  --caption-color: #707070;
  --border-color: #dcdcdc;
  --background-color: #ffffff;
  --button-color: #059862;
  --accent-soft-color: #e2f2eb;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Saira", system-ui, sans-serif;
  font-size: 1.125rem;
  line-height: 1.6;
  letter-spacing: 0.03em;
  color: var(--text-color);
  background-color: var(--background-color);
}

.legal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 52rem;
  margin: 0 auto;
  padding: 1.25rem 1rem;
  border-bottom: 1px solid var(--border-color);
}

.legal-logo {
  width: auto;
  height: 2.5rem;
}

.legal-head a {
  color: var(--button-color);
}

main.legal {
  max-width: 52rem;
  margin: 0 auto;
  padding: 2.5rem 1rem 4rem;
}

h1,
h2,
h3 {
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--strong-text-color);
}

h1 {
  margin: 0 0 1.5rem;
  font-size: 2.25rem;
}

h2 {
  margin: 2.5rem 0 0.75rem;
  font-size: 1.5rem;
}

h3 {
  margin: 1.75rem 0 0.5rem;
  font-size: 1.2rem;
}

p,
ul,
address {
  margin: 0 0 0.8rem;
}

address {
  font-style: normal;
}

ul {
  padding-left: 1.3em;
}

li + li {
  margin-top: 0.35em;
}

/* Links wie in der App: an der grünen Farbe erkennbar, unterstrichen erst beim Darüberfahren (mit Abstand zur Grundlinie) */
a {
  color: var(--button-color);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-decoration-color: currentColor;
  text-underline-offset: 0.2em;
}

.legal-notice {
  padding: 0.9em 1.1em;
  color: var(--strong-text-color);
  background-color: var(--accent-soft-color);
  border-left: 3px solid var(--button-color);
}

.legal-date {
  margin-top: 2.5rem;
  font-size: 0.95rem;
  color: var(--caption-color);
}

/* Archivierte Fassung: Hinweis über dem Text (nur auf der eigenen Seite) */
.legal-archive {
  max-width: 46rem;
  margin: 0 auto 1.5rem;
  padding: 0.7em 1em;
  color: var(--strong-text-color);
  background-color: #fff8ec;
  border-left: 3px solid #e0c48a;
}
