/* Stylesheet for the static legal pages (/impressum/, /datenschutz/,
   /widerruf/). They live in public/ outside the Vite bundle and cannot
   reference hashed assets, so this carries its own subset of the brand tokens.
   Upstream truth: src/styles/base.css. */

@font-face {
  font-family: 'Space Grotesk';
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url('/fonts/space-grotesk-500.woff2') format('woff2');
}

@font-face {
  font-family: 'Space Grotesk';
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url('/fonts/space-grotesk-700.woff2') format('woff2');
}

@font-face {
  font-family: 'JetBrains Mono';
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url('/fonts/jetbrains-mono-500.woff2') format('woff2');
}

:root {
  --sk-ink: #141210;
  --sk-paper: #F7F3EC;
  --sk-muted: #6B6558;
  --sk-orange: #FB7C00;
  --sk-wall-base: #ECE6DC;
  --outline: rgba(20, 18, 16, 0.12);
  --font-ui: 'Space Grotesk', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --radius-pill: 32px;
  --radius-shelf: 20px;
  --shadow-tile-lifted: 0 3px 6px rgba(0, 0, 0, 0.30);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* The concrete wall ground, stretched over the scrolling document. */
body {
  min-height: 100vh;
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.55;
  color: var(--sk-ink);
  -webkit-font-smoothing: antialiased;
  background-color: var(--sk-wall-base);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.045 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E"),
    radial-gradient(90% 40% at 28% 0%, rgba(255, 255, 255, 0.30), transparent 70%),
    linear-gradient(180deg, #E2DCD1 0%, #ECE6DC 30%, #F1ECE1 60%, #E8E2D6 100%);
}

.legal {
  max-width: 680px;
  margin: 0 auto;
  padding: 20px 16px 56px;
}

/* The left slot (close control or its fallback hint) is optional, so the row
   right-aligns and the left item claims the gap with an auto margin. The
   min-height holds the header at the height it has always had, whichever of
   the three states it is in. */
.legal-head {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-height: 61px;
  padding: 6px 6px 16px;
}

/* Closes the tab these pages were opened in, put there by legal.js and only
   where closing can work; details in that file. Never a link back to the
   funnel: a visitor reading this usually has an order waiting in the tab
   underneath, and the start page would offer them a fresh design instead. */
.legal-close {
  margin-right: auto;
  font: inherit;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
  color: var(--sk-ink);
  background: transparent;
  border: 0;
  padding: 8px 0;
  cursor: pointer;
}

.legal-close:active {
  transform: scale(0.97);
}

.legal-head-note {
  margin-right: auto;
}

.mono-meta {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--sk-muted);
}

/* The paper sheet the text lives on. */
.sheet {
  background: var(--sk-paper);
  border: 1px solid var(--outline);
  border-radius: var(--radius-shelf);
  box-shadow: var(--shadow-tile-lifted);
  padding: 28px 20px 32px;
}

@media (min-width: 560px) {
  .sheet {
    padding: 40px 44px 44px;
  }
}

/* Headings keep the brand register: typed lowercase in the markup, no
   text-transform, so statute abbreviations ("§ 5 DDG") stay verbatim. Body text
   stays normally cased German for legal clarity. */
h1 {
  font-weight: 700;
  font-size: 34px;
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin-bottom: 8px;
}

h1 .dot {
  color: var(--sk-orange);
}

h2 {
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 30px 0 10px;
}

p {
  margin-bottom: 12px;
}

ul {
  margin: 0 0 12px;
  padding-left: 22px;
}

li {
  margin-bottom: 6px;
}

a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Owner placeholders: loudly unfinished on purpose (visible-mock doctrine); the
   page must not read as launch-ready until every one of these is replaced. */
.ph {
  background: rgba(251, 124, 0, 0.14);
  outline: 1px dashed rgba(251, 124, 0, 0.75);
  border-radius: 4px;
  padding: 0 4px;
  font-weight: 700;
}

/* Consent reset control (datenschutz page only). */
.btn-reset {
  display: inline-block;
  font: inherit;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
  color: var(--sk-ink);
  background: transparent;
  border: 2px solid var(--sk-ink);
  border-radius: var(--radius-pill);
  padding: 12px 20px;
  cursor: pointer;
  margin: 4px 0 8px;
}

.btn-reset:active {
  transform: scale(0.97);
}

.legal-foot {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding-top: 22px;
}

.legal-foot a {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--sk-muted);
  text-decoration: none;
  padding: 6px 2px;
}

.legal-foot a:hover {
  text-decoration: underline;
}
