/* ----------------------------------------------------------------
   36 Chambers: shared styling for the legal pages.
   Same tokens as index.html, no dot field (these pages stay light).
   ---------------------------------------------------------------- */

@font-face {
  font-family: "IBM Plex Sans"; font-style: normal; font-weight: 100 700;
  font-display: swap; src: url("fonts/ibm-plex-sans-var.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500;
  font-display: swap; src: url("fonts/ibm-plex-mono-500.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono"; font-style: normal; font-weight: 600;
  font-display: swap; src: url("fonts/ibm-plex-mono-600.woff2") format("woff2");
}

:root {
  --bg:      #f4f4f3;
  --ink:     #0d0d0f;
  --ink-2:   #34343a;
  --muted:   #5d5d66;
  --line:    rgba(13,13,15,0.10);
  --line-2:  rgba(13,13,15,0.18);
  --accent:  #026762;
  --accent-2:#014b47;
  --gut: clamp(20px, 5vw, 80px);
  --display: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --sans:    "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0; min-height: 100svh; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 16.5px; line-height: 1.7; letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
/* film grain: signature texture */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 1;
  opacity: 0.30; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
}
::selection { background: var(--accent); color: #fff; }
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

nav.topbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: clamp(14px, 2.2vh, 22px) var(--gut);
  border-bottom: 1px solid var(--line);
}
.brandmark { display: inline-flex; align-items: center; gap: 11px; white-space: nowrap; text-decoration: none; }
.brandmark .logo { width: 28px; height: 28px; flex: none; display: block; }
.brandmark .wordmark { font-family: var(--display); font-weight: 600; font-size: 16px; letter-spacing: -0.01em; color: var(--ink); }
.nav-back {
  font-family: var(--display); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; color: var(--ink-2);
  padding: 9px 14px; border: 1px solid var(--line-2); border-radius: 100px;
  transition: color .25s ease, border-color .25s ease, background .25s ease;
}
.nav-back:hover { color: #fff; background: var(--accent); border-color: var(--accent); }

main {
  max-width: 760px; margin: 0 auto;
  padding: clamp(48px, 8vh, 96px) var(--gut) clamp(64px, 10vh, 120px);
}
.doc-meta {
  font-family: var(--display); font-weight: 500; font-size: 12px;
  letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted);
  margin: 0 0 14px;
}
h1 {
  font-family: var(--display); font-weight: 600; line-height: 1.2;
  font-size: clamp(1.5rem, 3.4vw, 2.1rem); letter-spacing: 0.01em; text-transform: uppercase;
  margin: 0 0 clamp(24px, 4vh, 40px); text-wrap: balance;
}
h2 {
  font-family: var(--display); font-weight: 600; line-height: 1.25;
  font-size: 1.05rem; letter-spacing: 0.04em; text-transform: uppercase;
  margin: clamp(36px, 5.5vh, 52px) 0 12px; text-wrap: balance;
}
p, li { color: var(--ink-2); text-wrap: pretty; }
p { margin: 0 0 14px; }
ul { margin: 0 0 14px; padding-left: 0; list-style: none; }
li { padding-left: 22px; position: relative; margin-bottom: 8px; }
li::before { content: "✦"; content: "✦" / ""; position: absolute; left: 0; top: 1px; color: var(--accent); font-size: 0.8em; }
li strong, p strong { color: var(--ink); font-weight: 600; }
main a { color: var(--accent-2); text-decoration: none; border-bottom: 1px solid rgba(2,103,98,0.35); transition: color .25s ease, border-color .25s ease; }
main a:hover { color: var(--accent); border-color: var(--accent); }

footer.foot {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  padding: clamp(16px, 2.4vh, 24px) var(--gut); border-top: 1px solid var(--line);
  font-family: var(--display); font-weight: 500; font-size: 11px; letter-spacing: 0.04em; color: var(--muted);
}
footer.foot .foot-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
footer.foot a { color: var(--ink-2); text-decoration: none; transition: color .25s ease; }
footer.foot a:hover { color: var(--accent-2); }
