/* The white-label programme documents, as pages that read well on a phone and
   print to clean A4. Deliberately one plain stylesheet with no build step: a
   legal document should still open in ten years, from a file, with no tooling. */

:root {
  --navy: #0b1e46;
  --blue: #1d4ed8;
  --ink: #1f2937;
  --muted: #5b6577;
  --line: #d9dee8;
  --soft: #f4f7fc;
  --red: #b42318;
}

* { box-sizing: border-box; }

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

.sheet {
  max-width: 900px;
  margin: 0 auto;
  background: #fff;
  padding: 48px 56px 72px;
  box-shadow: 0 1px 3px rgba(11, 30, 70, 0.08);
}

/* Cover */
.cover { border-bottom: 3px solid var(--blue); padding-bottom: 32px; margin-bottom: 8px; }
.eyebrow {
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.code-chip {
  display: inline-block;
  margin: 18px 0 14px;
  padding: 6px 14px;
  border-radius: 6px;
  background: var(--blue);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
}
h1 { color: var(--navy); font-size: 40px; line-height: 1.12; margin: 0 0 14px; }
.lede { color: var(--muted); font-size: 17px; max-width: 46em; margin: 0 0 26px; }

h2 {
  color: var(--navy);
  font-size: 21px;
  margin: 38px 0 6px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
h3 { color: var(--navy); font-size: 16px; margin: 24px 0 4px; }

/* Clauses: the number is the anchor people quote, so it stays in the margin. */
.c { display: grid; grid-template-columns: 52px 1fr; gap: 0 12px; margin: 10px 0; }
.c > .n { color: var(--blue); font-weight: 700; font-size: 14px; padding-top: 2px; }
.c ol, .c ul { margin: 8px 0 0; padding-left: 22px; }
.c li { margin: 5px 0; }
ol.alpha { list-style: lower-alpha; }

table { width: 100%; border-collapse: collapse; margin: 14px 0 18px; font-size: 14px; }
th {
  background: var(--navy);
  color: #fff;
  text-align: left;
  font-weight: 600;
  padding: 10px 12px;
}
td { border-bottom: 1px solid var(--line); padding: 10px 12px; vertical-align: top; }
tbody tr:nth-child(even) td { background: var(--soft); }
td.k { width: 34%; color: var(--navy); font-weight: 600; }

.note {
  border-left: 4px solid var(--blue);
  background: var(--soft);
  padding: 14px 18px;
  margin: 18px 0;
  font-size: 15px;
}
.changed { border-left-color: #b45309; background: #fffbeb; }
.confidential { color: var(--red); font-weight: 700; letter-spacing: 0.1em; font-size: 12px; }
.fill { display: inline-block; min-width: 180px; border-bottom: 1px solid var(--muted); }

.toc { columns: 2; column-gap: 40px; font-size: 14px; }
.toc a { color: var(--ink); text-decoration: none; display: block; padding: 4px 0; border-bottom: 1px dotted var(--line); }
.toc a:hover { color: var(--blue); }

.foot {
  margin-top: 48px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
.foot strong { color: var(--navy); }

@media (max-width: 720px) {
  .sheet { padding: 28px 20px 48px; }
  h1 { font-size: 30px; }
  .toc { columns: 1; }
  .c { grid-template-columns: 42px 1fr; gap: 0 8px; }
  table, thead, tbody, th, td, tr { display: block; }
  thead { display: none; }
  td { border: none; border-bottom: 1px solid var(--line); }
  td.k { width: auto; padding-bottom: 0; border: none; }
}

@media print {
  body { background: #fff; }
  .sheet { box-shadow: none; max-width: none; padding: 0; }
  h2 { break-after: avoid; }
  .c, table, .note { break-inside: avoid; }
  a { color: inherit; text-decoration: none; }
}
