/* legal.lktec.org - one small stylesheet, no external resources. */
:root {
  color-scheme: light dark;
  --bg: #f6f5f1;
  --surface: #ffffff;
  --text: #1d1f1c;
  --muted: #5b6058;
  --line: #d9d8d0;
  --accent: #2f6b3f;
  --accent-soft: #e3eee4;
  --focus: #1f5fbf;
  --code-bg: #efeee8;
  --measure: 46rem;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #141613;
    --surface: #1b1e1a;
    --text: #e6e7e2;
    --muted: #a3a89f;
    --line: #33382f;
    --accent: #8cc79a;
    --accent-soft: #233127;
    --focus: #8ab4ff;
    --code-bg: #252a23;
  }
}
:root[data-theme="dark"] {
  --bg: #141613;
  --surface: #1b1e1a;
  --text: #e6e7e2;
  --muted: #a3a89f;
  --line: #33382f;
  --accent: #8cc79a;
  --accent-soft: #233127;
  --focus: #8ab4ff;
  --code-bg: #252a23;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 1rem/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow-wrap: anywhere;
}
a { color: var(--accent); text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.skip {
  position: absolute; left: 1rem; top: -4rem;
  background: var(--surface); color: var(--text);
  padding: 0.5rem 0.75rem; border: 1px solid var(--line); border-radius: 0.4rem;
  z-index: 10;
}
.skip:focus { top: 1rem; }

.site-header, main, .site-footer {
  width: 100%; max-width: calc(var(--measure) + 2rem);
  margin: 0 auto; padding: 0 1rem;
}
.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-top: 1.25rem; padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}
.brand { font-weight: 650; letter-spacing: 0.01em; color: var(--text); text-decoration: none; }
.brand span { color: var(--muted); font-weight: 450; }
.lang-switch { display: flex; gap: 0.25rem; margin: 0; padding: 0; list-style: none; font-size: 0.9rem; }
.lang-switch a, .lang-switch [aria-current] {
  display: inline-block; padding: 0.15rem 0.55rem; border-radius: 999px;
  border: 1px solid var(--line); text-decoration: none;
}
.lang-switch [aria-current] { background: var(--accent-soft); color: var(--text); border-color: transparent; font-weight: 600; }

main { padding-top: 2rem; padding-bottom: 3rem; }
h1 { font-size: clamp(1.6rem, 4vw, 2.1rem); line-height: 1.2; margin: 0 0 0.5rem; letter-spacing: -0.01em; }
h2 { font-size: 1.3rem; line-height: 1.3; margin: 2.5rem 0 0.75rem; padding-top: 1rem; border-top: 1px solid var(--line); }
h3 { font-size: 1.05rem; margin: 1.75rem 0 0.5rem; }
p, ul, ol, dl, table { margin: 0 0 1rem; }
li { margin-bottom: 0.35rem; }
.lead { color: var(--muted); font-size: 1.05rem; }
.meta { color: var(--muted); font-size: 0.9rem; }
code { background: var(--code-bg); padding: 0.05rem 0.3rem; border-radius: 0.25rem; font-size: 0.9em; }
address { font-style: normal; }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 0.6rem;
  padding: 1rem 1.25rem; margin: 0 0 1rem;
}
.note { border-left: 4px solid var(--accent); }

.toc { background: var(--surface); border: 1px solid var(--line); border-radius: 0.6rem; padding: 0.75rem 1.25rem; }
.toc ol { margin: 0; padding-left: 1.25rem; }

dl.facts { display: grid; grid-template-columns: minmax(8rem, 12rem) 1fr; gap: 0.35rem 1rem; }
dl.facts dt { font-weight: 600; }
dl.facts dd { margin: 0; }
@media (max-width: 34rem) {
  dl.facts { grid-template-columns: 1fr; }
  dl.facts dd { margin-bottom: 0.5rem; }
}

.table-wrap { overflow-x: auto; margin: 0 0 1rem; }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; background: var(--surface); }
th, td { text-align: left; vertical-align: top; padding: 0.5rem 0.65rem; border: 1px solid var(--line); }
th { background: var(--accent-soft); }

.apps { list-style: none; padding: 0; display: grid; gap: 0.75rem; }
.apps a { font-weight: 600; font-size: 1.1rem; }

.site-footer {
  border-top: 1px solid var(--line);
  padding-top: 1.25rem; padding-bottom: 2rem;
  color: var(--muted); font-size: 0.9rem;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }

/* Open points: visible in review, rejected by scripts/check.py. */
mark.todo { background: #ffe36e; color: #1d1f1c; padding: 0.05rem 0.3rem; border-radius: 0.25rem; font-weight: 600; }
