/* Styles for the static public pages (about, privacy, terms).
   Plain CSS in a separate file on purpose: the site's Content-Security-Policy
   allows stylesheets from 'self' and these pages use no JavaScript at all.

   Accessibility (WCAG 2.1 AA): every text/background pair below is at least
   4.5:1 (body text far higher), links are never indicated by colour alone,
   focus is always visible, text is sized in rem and reflows down to 320px
   without horizontal scrolling, and light/dark follow the visitor's system
   setting. */

:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --surface: #f6f3f0;
  --text: #1f2328;
  --muted: #57534e;
  --link: #9a4513;
  --border: #d6d0ca;
  --focus: #0b57d0;
  --accent: #b4531a;
  --accent-text: #ffffff;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14110f;
    --surface: #1f1b18;
    --text: #ece7e2;
    --muted: #b7aea6;
    --link: #f0a574;
    --border: #3d3631;
    --focus: #8ab4f8;
    --accent: #f0a574;
    --accent-text: #14110f;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    1.0625rem/1.65 system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
}

.skip-link {
  position: absolute;
  left: 0.5rem;
  top: -4rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
  border-radius: 0.375rem;
}

.skip-link:focus {
  top: 0.5rem;
}

a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 0.15em;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 0.125rem;
}

.site-header,
.site-footer {
  border-color: var(--border);
  border-style: solid;
  border-width: 0;
}

.site-header {
  border-bottom-width: 1px;
}

.site-footer {
  border-top-width: 1px;
  margin-top: 3rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

.bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  max-width: 60rem;
  margin: 0 auto;
  padding: 1rem 1.25rem;
}

.brand {
  color: var(--text);
  font-weight: 700;
  font-size: 1.25rem;
  text-decoration: none;
}

.nav ul,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

main {
  display: block;
  max-width: 46rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 0;
}

main.wide {
  max-width: 60rem;
}

h1 {
  margin: 0 0 0.5rem;
  font-size: 2.125rem;
  line-height: 1.2;
}

h2 {
  margin: 2.5rem 0 0.75rem;
  font-size: 1.5rem;
  line-height: 1.3;
}

h3 {
  margin: 1.75rem 0 0.5rem;
  font-size: 1.1875rem;
  line-height: 1.35;
}

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

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

li {
  margin-bottom: 0.4rem;
}

.lede {
  font-size: 1.25rem;
  color: var(--muted);
}

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

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0 0;
}

.button {
  display: inline-block;
  padding: 0.7rem 1.25rem;
  border: 2px solid var(--accent);
  border-radius: 0.5rem;
  font-weight: 600;
  text-decoration: none;
}

.button.primary {
  background: var(--accent);
  color: var(--accent-text);
}

.button.secondary {
  background: transparent;
  color: var(--link);
}

.callout {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left-width: 0.375rem;
  border-radius: 0.5rem;
}

.callout > :last-child {
  margin-bottom: 0;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

caption {
  padding-bottom: 0.5rem;
  text-align: left;
  font-weight: 600;
}

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

thead th {
  background: var(--surface);
}

.steps {
  counter-reset: step;
  padding-left: 0;
  list-style: none;
}

.steps li {
  position: relative;
  margin-bottom: 1rem;
  padding-left: 2.75rem;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.05rem;
  width: 2rem;
  height: 2rem;
  border: 2px solid var(--accent);
  border-radius: 50%;
  text-align: center;
  line-height: 1.75rem;
  font-weight: 700;
  color: var(--link);
}

@media print {
  .skip-link,
  .nav,
  .actions {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
  }

  a {
    color: #000;
  }
}
