/* The two legal pages (privacy.html, terms.html): plain documents outside the app, in its colours. */
:root {
  --ground: #f5ead8;
  --ink: #1d1a16;
  --muted: #5c5348;
  --rule: #d8c9b0;
  --link: #9a4f22;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ground: #1d1a16;
    --ink: #f5ead8;
    --muted: #b9ad9b;
    --rule: #3a342c;
    --link: #e39a6b;
  }
}
/* The app's own choice (legal.js, embedded in the app): it beats the system's, both ways round. */
:root[data-theme='light'] {
  --ground: #f5ead8;
  --ink: #1d1a16;
  --muted: #5c5348;
  --rule: #d8c9b0;
  --link: #9a4f22;
  color-scheme: light;
}
:root[data-theme='dark'] {
  --ground: #1d1a16;
  --ink: #f5ead8;
  --muted: #b9ad9b;
  --rule: #3a342c;
  --link: #e39a6b;
  color-scheme: dark;
}
/* Embedded in the app: its header is the way back, and the language is the app's. */
html[data-embed] nav {
  display: none;
}
html[data-embed][data-lang='de'] #en,
html[data-embed][data-lang='en'] #de,
html[data-embed] hr {
  display: none;
}
html[data-embed] main {
  padding-top: 0.5rem;
  padding-bottom: calc(2rem + env(safe-area-inset-bottom));
}
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 16px/1.6 system-ui, -apple-system, 'Segoe UI', sans-serif;
}
main {
  max-width: 44rem;
  margin: 0 auto;
  padding: 2rem 1rem 4rem;
}
nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  font-size: 0.95rem;
}
h1 {
  font-size: 1.8rem;
  line-height: 1.2;
  margin: 1.5rem 0 0.25rem;
}
h2 {
  font-size: 1.2rem;
  margin: 2rem 0 0.5rem;
}
h3 {
  font-size: 1rem;
  margin: 1.25rem 0 0.25rem;
}
.stand {
  color: var(--muted);
  margin: 0 0 1rem;
}
a {
  color: var(--link);
}
hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 3rem 0;
}
ul {
  padding-left: 1.25rem;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.95rem;
}
th,
td {
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--rule);
  padding: 0.4rem 0.5rem 0.4rem 0;
}

form.contact {
  display: grid;
  gap: 0.75rem;
  margin: 0.5rem 0 1rem;
}
form.contact label {
  display: grid;
  gap: 0.25rem;
  font-size: 0.95rem;
}
form.contact input,
form.contact textarea {
  font: inherit;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 0.5rem;
}
form.contact button {
  justify-self: start;
  font: inherit;
  color: var(--ground);
  background: var(--ink);
  border: 0;
  border-radius: 6px;
  padding: 0.5rem 1.25rem;
  cursor: pointer;
}
form.contact .note,
form.contact .status {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}
/* The field people never see and bots fill in. */
form.contact .away {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
