/* Vonote legal pages. One stylesheet, no web fonts, no scripts. Light and dark follow the system setting. */
:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --surface: #f5f6f8;
  --text: #1b1d21;
  --muted: #5a606b;
  --border: #dfe2e7;
  --accent: #2f5bd3;
  --accent-text: #ffffff;
  --note-bg: #fff6dc;
  --note-border: #e8c766;
  --measure: 44rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121418;
    --surface: #1c1f25;
    --text: #e8eaee;
    --muted: #a3a9b4;
    --border: #2e333c;
    --accent: #8fb0ff;
    --accent-text: #0d1424;
    --note-bg: #2e2714;
    --note-border: #6f5b22;
  }
}

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

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

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

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

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

.skip-link {
  position: absolute;
  left: -999px;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  background: var(--accent);
  color: var(--accent-text);
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
}

.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;
}

.wrap {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 1rem;
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

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

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.9375rem;
}

.site-nav a[aria-current="page"] {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

main {
  padding-top: 1.5rem;
}

h1 {
  font-size: 1.75rem;
  line-height: 1.25;
  margin: 0 0 0.5rem;
}

h2 {
  font-size: 1.25rem;
  line-height: 1.3;
  margin: 2.25rem 0 0.5rem;
  padding-top: 0.25rem;
}

h3 {
  font-size: 1.0625rem;
  margin: 1.5rem 0 0.25rem;
}

.meta {
  color: var(--muted);
  margin: 0 0 1.25rem;
}

.note {
  background: var(--note-bg);
  border: 1px solid var(--note-border);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  margin: 1rem 0;
}

.summary {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem 0.75rem 2.25rem;
  margin: 1rem 0;
}

.toc {
  background: var(--surface);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  margin: 1.25rem 0;
}

.toc ol {
  margin: 0.25rem 0 0;
  padding-left: 1.25rem;
}

.placeholder {
  background: var(--note-bg);
  border: 1px dashed var(--note-border);
  padding: 0 0.25rem;
  font-weight: 600;
}

.table-scroll {
  overflow-x: auto;
  margin: 1rem 0;
}

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

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

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

ol.steps > li,
ul > li {
  margin: 0.25rem 0;
}

.path {
  font-weight: 600;
}

.lang-list {
  columns: 2;
  padding-left: 1.25rem;
}

@media (max-width: 30rem) {
  h1 {
    font-size: 1.5rem;
  }
}
