/* ERPisy's legal pages (terms.html, privacy.html, data-deletion.html): the landing page's tokens, one reading column. */
:root {
  color-scheme: light;
  --paper: #f4f6fa;
  --surface: #ffffff;
  --ink: #151e2f;
  --muted: #56607a;
  --line: #dfe4ec;
  --accent: #0b6ad4;
  --accent-text: #0a56ad;
  --accent-soft: #e8f3fe;
  --band: #151e2f;
  --band-ink: #eef2fa;
  --band-muted: #a5afc6;
  --font-display: 'Bricolage Grotesque', 'IBM Plex Sans', system-ui, sans-serif;
  --font-body: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.65 var(--font-body);
  -webkit-text-size-adjust: 100%;
}

a { color: var(--accent-text); }
a:hover { color: var(--accent); }

.bar {
  background: var(--band);
  color: var(--band-ink);
}

.bar__inner, .doc, .foot__inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 16px;
}

.bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  flex-wrap: wrap;
}

.bar a { color: var(--band-ink); text-decoration: none; }
.bar a:hover { color: #ffffff; text-decoration: underline; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 800 1.2rem/1 var(--font-display);
}

.brand img { width: 28px; height: 28px; }

.bar nav { display: flex; gap: 16px; flex-wrap: wrap; font-size: 0.9rem; }
.bar nav a[aria-current="page"] { text-decoration: underline; }

.doc { padding-top: 40px; padding-bottom: 56px; }

.doc h1 {
  font: 800 clamp(1.9rem, 4vw, 2.6rem)/1.15 var(--font-display);
  margin: 0 0 8px;
}

.meta { color: var(--muted); font-size: 0.9rem; margin: 0 0 24px; }

.summary {
  background: var(--accent-soft);
  border: 1px solid #cfe3fb;
  border-radius: 12px;
  padding: 16px 20px;
  margin: 0 0 32px;
}

.summary p { margin: 0 0 8px; }
.summary p:last-child { margin-bottom: 0; }

.toc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 20px;
  margin: 0 0 32px;
}

.toc h2 { font-size: 1rem; margin: 0 0 8px; }
.toc ol { margin: 0; padding-left: 1.4em; columns: 2 260px; column-gap: 32px; }
.toc li { margin: 2px 0; break-inside: avoid; }

section { margin: 0 0 28px; scroll-margin-top: 16px; }

section h2 {
  font: 700 1.25rem/1.3 var(--font-display);
  margin: 0 0 8px;
}

section h3 { font-size: 1rem; margin: 16px 0 4px; }

section p, section li { color: #24304a; }
section ul, section ol { padding-left: 1.3em; }
section li { margin: 4px 0; }

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  font-size: 0.92rem;
  display: block;
  overflow-x: auto;
}

th, td { text-align: left; vertical-align: top; padding: 8px 12px; border-bottom: 1px solid var(--line); }
th { background: #f7f9fc; font-weight: 600; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 20px;
}

.foot {
  background: var(--band);
  color: var(--band-muted);
  font-size: 0.875rem;
}

.foot__inner { padding-top: 24px; padding-bottom: 24px; }
.foot a { color: var(--band-ink); }
.foot nav { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.foot p { margin: 4px 0; }

@media print {
  .bar, .foot, .toc { display: none; }
  body { background: #fff; }
}
