/* chaFX legal pages: the site's tokens, bar and footer (from mockups/site-v3.html) with a reading column. */
:root { --night: #0d0b09; --ink: #f2f0ea; --ink-2: #a9a397; --sky: #d4a24c; --line: rgba(242,240,234,.12); --tint: #f2b45a;
        --gutter: clamp(16px, 3.5vw, 40px); --max: 1400px; --edge: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); }
* { box-sizing: border-box; margin: 0; }
body { background: var(--night); color: var(--ink); font: 17px/1.7 Figtree, system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; border-radius: 8px; }
h1, h2 { font-family: "Bricolage Grotesque", sans-serif; letter-spacing: -.025em; }

.bar { position: fixed; z-index: 30; top: 16px; left: var(--edge); right: var(--edge); height: 60px;
  display: flex; align-items: center; gap: 28px; padding: 0 10px 0 20px; border-radius: 999px;
  background: rgba(13,11,9,.5); border: 1px solid var(--line); backdrop-filter: blur(14px) saturate(1.2); }
.bar .logo img { height: 34px; }
.bar nav { display: flex; gap: 26px; margin-left: auto; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.bar nav a { text-decoration: none; transition: color .2s; }
.bar nav a:hover { color: var(--ink); }
.bar .buy { height: 40px; padding: 0 20px; border-radius: 999px; background: #f7f5ef; color: #1f1c16;
  font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; text-decoration: none; transition: background .2s; }
.bar .buy:hover { background: #fff; }

.doc { max-width: 760px; margin: 0 auto; padding: clamp(140px, 13vw, 180px) var(--gutter) clamp(80px, 10vw, 140px); }
.pre { font-size: 13px; font-weight: 600; letter-spacing: .26em; color: var(--tint); text-transform: uppercase; }
.doc h1 { font-family: "Barlow Condensed", sans-serif; text-transform: uppercase; font-size: clamp(44px, 6vw, 72px); font-weight: 600; line-height: 1; letter-spacing: .01em; margin: 16px 0 12px; }
.updated { color: var(--ink-2); font-size: 14px; margin-bottom: 30px; }
.lede { font-size: 19px; color: var(--ink); margin-bottom: 8px; }
.doc h2 { font-family: "Barlow Condensed", sans-serif; text-transform: uppercase; font-size: 26px; font-weight: 600; letter-spacing: .02em; margin: 44px 0 12px; padding-top: 22px; border-top: 1px solid var(--line); }
.doc p, .doc li { color: #d6d1c6; }
.doc p + p { margin-top: 12px; }
.doc b { color: var(--ink); font-weight: 600; }
.doc ul { padding-left: 22px; display: grid; gap: 8px; }
.doc ul ul { margin-top: 8px; gap: 4px; }
.doc a { color: var(--ink); text-decoration-color: rgba(242,240,234,.4); text-underline-offset: 3px; }
.doc a:hover { text-decoration-color: var(--ink); }
.doc code { font: 14px ui-monospace, Consolas, monospace; background: #181511; border: 1px solid #36332d; border-radius: 6px; padding: 1px 6px; }

footer { border-top: 1px solid var(--line); padding: 28px var(--edge); display: flex; gap: 20px; align-items: center; justify-content: space-between; color: var(--ink-2); font-size: 13px; flex-wrap: wrap; }
footer img { height: 26px; }
footer .tm { flex: 1 1 420px; }
footer .legal { display: flex; gap: 18px; }
footer .legal a { text-decoration: none; transition: color .2s; }
footer .legal a:hover, footer .legal a[aria-current] { color: var(--ink); }

@media (max-width: 760px) {
  .bar nav { display: none; }
  .bar .logo { margin-right: auto; }
  .lede { font-size: 17px; }
}

/* buttons and the 404 page */
.btns { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 26px; border-radius: 999px; font-weight: 600; text-decoration: none; font-size: 15px; transition: background .2s, border-color .2s; }
.btn.primary { background: #f7f5ef; color: #1f1c16; }
.btn.primary:hover { background: #fff; }
.btn.ghost { border: 1px solid rgba(242,240,234,.32); color: var(--ink); }
.btn.ghost:hover { border-color: var(--ink); }
.doc.lost { min-height: 70vh; }
/* touch: 44 px targets */
.bar .logo { display: flex; align-items: center; min-height: 44px; }
footer .legal a { display: inline-block; padding: 12px 2px; min-width: 44px; text-align: center; }
@media (max-width: 760px) { .bar .buy { height: 44px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .01ms !important; } }
