/**
 * Legal pages — shared stylesheet for the "WMB — Legal Page" template
 * (template-legal.php): Contact, Privacy Statement, Legal Notice. Ported from
 * the "WMB Legal Pages" design. Enqueued only on template-legal.php pages.
 *
 * Self-scoped: all tokens are declared on .page-legal (NOT :root) so the bundle
 * renders identically regardless of any global / per-page token redefinition,
 * mirroring footer.css. The site header + footer are the theme's own shared
 * partials (get_header()/get_footer()); the design's host-nav + slim site-foot
 * stubs and its body/background/reset rules are intentionally dropped. The
 * design's container queries (@container legal) are converted to @media so they
 * key off the real viewport under WordPress.
 *
 * @package wmb-2026
 */

.page-legal {
  /* ---- self-scoped tokens (values from the design system) ---- */
  --fg:           #f4f4f4;
  --fg-muted:     #9a9a9a;
  --accent:       #c8102e;
  --accent-hover: #e63946;
  --wmb-border:   #262626;
  --font-display: "WMB Display", "Latin CT Not Wide", "Indubitably", "Oswald", "Impact", "Haettenschweiler", sans-serif;
  --font-text:    "Bebas Neue", "Oswald", "Arial Narrow", sans-serif;
  --font-mono:    "JetBrains Mono", "IBM Plex Mono", ui-monospace, monospace;

  max-width: 720px;
  margin: 0 auto;
  padding: 64px 24px 96px;
  color: var(--fg);
  font-family: var(--font-text);
}
.page-legal * { box-sizing: border-box; }

/* Hero */
.lp-hero {
  padding-bottom: 32px;
  border-bottom: 1px solid var(--wmb-border);
  margin-bottom: 48px;
}
.lp-hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--fg-muted);
  text-transform: uppercase;
  display: inline-block;
}
.lp-hero__eyebrow .slash { color: var(--accent); }
.lp-hero__title {
  font-family: var(--font-display);
  font-size: 56px;
  text-transform: uppercase;
  margin: 16px 0 0;
  line-height: 0.95;
  letter-spacing: 0.01em;
  color: var(--fg);
}
.lp-hero__rule {
  display: block;
  width: 64px;
  height: 4px;
  background: var(--accent);
  margin-top: 22px;
}
.lp-hero__updated {
  margin: 22px 0 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--fg-muted);
}
.lp-hero__updated .slash { color: var(--accent); }

@media (max-width: 1023px) {
  .page-legal { padding: 56px 24px 88px; }
  .lp-hero__title { font-size: 48px; }
}
@media (max-width: 599px) {
  .page-legal { padding: 40px 20px 72px; }
  .lp-hero__title { font-size: 36px; }
  .lp-hero { padding-bottom: 24px; margin-bottom: 36px; }
}

/* Body content from Gutenberg */
.lp-body {
  font-size: 17px;
  line-height: 1.7;
  color: var(--fg);
  letter-spacing: 0.01em;
}
.lp-body h2 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 28px;
  margin-top: 56px;
  margin-bottom: 16px;
  line-height: 1.05;
  letter-spacing: 0.02em;
  color: var(--fg);
}
.lp-body h2:first-child { margin-top: 0; }
.lp-body h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 18px;
  margin-top: 36px;
  margin-bottom: 12px;
  letter-spacing: 0.04em;
  line-height: 1.1;
  color: var(--fg);
}
.lp-body p { margin: 0 0 18px; }
.lp-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.lp-body a:hover { color: var(--accent-hover); }
.lp-body ul,
.lp-body ol { margin: 0 0 22px 22px; padding: 0; }
.lp-body li { margin-bottom: 8px; }
.lp-body strong { color: var(--fg); font-weight: 600; }
.lp-body em { font-style: normal; color: var(--fg-muted); }
.lp-body hr {
  border: 0; height: 1px; background: var(--wmb-border);
  margin: 40px 0;
}

/* Definition-list style address block (Impressum convention) */
.lp-body dl {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 12px 24px;
  margin: 0 0 22px;
  padding: 22px 0;
  border-top: 1px solid var(--wmb-border);
  border-bottom: 1px solid var(--wmb-border);
}
.lp-body dt {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted);
  padding-top: 4px;
}
.lp-body dd { margin: 0; color: var(--fg); }
@media (max-width: 599px) {
  .lp-body { font-size: 16px; line-height: 1.65; }
  .lp-body h2 { font-size: 24px; margin-top: 44px; }
  .lp-body h3 { font-size: 16px; margin-top: 28px; }
  .lp-body dl { grid-template-columns: 1fr; gap: 4px 0; padding: 18px 0; }
  .lp-body dt { padding-top: 14px; }
  .lp-body dt:first-child { padding-top: 0; }
}

/* Footer back link */
.lp-foot {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--wmb-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.lp-foot__back,
.lp-foot__contact {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--fg-muted);
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}
.lp-foot__back:hover,
.lp-foot__contact:hover { color: var(--accent); }
.lp-foot__contact .slash { color: var(--accent); }
