/* Rechtstexte (/privacy, /terms, /impressum) im Design der Startseite */

@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/instrument-sans-latin-wght.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f5f4f0;
  --surface: #ebe9e3;
  --ink: #141413;
  --muted: #6d6b65;
  --line: #dedbd3;
  --accent: #e4572e;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --gutter: clamp(20px, 5vw, 64px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--ink); color: var(--bg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.legal-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(245, 244, 240, 0.72);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid rgba(20, 20, 19, 0.06);
}
.legal-header .inner,
.legal,
.legal-footer {
  max-width: calc(760px + 2 * var(--gutter));
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.legal-header .inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 650; text-decoration: none; color: inherit; letter-spacing: -0.01em; }
.logo .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.back { font-size: 15px; color: var(--muted); text-decoration: none; transition: color 200ms ease; }
@media (hover: hover) and (pointer: fine) {
  .back:hover { color: var(--ink); }
}

.legal { padding-top: clamp(48px, 8vw, 96px); padding-bottom: clamp(64px, 10vw, 120px); }
.legal h1 {
  margin: 0 0 16px;
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
}
.legal h2 {
  margin: 2.4em 0 0.5em;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: clamp(20px, 2.2vw, 24px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.legal h3 { margin: 1.6em 0 0.4em; font-size: 18px; font-weight: 600; }
.legal p, .legal li { color: #3b3a36; }
.legal a { color: var(--ink); text-decoration-color: var(--line); text-underline-offset: 3px; transition: text-decoration-color 200ms ease; }
@media (hover: hover) and (pointer: fine) {
  .legal a:hover { text-decoration-color: var(--ink); }
}
.legal table { border-collapse: collapse; margin-top: 1em; width: 100%; font-size: 15px; }
.legal th, .legal td { border-top: 1px solid var(--line); padding: 10px 12px 10px 0; text-align: left; vertical-align: top; }
.legal th { font-weight: 600; }
.table-scroll { overflow-x: auto; }

.legal-footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding-top: 28px;
  padding-bottom: 36px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}
.legal-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.legal-footer a { color: inherit; text-decoration: none; transition: color 200ms ease; }
@media (hover: hover) and (pointer: fine) {
  .legal-footer a:hover { color: var(--ink); }
}
