/* Legal pages (Impressum, privacy, cookies, terms). Same tokens as styles.css,
   kept separate so these pages load none of the scroll/shader machinery. */
:root {
  --ink: #0B3040;
  --abyss: #061E2A;
  --paper: #FFFFFF;
  --ice: #F1F6FA;
  --pulse: #3B88ED;
  --pulse-deep: #1B5FBF;
  --steel: #52707F;
  --steel-2: #9FB6C2;
  --line: #D9E4EB;
  --line-dark: rgba(255, 255, 255, .12);
  --display: 'Space Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --body: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  font-family: var(--body);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: anywhere;
}
a { color: var(--pulse-deep); text-underline-offset: 2px; }
a:hover { color: var(--ink); }

.skip-link { position: absolute; left: -999px; }
.skip-link:focus { left: 16px; top: 12px; z-index: 10; background: var(--paper); padding: 6px 10px; }

/* ---------- header ---------- */
.lg-head {
  position: sticky; top: 0; z-index: 5;
  background: var(--abyss); color: #fff;
  border-bottom: 1px solid var(--line-dark);
}
.lg-head-in {
  max-width: 880px; margin: 0 auto; padding: 0 16px;
  height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.lg-brand { display: flex; align-items: center; text-decoration: none; }
.lg-brand img { display: block; height: 44px; width: auto; }
.lg-lang { display: flex; border: 1px solid var(--line-dark); border-radius: 999px; padding: 3px; }
.lg-lang a {
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .06em;
  color: var(--steel-2); text-decoration: none; padding: 4px 12px; border-radius: 999px;
}
.lg-lang a[aria-current="true"] { background: var(--pulse); color: #fff; }

/* ---------- document ---------- */
.lg-main { max-width: 880px; margin: 0 auto; padding: 48px 16px 72px; }
.lg-doc + .lg-doc { margin-top: 72px; padding-top: 56px; border-top: 1px solid var(--line); }
.js .lg-doc[hidden] { display: none; }
.js .lg-doc + .lg-doc { margin-top: 0; padding-top: 0; border-top: 0; }

.lg-doc h1 {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(30px, 5vw, 44px); line-height: 1.1; letter-spacing: -.01em;
}
.lg-meta { font-family: var(--mono); font-size: 13px; color: var(--steel); margin: 12px 0 28px; }
.lg-doc h2 {
  font-family: var(--display); font-weight: 600; font-size: 22px; line-height: 1.25;
  margin: 44px 0 12px;
}
.lg-doc h3 { font-family: var(--display); font-weight: 600; font-size: 17px; margin: 26px 0 8px; }
.lg-doc p, .lg-doc ul, .lg-doc ol, .lg-doc address, .lg-doc table, .lg-doc dl { margin-bottom: 14px; }
.lg-doc ul, .lg-doc ol { padding-left: 22px; }
.lg-doc li + li { margin-top: 5px; }
.lg-doc address { font-style: normal; }
.lg-doc strong { font-weight: 600; }

.lg-toc {
  background: var(--ice); border-radius: 10px; padding: 18px 22px; margin: 0 0 8px;
}
.lg-toc p { font-family: var(--mono); font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--steel); margin-bottom: 6px; }
.lg-toc ol { margin: 0; columns: 2 260px; column-gap: 28px; }
.lg-toc li { break-inside: avoid; }

.lg-summary {
  border-left: 3px solid var(--pulse); background: var(--ice);
  padding: 16px 20px; border-radius: 0 10px 10px 0;
}
.lg-summary ul { margin-bottom: 0; }

.lg-box {
  border: 1px solid var(--ink); border-radius: 10px; padding: 18px 22px; margin: 18px 0;
}
.lg-box h2, .lg-box h3 { margin-top: 0; }

.lg-table-wrap { overflow-x: auto; margin-bottom: 14px; }
.lg-doc table { width: 100%; border-collapse: collapse; font-size: 15px; margin-bottom: 0; }
.lg-doc th, .lg-doc td { text-align: left; vertical-align: top; padding: 9px 12px; border-bottom: 1px solid var(--line); }
.lg-doc th { font-family: var(--display); font-weight: 600; background: var(--ice); }

.lg-dl { display: grid; grid-template-columns: minmax(150px, max-content) 1fr; gap: 6px 20px; }
.lg-dl dt { font-weight: 600; }
@media (max-width: 560px) {
  .lg-dl { grid-template-columns: 1fr; gap: 0; }
  .lg-dl dd { margin-bottom: 10px; }
}

/* Placeholders that must be filled in before publishing. */
mark.todo { background: #FFE9A8; color: #5A3E00; padding: 0 3px; border-radius: 3px; }

/* ---------- footer ---------- */
.lg-foot { background: var(--abyss); color: var(--steel-2); font-size: 14px; }
.lg-foot-in {
  max-width: 880px; margin: 0 auto; padding: 28px 16px;
  display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between;
}
.lg-foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.lg-foot a { color: #fff; text-decoration: none; }
.lg-foot a:hover, .lg-foot a[aria-current="page"] { color: var(--pulse); }

@media print {
  .lg-head, .lg-foot, .lg-toc { display: none; }
  .lg-doc[hidden] { display: block !important; }
}
