/* Kaeya legal pages. System fonts on purpose: a privacy policy that loads a
   third-party font hands every reader's IP to that host before they have read
   a word of it. Dark by default, like the app; light when the reader asks. */

:root {
  --bg: #0b0b0f;
  --surface: #16161d;
  --border: #2a2a38;
  --text: #f4f4f8;
  --text-2: #a1a1b5;
  --brand: #c33af5;
  --link: #d68cf9;
  --fill-bg: #3b2a00;
  --fill-text: #ffd27a;
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #ffffff;
    --surface: #f6f5f9;
    --border: #e3e1ea;
    --text: #15151c;
    --text-2: #55556a;
    --brand: #9b1fd1;
    --link: #8a17bd;
    --fill-bg: #fff1c7;
    --fill-text: #6b4a00;
    color-scheme: light;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Noto Sans", "Helvetica Neue", Arial, sans-serif;
}

.page {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.2px;
}
.brand img { width: 32px; height: 32px; border-radius: 8px; }

nav.top {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin: 16px 0 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
nav.top a { color: var(--text-2); text-decoration: none; }
nav.top a[aria-current="page"] { color: var(--text); font-weight: 600; }

h1 { font-size: 30px; line-height: 1.2; margin: 0 0 8px; }
h2 { font-size: 20px; line-height: 1.3; margin: 36px 0 8px; }
h3 { font-size: 17px; margin: 24px 0 6px; }
p, li { overflow-wrap: anywhere; }
ul, ol { padding-left: 22px; }
li + li { margin-top: 6px; }

.lede { color: var(--text-2); margin: 0 0 8px; }

a { color: var(--link); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 18px;
  margin: 16px 0;
}
.card > :first-child { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }

/* An unfilled slot. scripts/check-legal-pages.js refuses to deploy while any
   {{FILL …}} remains, so this style should never reach a reader. */
.fill {
  background: var(--fill-bg);
  color: var(--fill-text);
  border-radius: 6px;
  padding: 1px 6px;
  font-weight: 600;
}
div.fill { display: block; padding: 16px 18px; margin: 16px 0; font-weight: 500; }

/* A drafting note for the owner and their lawyer. Blocked from deploy by the
   same gate as {{FILL}}: every one has to be resolved and deleted. */
.review {
  display: block;
  background: var(--review-bg);
  color: var(--review-text);
  border-left: 3px solid var(--review-edge);
  border-radius: 6px;
  padding: 10px 14px;
  margin: 12px 0;
  font-size: 14px;
}

:root { --review-bg: #0f2a3a; --review-text: #9fdcf5; --review-edge: #22d3ee; }
@media (prefers-color-scheme: light) {
  :root { --review-bg: #e6f7fd; --review-text: #0b4a63; --review-edge: #0891b2; }
}

.meta { color: var(--text-2); font-size: 14px; margin: 0 0 20px; }

.toc { font-size: 15px; }
.toc ol { margin: 8px 0 0; }
.toc li + li { margin-top: 2px; }

footer {
  margin-top: 48px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  color: var(--text-2);
  font-size: 14px;
}
footer a { color: var(--text-2); }
