/* Noot privacy policy. System fonts only and no external requests: a privacy page that loads
   third-party fonts or scripts would contradict itself. Colors follow the app's neutrals, with
   its blue accent gradient (gradient_1..3) for links and highlights. */

:root {
  --bg: #ffffff;
  --surface: #f5f5f6;
  --surface-2: #ececee;
  --border: #e2e2e5;
  --text: #121212;
  --text-soft: #555559;
  --text-faint: #808080;
  --accent: #0078d4;
  --accent-soft: rgba(42, 168, 242, 0.12);
  --grad: linear-gradient(135deg, #64d2ff 0%, #2aa8f2 50%, #0078d4 100%);
  --good: #029246;
  --good-soft: rgba(2, 146, 70, 0.1);
  --todo: #b45309;
  --todo-soft: rgba(255, 179, 0, 0.18);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.05);
  --radius: 16px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161616;
    --surface: #1f1f1f;
    --surface-2: #2a2a2a;
    --border: #333333;
    --text: #f2f2f2;
    --text-soft: #b5b5b8;
    --text-faint: #8a8a8d;
    --accent: #64d2ff;
    --accent-soft: rgba(100, 210, 255, 0.12);
    --good: #34d399;
    --good-soft: rgba(52, 211, 153, 0.12);
    --todo: #fbbf24;
    --todo-soft: rgba(251, 191, 36, 0.14);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
    color-scheme: dark;
  }
}

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

html { scroll-behavior: smooth; scroll-padding-top: 24px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.7 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
code { font: 0.88em ui-monospace, SFMono-Regular, Consolas, monospace; background: var(--surface-2); padding: 0.1em 0.4em; border-radius: 6px; }
strong { font-weight: 650; }

/* ── Hero ── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 16px 56px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.hero::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto;
  height: 120%;
  background: radial-gradient(ellipse at center, var(--accent-soft), transparent 65%);
  pointer-events: none;
}
.hero > * { position: relative; }
.mark {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  box-shadow: var(--shadow), 0 0 0 1px var(--border);
}
.eyebrow {
  display: inline-block;
  margin: 24px 0 8px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.hero h1 {
  margin: 0;
  font-size: clamp(32px, 6vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.hero h1 span {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .meta { margin: 16px auto 0; max-width: 560px; color: var(--text-soft); }
.hero .dates { margin-top: 12px; font-size: 14px; color: var(--text-faint); }

/* ── Layout ── */
.layout {
  max-width: 1120px;
  margin: 0 auto;
  padding: 48px 16px 80px;
  display: grid;
  gap: 48px;
}
@media (min-width: 960px) {
  .layout { grid-template-columns: 240px minmax(0, 1fr); padding-inline: 32px; }
}

/* ── Table of contents ── */
.toc { font-size: 14px; }
.toc h2 { margin: 0 0 12px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-faint); }
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a {
  display: flex;
  gap: 10px;
  padding: 6px 10px;
  border-radius: 8px;
  color: var(--text-soft);
  text-decoration: none;
}
.toc a::before { content: counter(toc); min-width: 1.4em; color: var(--text-faint); font-variant-numeric: tabular-nums; }
.toc a:hover { background: var(--surface); color: var(--text); }
@media (min-width: 960px) {
  .toc { position: sticky; top: 24px; align-self: start; max-height: calc(100vh - 48px); overflow-y: auto; }
}
@media (max-width: 959px) {
  .toc { padding: 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
  .toc ol { columns: 2 200px; column-gap: 16px; }
}

/* ── Content ── */
main { min-width: 0; }
.highlights {
  display: grid;
  gap: 12px;
  margin-bottom: 56px;
}
@media (min-width: 480px) { .highlights { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.card {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.card .icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 12px;
  border-radius: 10px;
  background: var(--grad);
  color: #fff;
}
.card .icon svg { width: 20px; height: 20px; }
.card h3 { margin: 0 0 4px; font-size: 16px; line-height: 1.35; }
.card p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--text-soft); }

section.policy { counter-increment: sec; padding-top: 8px; margin-bottom: 48px; }
main { counter-reset: sec; }
section.policy > h2 {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 16px;
  font-size: 24px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
section.policy > h2::before {
  content: counter(sec);
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  transform: translateY(-3px);
}
section.policy h3 { margin: 28px 0 8px; font-size: 17px; }
section.policy p, section.policy li { color: var(--text-soft); }
section.policy p strong, section.policy li strong { color: var(--text); }
section.policy ul { padding-inline-start: 22px; }
section.policy li { margin: 6px 0; }
section.policy li::marker { color: var(--text-faint); }

.callout {
  margin: 20px 0;
  padding: 16px 20px;
  border-radius: 12px;
  border-inline-start: 4px solid var(--good);
  background: var(--good-soft);
}
.callout p { margin: 0; color: var(--text) !important; }
.callout p + p { margin-top: 8px; }

.table-wrap { overflow-x: auto; margin: 16px 0; border: 1px solid var(--border); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 12px 14px; text-align: start; vertical-align: top; border-bottom: 1px solid var(--border); }
th { background: var(--surface); font-weight: 600; color: var(--text); white-space: nowrap; }
td { color: var(--text-soft); }
tr:last-child td { border-bottom: 0; }

details {
  margin: 16px 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}
summary { cursor: pointer; padding: 14px 18px; font-weight: 600; color: var(--text); }
details[open] summary { border-bottom: 1px solid var(--border); }
details > div { padding: 4px 18px 14px; font-size: 14px; }
details code { word-break: break-all; }

/* An unfilled detail the owner still has to supply. Loud on purpose, so none ships by accident. */
.todo {
  padding: 0.05em 0.35em;
  border-radius: 4px;
  background: var(--todo-soft);
  color: var(--todo);
  font-weight: 600;
  outline: 1px dashed var(--todo);
}

.contact-card {
  display: grid;
  gap: 4px;
  padding: 20px 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}
.contact-card p { margin: 0; }

footer {
  border-top: 1px solid var(--border);
  padding: 32px 16px;
  text-align: center;
  font-size: 14px;
  color: var(--text-faint);
}
footer p { margin: 4px 0; }

@media (max-width: 480px) {
  .hero { padding-top: 56px; }
  section.policy > h2 { font-size: 21px; }
}

@media print {
  .hero::before, .toc, .highlights { display: none; }
  .layout { display: block; padding: 0; }
  body { font-size: 11pt; }
  a { color: inherit; }
  details > div { display: block; }
}
