/* The privacy policy and the terms, in the colors of the landing page
   (landing/index.html, which follows internal/gui/theme/palette.go). */
:root {
  --primary: #2f6b8a;
  --text: #1c2a33;
  --text-muted: #4d5f6b;
  --bg: #ffffff;
  --bg-alt: #f4f7f9;
  --border: #d5dde3;
}

@media (prefers-color-scheme: dark) {
  :root {
    --primary: #7fb3cf;
    --text: #e3e9ed;
    --text-muted: #a8b6c1;
    --bg: #1b1f23;
    --bg-alt: #23292e;
    --border: #3a444c;
  }
}

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}

header .home { font-weight: 800; font-size: 1.25rem; color: var(--text); }

main {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
}

article { padding-top: 2rem; }
article + article { border-top: 1px solid var(--border); margin-top: 3rem; }

h1 { font-size: 2rem; letter-spacing: -0.02em; margin: 0 0 0.25rem; }
h2 { font-size: 1.2rem; margin: 2rem 0 0.5rem; }
p, ul { margin: 0 0 1rem; }
ul { padding-left: 1.25rem; }
li { margin-bottom: 0.4rem; }
code { font-size: 0.9em; background: var(--bg-alt); padding: 0.1em 0.3em; border-radius: 4px; overflow-wrap: anywhere; }

.meta { color: var(--text-muted); font-size: 0.9rem; }

footer {
  text-align: center;
  padding: 2rem 1.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}
footer a { color: var(--text-muted); }
footer a:hover { color: var(--primary); }
