/* Static legal pages (licenses, Datenschutz, Impressum, privacy): same colours as the app, light and dark. */
:root {
  --bg: #111413;
  --ink: #e9edeb;
  --ink-2: #c4cbc8;
  --muted: #8b9490;
  --line: #2d3431;
  --accent: #34b27b;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme='dark']) {
    --bg: #ebefed;
    --ink: #171b19;
    --ink-2: #353c39;
    --muted: #616b66;
    --line: #d6ddd9;
    --accent: #18724c;
    color-scheme: light;
  }
}
:root[data-theme='light'] {
  --bg: #ebefed;
  --ink: #171b19;
  --ink-2: #353c39;
  --muted: #616b66;
  --line: #d6ddd9;
  --accent: #18724c;
  color-scheme: light;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-2);
  font: 15px/1.6 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  -webkit-text-size-adjust: 100%;
}
main { max-width: 680px; margin: 0 auto; padding: 28px 16px 48px; }
h1 { font: 650 26px/1.25 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; letter-spacing: -0.01em; color: var(--ink); margin: 0 0 6px; }
h2 { font-size: 17px; color: var(--ink); margin: 28px 0 6px; }
h3 { font-size: 15px; color: var(--ink); margin: 18px 0 4px; }
p, ul { margin: 0 0 10px; }
ul { padding-left: 20px; }
li { margin-bottom: 4px; }
a { color: var(--accent); overflow-wrap: anywhere; }
.meta { color: var(--muted); font-size: 13px; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0 0 20px; font-size: 13px; }
.nav a { color: var(--muted); }
dl { margin: 0 0 10px; display: grid; grid-template-columns: max-content 1fr; gap: 2px 12px; font-size: 14px; }
dt { color: var(--muted); }
dd { margin: 0; }
@media (max-width: 480px) {
  dl { grid-template-columns: 1fr; }
  dd { margin-bottom: 6px; }
}
/* inside the app the page sits in a dialog with its own close button: no link back to the app */
.embedded .to-app { display: none; }
.embedded main { padding-top: 20px; }
/* licenses page: attribution list, folded license texts */
.attr { font-size: 14px; }
details { margin: 0 0 8px; }
summary { cursor: pointer; color: var(--ink); }
pre { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12px; line-height: 1.45; color: var(--muted); margin: 8px 0 0; }
