/* Shared shell for the legal documents. Same palette and type as the landing page, but
   set for long-form reading: one narrow column, generous leading, no ornament. */

:root {
  --cream:      #F5EFE2;
  --navy:       #15212E;
  --navy-soft:  #1E2D3F;
  --ink:        #1C2530;
  --ink-muted:  #5A6470;   /* 5.25:1 on cream */
  --ink-subtle: #646E7B;   /* 4.52:1 on cream */
  --blue:       #3D7AB3;
  --blue-text:  #31658F;   /* 5.41:1 on cream: links and focus rings in light bands */
  --yellow:     #E3B84C;
  --paper:      #F8FAF7;
  --on-navy:        #ECF1F5;
  --on-navy-muted:  #AEB8C4;
  --on-navy-subtle: #8B98A8;   /* 5.55:1 on navy */
  --gutter: clamp(20px, 5vw, 40px);
}

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  font-size: 16.5px;
  line-height: 1.78;
  -webkit-font-smoothing: antialiased;
}

.wrap { width: 100%; max-width: 760px; margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- masthead ---------- */
.masthead {
  background: var(--navy);
  color: var(--on-navy);
  padding-block: 34px 46px;
}
.masthead .brandline {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  border-radius: 8px;
}
.masthead .brandline:focus-visible { outline: 2px solid var(--yellow); outline-offset: 4px; }
.masthead .wordmark {
  font-family: 'Fraunces', ui-serif, Georgia, serif;
  font-size: 23px;
  letter-spacing: -0.03em;
  color: var(--on-navy);
}
.masthead h1 {
  font-family: 'Fraunces', ui-serif, Georgia, serif;
  font-weight: 400;
  font-size: clamp(32px, 5vw, 44px);
  letter-spacing: -0.028em;
  line-height: 1.1;
  margin: 30px 0 0;
  color: var(--paper);
}
.masthead .meta {
  margin-top: 16px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--on-navy-subtle);
  line-height: 2;
}
.masthead .meta b { color: var(--on-navy-muted); font-weight: 500; }

/* A visible marker for the fields that are still unset. Better an honest gap on the page
   than a confident-looking date that is wrong. */
.todo {
  color: var(--yellow);
  border-bottom: 1px dashed rgba(227,184,76,.5);
}

/* ---------- document ---------- */
article { padding-block: 54px 20px; }

article h2 {
  font-family: 'Fraunces', ui-serif, Georgia, serif;
  font-weight: 400;
  font-size: 25px;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 46px 0 14px;
  padding-top: 22px;
  border-top: 1px solid rgba(28,37,48,.09);
}
article h2:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
article h2 .num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--ink-subtle);
  margin-right: 12px;
  vertical-align: 3px;
}

article p  { margin: 0 0 16px; }
article ul { margin: 0 0 18px; padding-left: 20px; }
article li { margin-bottom: 7px; }
article strong { font-weight: 600; }
/* Yellow is the focus colour on navy, where it clears 8.7:1. On cream it reads 1.6:1 and
   a keyboard user simply loses the ring, so light bands focus in blue instead. */
article a { color: var(--blue-text); text-decoration: none; border-bottom: 1px solid rgba(49,101,143,.34); }
article a:hover { border-bottom-color: var(--blue-text); }
article a:focus-visible { outline: 2px solid var(--blue-text); outline-offset: 3px; }

.callout {
  background: var(--paper);
  border-left: 3px solid var(--blue-text);
  border-radius: 0 12px 12px 0;
  padding: 16px 20px;
  margin: 0 0 22px;
  font-size: 15.5px;
  color: var(--ink-muted);
}

.caps {
  font-size: 14.5px;
  color: var(--ink-muted);
  background: var(--paper);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 18px;
}

/* ---------- footer ---------- */
footer {
  background: var(--navy-soft);
  color: var(--on-navy-muted);
  padding-block: 34px;
  margin-top: 60px;
  font-size: 14px;
}
.foot {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  align-items: center;
  justify-content: space-between;
}
.foot nav { display: flex; flex-wrap: wrap; gap: 22px; }
.foot a {
  color: var(--on-navy-muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .28s ease, border-color .28s ease;
}
.foot a:hover { color: var(--paper); border-bottom-color: rgba(255,255,255,.3); }
.foot a:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }
.foot-legal {
  color: var(--on-navy-subtle);
  font-size: 13px;
  font-family: 'JetBrains Mono', monospace;
}
