/* The public static pages (terms, DPA, security, privacy, 404): the app's light
   style, the oil-blue primary, Inter for text and Jost for headings. No script
   is needed to read them; legal.js only wires the "Save as PDF" button. */
:root {
  --ink: #1c1917;
  --muted: #57534e;
  --bg: #fafaf9;
  --card: #ffffff;
  --line: #e7e5e4;
  --primary: #005981;
  --primary-soft: #e8f4f8;
  --amber-soft: #fdf6e3;
  --amber-line: #e6c770;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: Inter, system-ui, -apple-system, sans-serif; line-height: 1.65; }
a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; border-radius: 4px; }

.site-head { border-bottom: 1px solid var(--line); background: var(--card); }
.site-head .wrap { max-width: 46rem; margin: 0 auto; padding: .75rem 1rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .5rem; color: var(--ink); text-decoration: none; font-family: Jost, Inter, sans-serif; font-weight: 700; font-size: 1.15rem; }
.brand img { width: 28px; height: 28px; }
.head-links { display: flex; align-items: center; gap: 1rem; font-size: .95rem; }
.head-links a { text-decoration: none; font-weight: 500; }
.head-links a.cta { background: var(--primary); color: #fff; padding: .4rem .85rem; border-radius: 8px; }
.head-links a.cta:hover { background: #00466a; }

main { max-width: 46rem; margin: 0 auto; padding: 2rem 1rem 3rem; }
h1 { font-family: Jost, Inter, sans-serif; font-size: 2rem; line-height: 1.2; margin: .5rem 0 1rem; }
h2 { font-family: Jost, Inter, sans-serif; font-size: 1.3rem; margin: 2rem 0 .5rem; padding-top: 1rem; border-top: 1px solid var(--line); }
h3 { font-size: 1.05rem; margin: 1.5rem 0 .4rem; }
p, li { font-size: 1rem; }
ol, ul { padding-left: 1.4rem; }
li { margin: .35rem 0; }
code { font-size: .9em; background: #f5f5f4; padding: 0 .25rem; border-radius: 3px; }
.table-wrap { overflow-x: auto; margin: 1rem 0; }
table { border-collapse: collapse; width: 100%; font-size: .9rem; }
th, td { text-align: left; vertical-align: top; padding: .5rem; border-bottom: 1px solid var(--line); }
th { font-weight: 600; }

.doc-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .5rem; }
.updated { color: var(--muted); font-size: .9rem; margin: 0; }
.pdf { font: inherit; font-size: .9rem; color: var(--primary); background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: .35rem .8rem; cursor: pointer; }
.pdf:hover { border-color: var(--primary); }
.draft { background: var(--amber-soft); border: 1px solid var(--amber-line); border-radius: 8px; padding: .6rem .9rem; margin: 1rem 0; font-size: .95rem; }
.note { background: var(--primary-soft); border-left: 4px solid var(--primary); border-radius: 0 8px 8px 0; padding: .8rem 1rem; margin: 1rem 0; }
.toc { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin: 1rem 0 0; padding: .75rem 1rem; background: var(--card); border: 1px solid var(--line); border-radius: 8px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 1rem 1.25rem; margin: 1rem 0; }

.site-foot { border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.site-foot .wrap { max-width: 46rem; margin: 0 auto; padding: 1.5rem 1rem 2.5rem; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; margin-bottom: .75rem; }
.site-foot nav a { color: var(--ink); padding: .25rem 0; }
.site-foot p { margin: .25rem 0; font-size: .9rem; }

@media (max-width: 480px) {
  .head-links .signin { display: none; }
  h1 { font-size: 1.7rem; }
}

@media print {
  .site-head, .site-foot, .pdf { display: none; }
  body { background: #fff; }
  main { max-width: none; padding: 0; }
  a { color: inherit; }
  h2 { break-after: avoid; }
}
