/* Help and legal pages of singhance.com – plain, readable, light and dark, no external files. */
:root {
  color-scheme: light dark;
  --bg: #fbf8f3;
  --text: #1d1a24;
  --muted: #5b5566;
  --line: #e4ded4;
  --accent: #6b3fd4;
  --card: #ffffff;
  font-family:
    system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    'Helvetica Neue',
    Arial,
    sans-serif;
  line-height: 1.6;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0a1a;
    --text: #f1eef8;
    --muted: #b3acc4;
    --line: #2b2840;
    --accent: #b9a2ff;
    --card: #15132a;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 1.0625rem;
}

a {
  color: var(--accent);
  text-underline-offset: 0.2em;
}

.site-header,
main,
.site-footer {
  width: min(46rem, 100% - 2rem);
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.25rem;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  font-weight: 800;
  font-size: 1.2rem;
  text-decoration: none;
}

.brand img {
  width: 2rem;
  height: 2rem;
}

main {
  padding-block: 2rem 3rem;
}

h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  line-height: 1.2;
}

h2 {
  margin: 2.25rem 0 0.5rem;
  font-size: 1.3rem;
  line-height: 1.3;
}

h3 {
  margin: 1.5rem 0 0.25rem;
  font-size: 1.05rem;
}

p,
ul,
ol {
  margin: 0.5rem 0;
}

li + li {
  margin-top: 0.3rem;
}

.lead,
.updated,
.translation {
  color: var(--muted);
}

.card {
  margin: 1rem 0;
  padding: 1rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--card);
}

.card > :first-child {
  margin-top: 0;
}

address {
  font-style: normal;
}

.site-footer {
  padding-block: 1.5rem 2.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

.site-footer a {
  color: var(--muted);
}

.site-footer a[aria-current='page'] {
  color: var(--text);
  font-weight: 700;
}

/* Open-source licences (lizenzen.html, generated by scripts/generate-licenses.mjs). */
.packages li {
  overflow-wrap: anywhere;
}

.copyright {
  color: var(--muted);
  font-size: 0.95rem;
}

h4 {
  margin: 1.25rem 0 0.25rem;
  font-size: 1rem;
}

.license-text {
  margin: 0.75rem 0 1.5rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--card);
  font-size: 0.8rem;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* Long words (Datenschutz-Grundverordnung …) never push the page sideways on a phone. */
main {
  overflow-wrap: break-word;
  hyphens: auto;
}
