/* AXON public site: the legal pages and the 404.
 *
 * Deliberately NOT the React app: these pages must be readable by a crawler
 * that does not run JavaScript. Meta fetches /privacidad during App Review,
 * and the app shell would serve it an empty div.
 *
 * The landing page has its own stylesheet (landing.css) since 2026-10-07;
 * this one keeps the night-blue document look the legal pages were approved
 * with, and was pruned on 2026-10-08 to the rules those pages use (the old
 * hero, board, channel and transcript rules went with the old landing).
 *
 * TYPE. The brand book (brand/AXON/README.md) sets Kontora Semibold for
 * headings and Poppins for everything else. Kontora is commercial and not in
 * the repo, so the display stack lists it first and lands on Poppins until
 * licensed files exist (drop kontora-600.woff2 into ./fonts and uncomment the
 * face below).
 *
 * COLOUR. Azul nocturno, Azul grafito and the Cian signal are AXON. White on
 * the cyan fails AA, so cyan fills carry night text.
 */

/* Poppins (SIL OFL), latin subset, fetched by scripts/fetch-brand-fonts.mjs. */
@font-face {
  font-family: 'Poppins';
  font-weight: 400;
  font-display: swap;
  src: url('./fonts/poppins-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-weight: 500;
  font-display: swap;
  src: url('./fonts/poppins-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-weight: 600;
  font-display: swap;
  src: url('./fonts/poppins-600.woff2') format('woff2');
}
/* Kontora Semibold, the display face. Licensed files only.
@font-face {
  font-family: 'Kontora';
  font-weight: 600;
  font-display: swap;
  src: url('./fonts/kontora-600.woff2') format('woff2');
}
*/
@font-face {
  font-family: 'JetBrains Mono';
  font-weight: 500;
  font-display: swap;
  src: url('./fonts/mono-500.woff2') format('woff2');
}

:root {
  /* AXON. Four colours: Azul nocturno, Azul grafito, Cian, white (brand/AXON). */
  --ink: #0d131c; /* Azul nocturno */
  --ink-2: #131b28;
  --line: rgba(255, 255, 255, 0.09);
  --text: #e9eef5;
  --text-2: #a2aebd;
  --text-3: #7f8b9b;

  --brand: #00d0ce; /* Cian, the señal */
  --brand-lift: #00d0ce; /* the cyan reads as TEXT on the night: ~9.7:1 */

  --font-display: 'Kontora', 'Poppins', -apple-system, system-ui, sans-serif;
  --font-body: 'Poppins', -apple-system, system-ui, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --maxw: 1140px;
  --pad: clamp(20px, 5vw, 48px);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.62;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--brand-lift);
  outline-offset: 3px;
  border-radius: 3px;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--pad);
}

/* ── Eyebrow: the display face at label size, which ties every section
      opening back to the wordmark. ── */
.eyebrow {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-3);
  margin: 0 0 18px;
}

/* ── Header ─────────────────────────────────────────────────────────── */
.site-head {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 26px var(--pad);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
  text-decoration: none;
}

/* The wordmark (assets/brand/wordmark-on-dark.svg). */
.brand-mark {
  display: block;
  width: auto;
  height: 15px;
  flex: none;
}

.site-head nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 26px;
  font-size: 14.5px;
  color: var(--text-2);
}

.site-head nav a {
  text-decoration: none;
}

.site-head nav a:hover {
  color: var(--text);
}

/* The disclosure button only exists below the breakpoint. Above it the four
   links fit and a hamburger would be hiding things for no reason. */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-right: -8px;
  padding: 0;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  cursor: pointer;
}

.nav-bars {
  display: block;
  width: 16px;
}
.nav-bars i {
  display: block;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  transition:
    transform 0.22s ease,
    opacity 0.22s ease;
}
.nav-bars i:first-child {
  margin-bottom: 4.5px;
}
[aria-expanded='true'] .nav-bars i:first-child {
  transform: translateY(3px) rotate(45deg);
}
[aria-expanded='true'] .nav-bars i:last-child {
  transform: translateY(-3px) rotate(-45deg);
}

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 6px var(--pad) 18px;
  border-bottom: 1px solid var(--line);
  background: var(--ink);
}
.nav-mobile a {
  padding: 13px 2px;
  font-size: 16px;
  color: var(--text-2);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.nav-mobile a:last-child {
  border-bottom: 0;
}

@media (max-width: 720px) {
  .site-head .nav-desktop {
    display: none;
  }
  /* The legal pages have no toggle, so their nav stays and wraps. */
  .site-head nav {
    gap: 16px;
    font-size: 13.5px;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .nav-mobile:not([hidden]) {
    display: flex;
  }
}

h1 {
  margin: 0 0 22px;
  font-family: var(--font-display);
  font-size: clamp(29px, 4.4vw, 54px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 22px;
  border-radius: 10px;
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-decoration: none;
  border: 1px solid transparent;
  transition:
    transform 0.15s ease,
    background 0.15s ease,
    border-color 0.15s ease;
}

/* The señal as a fill carries night text: white on the cyan is 1.9:1. */
.btn-primary {
  background: var(--brand);
  color: var(--ink);
}

.btn-primary:hover {
  transform: translateY(-1px);
  background: #00bcbb;
}

h2 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.7vw, 31px);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

/* ── Footer: carries the legal identity. Must be in the HTML, not JS. ── */
.site-foot {
  border-top: 1px solid var(--line);
  padding-block: 46px 56px;
  font-size: 14px;
  color: var(--text-3);
}

.foot-top {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 30px;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.foot-links a {
  color: var(--text-2);
  text-decoration: none;
}

.foot-links a:hover {
  color: var(--text);
}

.legal-entity {
  color: var(--text-3);
  font-size: 13.5px;
  line-height: 1.65;
  max-width: 62ch;
}

.legal-entity strong {
  color: var(--text-2);
  font-weight: 600;
}

/* ── Legal document pages ───────────────────────────────────────────── */
.doc {
  max-width: 760px;
  padding-block: clamp(40px, 7vw, 76px) clamp(56px, 9vw, 96px);
}

.doc h1 {
  font-size: clamp(25px, 3.3vw, 38px);
  margin-bottom: 10px;
}

.doc .meta {
  color: var(--text-3);
  font-size: 14px;
  margin: 0 0 40px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.doc h2 {
  font-size: clamp(20px, 2.4vw, 25px);
  margin: 44px 0 12px;
  letter-spacing: -0.02em;
}

.doc h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 26px 0 8px;
  letter-spacing: -0.01em;
}

.doc p,
.doc li {
  color: var(--text-2);
  font-size: 16.5px;
  line-height: 1.72;
}

.doc ul,
.doc ol {
  padding-left: 22px;
}

.doc li {
  margin-bottom: 9px;
}

.doc strong {
  color: var(--text);
  font-weight: 600;
}

.doc a {
  color: var(--brand-lift);
  text-decoration-color: rgba(52, 214, 168, 0.4);
  text-underline-offset: 3px;
}

.callout {
  border: 1px solid var(--line);
  border-left: 2px solid var(--brand);
  background: var(--ink-2);
  border-radius: 0 12px 12px 0;
  padding: 18px 22px;
  margin: 26px 0;
}

.callout p:last-child {
  margin-bottom: 0;
}

.doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 15.5px;
}

.doc th,
.doc td {
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--text-2);
  vertical-align: top;
}

.doc th {
  color: var(--text);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Wide content scrolls inside itself; the page body never scrolls sideways. */
.scroll-x {
  overflow-x: auto;
}

.mt-lg {
  margin-top: 28px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
