/* Styles for the four legal pages. Same palette and type as ../index.html:
   Big Shoulders Display for headings, IBM Plex Sans for text, IBM Plex Mono
   for labels. Mobile first; no scripts. */
:root {
  --bg: #0A0E14;
  --panel: #121A26;
  --panel-2: #161F2E;
  --line: #1E293B;
  --line-2: #26364A;
  --text: #E8EEF6;
  --body: #C6D3E2;
  --mute: #93A3B8;
  --faint: #7588A3;
  --cyan: #34DCEF;
  --cyan-2: #26CDB8;
  --amber: #F5B544;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}
a { color: var(--cyan); text-decoration: none; }
a:hover { color: var(--cyan-2); text-decoration: underline; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.wrap { max-width: 760px; margin: 0 auto; padding: 0 clamp(16px, 5vw, 32px); }

/* The draft banner stays at the top of every page until the documents are approved. */
.draft {
  background: rgba(245, 181, 68, 0.12);
  border-bottom: 1px solid rgba(245, 181, 68, 0.45);
  color: var(--text);
  padding: 12px clamp(16px, 5vw, 32px);
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}
.draft strong { color: var(--amber); font-weight: 700; }

header.site {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  padding: 16px clamp(16px, 5vw, 48px);
  border-bottom: 1px solid var(--line);
}
header.site .brand { display: flex; align-items: center; gap: 10px; color: var(--text); }
header.site .brand:hover { text-decoration: none; color: var(--text); }
header.site .brand span {
  font-family: 'Big Shoulders Display', sans-serif; font-weight: 700; font-size: 20px; letter-spacing: 0.06em;
}
header.site .back { font-size: 14px; font-weight: 500; color: var(--mute); }

/* Links between the four documents. */
.docnav { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 0; }
.docnav a {
  padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 8px;
  font-size: 13.5px; font-weight: 600; color: var(--mute); background: var(--panel);
}
.docnav a:hover { color: var(--text); text-decoration: none; border-color: var(--cyan); }
.docnav a[aria-current="page"] { color: #0A0E14; background: var(--cyan); border-color: var(--cyan); }

header.doc { padding: 36px 0 8px; }
h1 {
  font-family: 'Big Shoulders Display', sans-serif; font-weight: 800; color: var(--text);
  font-size: clamp(34px, 8vw, 52px); line-height: 1.06; margin: 0 0 14px;
}
.version { margin: 0 0 8px; font-family: 'IBM Plex Mono', monospace; font-size: 13px; color: var(--mute); }
.version strong { font-weight: 600; }
.reviewnote { margin: 0; font-size: 13.5px; color: var(--amber); }
.reviewnote em { font-style: normal; }

article.doc { padding-bottom: 56px; }
article.doc p, article.doc li { overflow-wrap: break-word; }
h2 {
  font-family: 'Big Shoulders Display', sans-serif; font-weight: 800; color: var(--text);
  font-size: clamp(26px, 5.5vw, 34px); line-height: 1.12; margin: 1.8em 0 0.5em;
  padding-top: 1.1em; border-top: 1px solid var(--line); scroll-margin-top: 16px;
}
h2:first-child { border-top: 0; padding-top: 0; }
h3 { font-size: 18px; font-weight: 600; color: var(--text); margin: 1.6em 0 0.3em; scroll-margin-top: 16px; }
p { margin: 0 0 1em; }
strong { color: var(--text); font-weight: 600; }
ul, ol { margin: 0 0 1.2em; padding-left: 1.5em; }
li { margin: 0 0 0.55em; }
li::marker { color: var(--cyan); }
li > p { margin-bottom: 0.6em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }

blockquote {
  margin: 0.6em 0 1em; padding: 12px 16px;
  border-left: 3px solid var(--cyan); background: var(--panel); border-radius: 0 10px 10px 0;
  color: var(--text);
}
blockquote p { margin: 0; }

/* Placeholders the operator still has to fill in. */
mark.ph {
  background: rgba(245, 181, 68, 0.16); color: var(--amber);
  font-family: 'IBM Plex Mono', monospace; font-size: 0.86em; font-weight: 500;
  padding: 1px 6px; border-radius: 4px;
}

details.toc {
  margin: 20px 0 28px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 4px 16px;
}
details.toc summary {
  cursor: pointer; padding: 12px 0; font-family: 'IBM Plex Mono', monospace; font-size: 12px;
  font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cyan);
}
details.toc ol { margin: 0 0 12px; padding-left: 1.6em; }
details.toc li { margin: 0 0 0.3em; font-size: 14.5px; }
details.toc a { color: var(--body); }
details.toc a:hover { color: var(--cyan); }

.tablewrap { margin: 0.4em 0 1.4em; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--panel); }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th {
  text-align: left; padding: 10px 14px; font-family: 'IBM Plex Mono', monospace; font-size: 11.5px;
  font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mute);
  border-bottom: 1px solid var(--line-2);
}
td { padding: 11px 14px; vertical-align: top; border-bottom: 1px solid var(--line); overflow-wrap: break-word; }
tr:last-child td { border-bottom: 0; }

/* Narrow screens: each row becomes a small card, so the page never scrolls sideways. */
@media (max-width: 640px) {
  table, tbody, tr, td { display: block; width: 100%; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  tr { padding: 10px 0; border-bottom: 1px solid var(--line-2); }
  tr:last-child { border-bottom: 0; }
  td { border: 0; padding: 4px 14px; }
  td::before {
    content: attr(data-label); display: block; font-family: 'IBM Plex Mono', monospace; font-size: 11px;
    font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint);
  }
}

footer.site { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--faint); font-size: 13.5px; }
footer.site p { margin: 0 0 8px; }
footer.site a { color: var(--mute); }
footer.site a:hover { color: var(--cyan); }
footer.site .links { line-height: 2; }
