/*
 * AI Nutrition Coach - legal & support pages.
 *
 * Deliberately one small stylesheet with no external dependency: no CDN, no
 * webfont, no icon set, no script. A privacy page that loads a third-party
 * font would contradict its own text by leaking the reader's IP address to
 * that host.
 *
 * System font stack, fluid layout, both colour schemes.
 */

:root {
  color-scheme: light dark;

  --page-bg: #f7f8f7;
  --surface: #ffffff;
  --text: #1c1f1d;
  --text-muted: #5a615c;
  --border: #dfe3e0;
  --accent: #2f6f52;
  --accent-soft: #eaf3ee;
  --todo-bg: #fff6e5;
  --todo-border: #e3b341;
  --todo-text: #6b4c07;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page-bg: #14171a;
    --surface: #1d2124;
    --text: #eceff1;
    --text-muted: #a3adb4;
    --border: #333a3f;
    --accent: #7fc9a4;
    --accent-soft: #1f2d27;
    --todo-bg: #2e2717;
    --todo-border: #a4801f;
    --todo-text: #f0d79a;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0 1rem 4rem;
  background: var(--page-bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
}

.wrap {
  max-width: 46rem;
  margin: 0 auto;
}

/* --- Kopf und Navigation ------------------------------------------------ */

header {
  padding: 2rem 0 1rem;
  border-bottom: 1px solid var(--border);
}

.brand {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

h1 {
  margin: 0.35rem 0 0;
  font-size: 1.75rem;
  line-height: 1.25;
}

nav {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

nav a {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 0.9rem;
  text-decoration: none;
}

nav a:hover,
nav a:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
}

nav a[aria-current="page"] {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
}

/* --- Inhalt ------------------------------------------------------------- */

main {
  padding-top: 1.5rem;
}

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

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

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

ul,
ol {
  padding-left: 1.25rem;
}

li {
  margin-bottom: 0.35rem;
}

a {
  color: var(--accent);
}

strong {
  font-weight: 650;
}

code {
  padding: 0.1em 0.35em;
  border-radius: 4px;
  background: var(--accent-soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
}

/* --- Hinweisblöcke ------------------------------------------------------ */

.notice {
  margin: 1.25rem 0;
  padding: 0.9rem 1rem;
  border: 1px solid var(--todo-border);
  border-left-width: 4px;
  border-radius: 6px;
  background: var(--todo-bg);
  color: var(--todo-text);
}

.notice p:last-child {
  margin-bottom: 0;
}

.todo {
  padding: 0.05em 0.4em;
  border: 1px solid var(--todo-border);
  border-radius: 4px;
  background: var(--todo-bg);
  color: var(--todo-text);
  font-size: 0.85em;
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

/* --- Tabellen ----------------------------------------------------------- */

.table-scroll {
  overflow-x: auto;
  margin: 0 0 1rem;
}

table {
  width: 100%;
  min-width: 22rem;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th,
td {
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--accent-soft);
  font-weight: 650;
}

/* --- Fuß ---------------------------------------------------------------- */

footer {
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.9rem;
}

footer p {
  margin-bottom: 0.5rem;
}

@media (max-width: 30rem) {
  h1 {
    font-size: 1.45rem;
  }

  body {
    font-size: 0.98rem;
  }
}
