/* ─── LEGAL PAGES (Impressum, Datenschutz) ─── */
/* public/article.html reuses .legal-page and .legal-back for its page frame. */
.legal-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 8rem 1.5rem 6rem;
}

.legal-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 4.5rem);
  color: var(--text);
  line-height: 1;
}

.legal-meta {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.8rem;
}

.legal-page section {
  padding: 0;
  margin-top: 2.6rem;
}

.legal-page h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.4rem;
  letter-spacing: 0.03em;
  color: var(--accent);
  margin-bottom: 0.8rem;
}

.legal-page p,
.legal-page li {
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--text);
}

.legal-page p + p {
  margin-top: 0.9rem;
}

.legal-page ul {
  margin: 0.6rem 0 0.9rem 1.2rem;
}

.legal-page a {
  color: var(--accent);
}

/* Replaced .legal-placeholder, which drew a dashed red "fill this in" box
   around live content on a published page - including several empty ones
   that rendered as bare dashed rectangles. The Impressum and the privacy
   policy now render real values from config.py's contact settings. */
.legal-address {
  font-style: normal;
  line-height: 1.9;
  margin: 0.4rem 0 0.9rem;
}

.legal-back {
  display: inline-block;
  margin-top: 3rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
}

.legal-back:hover {
  color: var(--accent);
}

/* ─── LEGAL PAGES: MOBILE ───
   These are the longest, densest pages on the site and had no mobile rules
   at all - a 3rem gutter and desktop type sizes on a phone. */
@media (max-width: 700px) {
  .legal-page {
    padding: 7rem 1.25rem 4rem;
  }

  .legal-page h2 {
    font-size: 1.05rem;
  }

  .legal-page p,
  .legal-page li {
    font-size: 0.92rem;
  }

  /* An email address or a policy URL is one unbreakable token and was the
     one thing on these pages wide enough to overflow a 320px screen. */
  .legal-page a {
    word-break: break-word;
  }
}

/* ─── PHONES: 12PX TEXT FLOOR ───
   This page's text under 0.75rem, lifted to it on phones - see the block of
   the same name at the end of base/shared.css. */
@media (max-width: 600px) {
  .legal-meta,
  .legal-back {
    font-size: 0.75rem;
  }
}
