/* ============================================================================
   legal.css — Impressum, Datenschutz, AGB
   ----------------------------------------------------------------------------
   These three are the only pages on this site that are READ rather than looked
   at. Everything else is one screen, near-black, and built on the square grid.
   A 3000-word privacy policy set in a narrow strip of white type on near-black
   is not a document, it is a wall. Fawad, 9 Sep:

     "where is the menu... why is the impressum so shitty and small... why is
      it in the middle of the fucking page? ... it should be full width. like
      the whole fucking website... maybe just white background and text on top
      with their black color? no one can read this shit."

   So: white paper, the brand's near-black for the words, the site's own
   navigation at the top, and the same content column every other page uses.
   The one-screen rule in elements.css is deliberately lifted here.
   ========================================================================== */

body.legal {
  overflow: auto;
  background: var(--c-ink);        /* white paper */
  color: var(--c-schwarz);         /* their black, not a made-up grey */
}

/* THE MASTHEAD IS AN ORDINARY HEADER BAR, AND THE MARK FITS INSIDE IT.
   Everywhere else the mark is 16vh against a 9.3vh band, so it hangs below the
   band and over the photograph. On white paper the white-lettered mark would
   vanish, and the first fix here grew the band to swallow it — which left the
   five nav words floating in a huge black slab. The mark shrinks instead. */
body.legal {
  --logo-h: var(--legal-logo-h);
  --logo-y: var(--legal-logo-y);
}
body.legal .site-header {
  height: var(--legal-head-h);
  background: var(--c-schwarz);
}

/* THE SAME COLUMN AS EVERY OTHER PAGE.
   --content-w is four cells and three gaps: the exact box the grid, the panels
   and the nav all sit in, and its left edge is where the logo starts. The text
   was in a 68ch strip centred in the window, which lined up with nothing. */
.legal__wrap {
  width: var(--content-w);
  max-width: 88vw;
  margin-inline: auto;
  padding: calc(var(--legal-head-h) + 5vh) 0 14vh;
}

/* THIS IS THE PAGE'S TITLE, so it is the biggest thing on the page. It kept
   .eyebrow's uppercase italic — that is the house style for a heading — but
   not .eyebrow's --fs-body, which made it smaller than every section heading
   under it. */
.legal__wrap .eyebrow {
  color: var(--c-schwarz);
  font-size: var(--fs-doc-h1);
  line-height: 1.1;
  letter-spacing: 0;
  margin: 0 0 0.7em;
  /* GESCHAEFTSBEDINGUNGEN is one 20-letter word. At the old 34px floor it was
     380px wide on a 390px phone and pushed a horizontal scrollbar onto the
     page. The floor came down to 26px and the word is allowed to break: the
     document is lang="de", so the browser hyphenates it properly. */
  hyphens: auto;
  overflow-wrap: break-word;
}

.legal__body {
  white-space: normal;   /* real HTML from the editor, not \n-separated text */
  font-size: var(--fs-doc);
  line-height: 1.6;
}

.legal__body h2,
.legal__body h3 {
  font-weight: var(--w-display);
  font-stretch: var(--stretch-display);
  font-style: italic;
  line-height: 1.15;
}
.legal__body h2 { font-size: var(--fs-doc-h2); margin: 2.1em 0 0.55em; }
.legal__body h3 { font-size: var(--fs-doc-h3); margin: 1.6em 0 0.4em; }
.legal__body > :first-child { margin-top: 0; }

.legal__body p,
.legal__body ul,
.legal__body ol { margin: 0 0 1em; }

.legal__body ul { padding-left: 1.3em; }
.legal__body li { margin-bottom: 0.45em; }
.legal__body ul ul { margin: 0.5em 0 0.6em; }

/* Cyan at full strength is a pale blue on white paper. Mixed toward the
   brand's black it keeps the brand hue and gains the contrast a link needs. */
.legal__body a {
  color: color-mix(in srgb, var(--c-cyan) 62%, var(--c-schwarz));
  text-decoration: underline;
  text-underline-offset: 0.16em;
}
.legal__body a:hover { color: var(--c-schwarz); }

/* ---- phone ------------------------------------------------------------
   The column gives way to the screen, and the masthead keeps its depth so the
   logo still has dark behind it. The burger is the site's own, so nothing is
   overridden here — an earlier version force-showed the desktop nav row on a
   phone, which put a row of links behind the hamburger sheet. */
@media (max-width: 768px) {
  .legal__wrap {
    width: auto;
    max-width: none;
    margin-inline: 0;
    padding: calc(var(--legal-head-h) + 3vh) 6% 12vh;
  }
}

/* ---- the Kontakt dock ---------------------------------------------------
   NOTE: these pages load motion.css as well, and they have to. The dock is
   only closed BECAUSE of motion.css — that is where the panel is pushed off
   the bottom by translate: 0 calc(100% - var(--footer-peek)). Without it the
   whole box sat open over the text on page load. Nothing else in motion.css
   matches anything here; there are no cards and no arrows on a document.
   Fawad: "can you please also add the footer box thing in the legal pages?
   they are missing now in there." So these three carry the same dock as every
   other page — the arrow, the address, and the links back to the other two.

   ONE CHANGE: IT IS SOLID HERE. Everywhere else the panel is the page's accent
   at 80% because it lies over a photograph and the picture is meant to show
   through. There is no photograph on white paper, so 80% of --c-schwarz over
   white lands on a washed-out grey. Opaque, and it reads as the deliberate
   dark box it is on every other page. */
body.legal .footer,
body.legal .footer__handle {
  background: var(--c-schwarz);
}
