/* HYVOI legal pages.
   One stylesheet, no build step, no external requests. These pages are read by
   app-store reviewers, information-governance officers and people who work in
   the places HYVOI is installed, sometimes on a phone in a corridor. They load
   in one request and read at any width. */

:root {
  --brand: #11653c;
  --brand-deep: #072e1b;
  --brand-pale: #ecf8f1;
  --brand-line: #d5efe0;
  --ink: #25231f;
  --ink-muted: #57534b;
  --line: #dcd9d1;
  --surface: #fbfaf7;
  --paper: #ffffff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

.wrap { max-width: 46rem; margin: 0 auto; padding: 2rem 1.25rem 5rem; }

header.mast {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 1.25rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}

.mark { width: 40px; height: 40px; flex: none; }

.wordmark { font-size: 1.4rem; font-weight: 700; letter-spacing: 0.08em; color: var(--brand-deep); line-height: 1.1; }
.publisher { font-size: 0.78rem; color: var(--ink-muted); letter-spacing: 0.02em; }

h1 { font-size: 2rem; line-height: 1.2; color: var(--brand-deep); margin: 0 0 0.4rem; }
h2 { font-size: 1.25rem; color: var(--brand-deep); margin: 2.5rem 0 0.6rem; }
h3 { font-size: 1.02rem; margin: 1.6rem 0 0.4rem; }

.updated { color: var(--ink-muted); font-size: 0.9rem; margin: 0 0 2rem; }

p, li { color: var(--ink); }
li { margin-bottom: 0.35rem; }
a { color: var(--brand); }
strong { font-weight: 650; }

table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 0.95rem; }
th, td { text-align: left; padding: 0.6rem 0.7rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--ink-muted); font-weight: 650; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.04em; }

.note {
  background: var(--brand-pale);
  border: 1px solid var(--brand-line);
  border-radius: 10px;
  padding: 1rem 1.15rem;
  margin: 1.5rem 0;
}
.note p:first-child { margin-top: 0; }
.note p:last-child { margin-bottom: 0; }

footer {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--ink-muted);
  font-size: 0.88rem;
}
footer .tagline { color: var(--brand); font-style: italic; }

/* The viewer's own theme. A policy read at night should not be a torch. */
@media (prefers-color-scheme: dark) {
  :root {
    --brand: #52b784;
    --brand-deep: #9bdcb9;
    --brand-pale: #0a3f25;
    --brand-line: #0d5230;
    --ink: #edeae4;
    --ink-muted: #b0aba2;
    --line: #3a3731;
    --surface: #131211;
    --paper: #1b1a17;
  }
}
