/* Shared styling for the standalone legal pages (privacy, terms, imprint,
   account deletion — German and English). These are plain static files rather
   than app routes so they stay reachable from a store listing, from a support
   email, and from a device that has never installed the app.

   Deliberately one file instead of a <style> block repeated eight times: these
   pages get edited under legal pressure, and the last thing that should differ
   between the German and English privacy policy is which one someone
   remembered to restyle.

   Fonts are the system stack on purpose. The app self-hosts its webfonts (see
   src/index.css) but these pages are served standalone, and pulling a webfont
   just to style a privacy policy is precisely the kind of third-party request
   a privacy policy should not itself be making. */

:root {
  color-scheme: dark;
  --page-bg: #0F0F11;
  --card-bg: #17181C;
  --text: #F2F2F4;
  --text-dim: #9A9AA2;
  --text-body: #D2D2D6;
  --accent: #F0655C;
  --rule: #2A2A2E;
}

* { box-sizing: border-box; }

body {
  background: var(--page-bg);
  color: var(--text-body);
  font-family: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  max-width: 44rem;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 5rem;
  line-height: 1.65;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

h1 {
  font-size: 1.6rem;
  line-height: 1.2;
  color: var(--text);
  margin: 0 0 0.35rem;
}

.updated {
  color: var(--text-dim);
  font-size: 0.8rem;
  margin: 0 0 2rem;
}

h2 {
  font-size: 1.05rem;
  color: var(--accent);
  margin: 2.5rem 0 0.6rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
}

h2:first-of-type { border-top: none; padding-top: 0; }

h3 {
  font-size: 0.95rem;
  color: var(--text);
  margin: 1.5rem 0 0.4rem;
}

p, li { font-size: 0.95rem; }
p { margin: 0 0 0.85rem; }

ul, ol { padding-left: 1.25rem; margin: 0 0 1rem; }
li { margin-bottom: 0.45rem; }

a { color: var(--accent); }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

strong { color: var(--text); }

/* Used for the "fill this in after registering the business" markers. Loud on
   purpose — a placeholder that ships to production is a legal problem, so it
   should be impossible to skim past. */
.todo {
  background: rgba(240, 101, 92, 0.14);
  border: 1px dashed var(--accent);
  color: var(--accent);
  padding: 0.05em 0.4em;
  border-radius: 3px;
  font-weight: 600;
  font-size: 0.9em;
}

.note {
  background: var(--card-bg);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 0.9rem 1.1rem;
  margin: 0 0 1.25rem;
}
.note p:last-child { margin-bottom: 0; }

details.reveal { margin: 0 0 1.25rem; }
details.reveal > summary { cursor: pointer; font-weight: 600; padding: 0.6rem 0; }
details.reveal[open] > summary { margin-bottom: 0.5rem; }
details.reveal details.reveal { margin-left: 1rem; margin-bottom: 0.5rem; }

table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.25rem;
  font-size: 0.88rem;
}
.table-wrap { overflow-x: auto; }
th, td {
  text-align: left;
  vertical-align: top;
  padding: 0.55rem 0.7rem;
  border-bottom: 1px solid var(--rule);
}
th { color: var(--text); font-weight: 600; }
thead th { border-bottom: 1px solid var(--accent); }

.langbar {
  display: flex;
  gap: 0.75rem;
  font-size: 0.8rem;
  margin: 0 0 1.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--rule);
}
.langbar a { text-decoration: none; }
.langbar a[aria-current="true"] { color: var(--text-dim); pointer-events: none; }

footer {
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  font-size: 0.82rem;
  color: var(--text-dim);
}
footer a { color: var(--text-dim); }
