/* Document pages: legal texts, help pages and the 404 page – Night Departure, same look as
   the legal screens of the app (brand/night-departure/artboards/Impressum.dc.html).
   Tokens, fonts and the page chrome live in base.css. No inline styles (CSP: style-src 'self'). */
body {
  /* The one ambient glow of the screen. */
  background-image: radial-gradient(
    circle at 100% 0,
    rgba(57, 224, 208, 0.13),
    rgba(57, 224, 208, 0) 520px
  );
  background-repeat: no-repeat;
}

.doc-nav {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 22px;
  font-size: 15px;
}
.doc-nav a {
  color: var(--text-soft);
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.doc-nav a:hover {
  color: var(--text);
}
.doc-nav a[aria-current='page'] {
  color: var(--text);
  font-weight: 600;
  box-shadow: inset 0 -2px 0 var(--coral);
}
.doc-nav .lang {
  margin-left: auto;
}

.doc {
  padding-top: 20px;
  padding-bottom: 80px;
  overflow-wrap: anywhere;
}
.doc > * {
  max-width: 760px;
}
.doc h1 {
  margin: 14px 0 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1;
  letter-spacing: -0.02em;
}
.stand {
  margin: 12px 0 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.lead {
  margin: 18px 0 0;
  font-size: 18px;
  color: var(--text-soft);
}
.doc > p {
  margin: 18px 0 0;
}
.doc section {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.doc > section:first-of-type {
  margin-top: 28px;
}
.doc > section:last-of-type {
  border-bottom: 1px solid var(--line);
}
.doc h2 {
  margin: 0 0 8px;
  font-weight: 600;
  font-size: 19px;
  line-height: 1.3;
}
.doc h3 {
  margin: 18px 0 6px;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.35;
}
.doc p,
.doc li,
.doc dd {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--text-soft);
}
.doc section p {
  margin: 0 0 10px;
}
.doc section > :last-child {
  margin-bottom: 0;
}
.doc ul,
.doc ol {
  margin: 0 0 10px;
  padding-left: 22px;
}
.doc li {
  margin: 4px 0;
}
.doc strong {
  color: var(--text);
  font-weight: 600;
}
.doc a {
  text-underline-offset: 3px;
}

/* Draft note: dashed board amber, as on the legal screens of the app. */
.draft {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 8px 0 22px;
  padding: 14px 16px;
  border: 1px dashed var(--amber);
  border-radius: 14px;
  color: var(--amber);
}
.draft svg {
  flex: none;
  margin-top: 1px;
}
.draft p,
.draft li {
  margin: 0 0 6px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--amber);
}
.draft strong {
  color: var(--amber);
}
.draft ul {
  margin: 0;
  padding-left: 18px;
}

/* Key facts of a page (app, provider, contact). */
.facts {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 18px;
  margin: 22px 0 0;
}
.facts dt {
  padding-top: 5px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.facts dd {
  margin: 0;
  color: var(--text);
}

.doc-button {
  min-height: 48px;
  padding: 8px 20px;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 0.35em;
  border: 1px solid var(--line-input);
  border-radius: 14px;
  color: var(--text);
  font-weight: 600;
  font-size: 15.5px;
  text-decoration: none;
}
.doc-button:hover {
  border-color: var(--aqua);
  color: var(--text);
}

/* 404: three flap tiles. */
.not-found .tiles {
  display: flex;
  gap: 6px;
  margin: 28px 0 0;
}
.tile {
  width: 54px;
  height: 74px;
  display: grid;
  place-items: center;
  background: var(--tile);
  border: 1px solid var(--line-tile);
  border-radius: 10px;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 44px;
  line-height: 1;
  color: var(--amber);
}
.not-found h1 {
  margin-top: 0;
  font-size: clamp(34px, 5vw, 48px);
}
.not-found h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(26px, 4vw, 34px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.not-found section p:last-child {
  margin-top: 16px;
}
