/* Shared styling for the two public legal pages.
   Palette is the accounting worker's own (acct-worker/src/http.js, TOKENS / DARK_VARS), so the
   documents look like the application they describe rather than like a stock template. */

:root {
  color-scheme: light;
  --bg: #f6f4f1; --surface: #ffffff; --surface-3: #f0ede8;
  --line: #e7e3dc; --line-strong: #d6d1c8;
  --ink: #211f1c; --ink-2: #55534d; --muted: #7c796f;
  --pink: #d4537e; --pink-ink: #a83358; --pink-soft: #fbe9f0;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #171512; --surface: #1f1d19; --surface-3: #2e2a25;
    --line: #353128; --line-strong: #46413a;
    --ink: #ece8e1; --ink-2: #b6b0a6; --muted: #8f897d;
    --pink: #e2688f; --pink-ink: #f0a6bf; --pink-soft: #3b212a;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.page { max-width: 72ch; margin: 0 auto; padding: 3.5rem 1.5rem 6rem; }

header { border-bottom: 2px solid var(--ink); padding-bottom: 1.4rem; margin-bottom: 2.2rem; }

.brand {
  font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--pink-ink); margin: 0 0 .8rem;
}

h1 {
  font-size: clamp(1.9rem, 5vw, 2.6rem); line-height: 1.15; letter-spacing: -.015em;
  margin: 0 0 .6rem; text-wrap: balance;
}

.effective { font-size: .88rem; color: var(--muted); margin: 0; }

h2 {
  font-size: 1.22rem; line-height: 1.3; margin: 2.6rem 0 .6rem;
  padding-top: 1.4rem; border-top: 1px solid var(--line-strong); text-wrap: balance;
}

h3 { font-size: 1rem; margin: 1.6rem 0 .4rem; }

p { margin: 0 0 1rem; }

ul { margin: 0 0 1rem; padding-left: 1.2rem; }
li { margin-bottom: .5rem; }
li::marker { color: var(--pink); }

a { color: var(--pink-ink); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; }

strong { font-weight: 700; }

.callout {
  background: var(--surface); border: 1px solid var(--line-strong); border-left: 3px solid var(--pink);
  border-radius: 6px; padding: 1.1rem 1.25rem; margin: 1.5rem 0;
}
.callout > :last-child { margin-bottom: 0; }

.contact {
  background: var(--surface-3); border: 1px solid var(--line);
  border-radius: 6px; padding: 1.1rem 1.25rem; margin: 1.5rem 0;
}
.contact > :last-child { margin-bottom: 0; }

footer {
  margin-top: 3.5rem; padding-top: 1.3rem; border-top: 2px solid var(--ink);
  font-size: .88rem; color: var(--muted);
}
footer a { margin-right: 1.2rem; }

@media print {
  body { background: #fff; color: #000; font-size: 11pt; }
  .page { max-width: none; padding: 0; }
}
