/* The legal website's only stylesheet. tools/build-legal-site.mjs copies it to legal/dist.
   System fonts only (no font licences), no images, no JavaScript. Colors match the app. */

:root {
  color-scheme: light dark;
  --background: #f4f5f4;
  --surface: #ffffff;
  --text: #0f1412;
  --muted: #56615c;
  --line: #e2e6e4;
  --link: #135c40;
  --accent: #1d7a57;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #0a0d0c;
    --surface: #141917;
    --text: #edf2ef;
    --muted: #9ba7a1;
    --line: #252d29;
    --link: #7ee6b6;
    --accent: #45d99a;
  }
}

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

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

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family:
    system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    'Helvetica Neue',
    Arial,
    sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

.site-header,
main,
.site-footer {
  max-width: 44rem;
  margin: 0 auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.site-header {
  padding-top: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.site-name {
  display: inline-block;
  padding: 0.25rem 0;
  color: var(--text);
  font-size: 1.125rem;
  font-weight: 700;
  text-decoration: none;
}

main {
  padding-top: 1.5rem;
  padding-bottom: 3rem;
}

h1,
h2,
h3,
h4 {
  line-height: 1.25;
  scroll-margin-top: 1rem;
}

h1 {
  margin: 0.5rem 0 1rem;
  font-size: 2rem;
  letter-spacing: -0.02em;
}

h2 {
  margin: 2.5rem 0 0.75rem;
  font-size: 1.375rem;
}

h3,
h4 {
  margin: 1.75rem 0 0.5rem;
  font-size: 1.125rem;
}

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

a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

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

li + li {
  margin-top: 0.4rem;
}

blockquote {
  margin: 1.5rem 0;
  padding: 0.75rem 1rem;
  border-left: 4px solid var(--accent);
  background: var(--surface);
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
}

hr {
  margin: 2rem 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.table-wrap {
  margin: 1.5rem 0;
  overflow-x: auto;
}

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

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

.site-footer {
  padding-top: 1.5rem;
  padding-bottom: 2.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9375rem;
}

.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.25rem;
  margin: 0 0 0.75rem;
  padding: 0;
  list-style: none;
}

.site-footer li + li {
  margin-top: 0;
}

.site-footer a {
  display: inline-block;
  padding: 0.5rem 0;
}

[aria-current='page'] {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}
