/* NYX AI: temporary single-page EULA site.
   Self-contained: no external fonts, scripts, or requests of any kind. */

:root {
  color-scheme: dark;
  /* Matches the app: forge.accent #22d3ee, accentHover #67e8f9. The
     placeholder used to be purple, which belonged to no shipping surface. */
  --c-purple: 34 211 238;      /* #22d3ee electric cyan */
  --c-purple-200: 165 243 252; /* #a5f3fc */
  --c-purple-300: 103 232 249; /* #67e8f9 */
  --font-sans: "Segoe UI Variable Text", "Segoe UI", -apple-system,
    BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Code", "SF Mono",
    SFMono-Regular, Consolas, monospace;
  --c-canvas: 0 0 0;
  --c-raised: 10 10 10;
  --c-raised-2: 16 16 16;
  --c-line-subtle: 20 20 20;
  --c-line: 31 31 31;
  --c-line-strong: 46 46 46;
  --c-ink: 229 229 229;
  --c-ink-secondary: 163 163 163;
  --c-ink-muted: 130 130 130;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  background: rgb(var(--c-canvas));
  color: rgb(var(--c-ink));
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* Prose is proportional. Monospace is reserved below for the things it
     actually means something on: section numbers, labels, and code. */
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 100;
  transform: translateY(-180%);
  border: 1px solid rgb(var(--c-line));
  border-radius: 0.5rem;
  background: #11131a;
  color: #fff;
  padding: 0.65rem 0.9rem;
}

.skip-link:focus {
  transform: translateY(0);
}

main:focus {
  outline: none;
}

a:focus-visible {
  outline: 2px solid rgb(var(--c-purple-200));
  outline-offset: 3px;
  border-radius: 2px;
}

/* The scan-line overlay was removed: it cost contrast on every line of the
   licence and earned nothing on a document people have to read carefully. */

/* Static ambient glow (no JS cursor follower on this page). */
.glow {
  position: fixed;
  top: -240px;
  left: 50%;
  transform: translateX(-50%);
  width: 640px;
  height: 640px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgb(var(--c-purple) / 0.06) 0%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}

.wrap {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Header ── */
header {
  border-bottom: 1px solid rgb(var(--c-line));
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 20px;
}

.logo {
  height: 24px;
  width: auto;
  display: block;
}

.header-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgb(var(--c-ink-muted));
}

.header-nav {
  display: flex;
  gap: 22px;
}

.header-nav a {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgb(var(--c-ink-muted));
  text-decoration: none;
  transition: color 0.2s ease;
}

.header-nav a:hover,
.header-nav a:focus-visible {
  color: rgb(var(--c-purple-200));
}

.header-nav a[aria-current="page"] {
  color: rgb(var(--c-purple-300));
}

/* ── Page header ── */
.page-head {
  padding-block: 72px 40px;
  border-bottom: 1px solid rgb(var(--c-line-subtle));
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: rgb(var(--c-purple-300));
}

h1 {
  margin-top: 16px;
  font-size: clamp(26px, 5vw, 38px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: rgb(var(--c-ink));
}

h1 .serif {
  font-family: Georgia, Cambria, "Times New Roman", serif;
  font-style: italic;
  font-weight: 400;
  color: rgb(var(--c-purple-200));
}

/* Grouped corrections that sit OUTSIDE the reproduced policy text, so the
   document itself stays byte-faithful to the copy shipped with the app. */
.notices {
  margin: 28px 0 24px;
  padding: 20px 22px;
  border: 1px solid rgb(var(--c-line));
  border-left: 2px solid rgb(var(--c-purple) / 0.55);
  border-radius: 0 8px 8px 0;
  background: rgb(var(--c-raised));
}

.notices h2 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgb(var(--c-purple-300));
  margin-bottom: 10px;
}

.notices-lead {
  font-size: 14px;
  line-height: 1.7;
  color: rgb(var(--c-ink-secondary));
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgb(var(--c-line-subtle));
}

.notices .note {
  margin-bottom: 14px;
}

.notices .note:last-child {
  margin-bottom: 0;
}

.meta {
  font-family: var(--font-mono);
  margin-top: 20px;
  font-size: 12px;
  color: rgb(var(--c-ink-muted));
}

.meta span + span::before {
  content: "·";
  margin: 0 10px;
  color: rgb(var(--c-line-strong));
}

.note {
  margin-top: 20px;
  max-width: 560px;
  font-size: 12px;
  line-height: 1.7;
  color: rgb(var(--c-ink-muted));
}

/* Download button: secondary style from the main site. */
.btn {
  display: inline-block;
  margin-top: 28px;
  padding: 10px 22px;
  border: 1px solid rgb(var(--c-line-strong));
  border-radius: 6px;
  background: rgb(var(--c-raised));
  color: rgb(var(--c-ink));
  font-family: inherit;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  text-decoration: none;
  transition:
    border-color 0.2s ease,
    color 0.2s ease,
    background 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  border-color: rgb(var(--c-purple) / 0.6);
  color: rgb(var(--c-purple-200));
  background: rgb(var(--c-raised-2));
}

/* ── Document body ── */
.doc {
  padding-block: 48px 32px;
  color: rgb(var(--c-ink-secondary));
}

.doc > p {
  margin-bottom: 16px;
}

.doc section {
  margin-top: 40px;
}

.doc h2 {
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgb(var(--c-ink));
  margin-bottom: 14px;
}

.doc h2 .num {
  font-family: var(--font-mono);
  color: rgb(var(--c-purple-300));
  margin-right: 10px;
}

.doc h3 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgb(var(--c-ink));
  margin: 28px 0 12px;
}

.doc h3 .num {
  font-family: var(--font-mono);
  color: rgb(var(--c-purple-300));
  margin-right: 10px;
}

.doc a {
  color: rgb(var(--c-purple-300));
  text-decoration: underline;
  text-underline-offset: 4px;
}

.doc a:hover,
.doc a:focus-visible {
  text-decoration: underline;
}

.doc ul {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
}

.doc ul li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
}

.doc ul li::before {
  content: "\2013";
  position: absolute;
  left: 0;
  color: rgb(var(--c-purple-300));
}

/* Tables (lawful bases, suppliers, retention) */
.table-scroll {
  overflow-x: auto;
  margin: 0 0 16px;
  border: 1px solid rgb(var(--c-line));
  border-radius: 6px;
  background: rgb(var(--c-raised));
}

.table-scroll:focus-visible {
  outline: 2px solid rgb(var(--c-purple-200));
  outline-offset: 3px;
}

.doc table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 12.5px;
  line-height: 1.6;
}

.doc th,
.doc td {
  text-align: left;
  vertical-align: top;
  padding: 10px 14px;
  border-bottom: 1px solid rgb(var(--c-line-subtle));
}

.doc th {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgb(var(--c-ink));
  background: rgb(var(--c-raised-2));
  border-bottom: 1px solid rgb(var(--c-line));
}

.doc tbody tr:last-child td {
  border-bottom: none;
}

.doc section p {
  margin-bottom: 14px;
}

.doc strong {
  color: rgb(var(--c-ink));
  font-weight: 700;
}

.doc em {
  font-family: Georgia, Cambria, serif;
  color: rgb(var(--c-ink));
}

.doc ol.alpha {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
}

.doc ol.alpha li {
  position: relative;
  padding-left: 34px;
  margin-bottom: 10px;
}

.doc ol.alpha li .mark {
  position: absolute;
  left: 0;
  color: rgb(var(--c-purple-300));
}

.doc code {
  font-family: inherit;
  font-size: 13px;
  background: rgb(var(--c-raised-2));
  border: 1px solid rgb(var(--c-line-subtle));
  border-radius: 4px;
  padding: 1px 5px;
  color: rgb(var(--c-ink));
  overflow-wrap: anywhere;
}

.contact-line {
  padding: 10px 16px;
  border-left: 2px solid rgb(var(--c-purple) / 0.55);
  background: rgb(var(--c-raised));
  overflow-wrap: anywhere;
}

.end-line {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgb(var(--c-line-subtle));
  font-size: 12px;
  color: rgb(var(--c-ink-muted));
}

/* ── Footer ── */
footer {
  border-top: 1px solid rgb(var(--c-line));
  margin-top: 40px;
}

.footer-inner {
  padding-block: 40px 56px;
  font-size: 11px;
  line-height: 1.9;
  color: rgb(var(--c-ink-muted));
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.footer-brand img {
  height: 18px;
  width: auto;
}

.footer-brand span {
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.footer-links {
  margin-bottom: 10px;
}

.footer-links span {
  margin: 0 8px;
  color: rgb(var(--c-line-strong));
}

footer a {
  color: rgb(var(--c-purple-300));
  text-decoration: none;
  text-underline-offset: 4px;
}

footer a:hover,
footer a:focus-visible {
  text-decoration: underline;
}

::selection {
  background: rgb(var(--c-purple) / 0.35);
  color: rgb(var(--c-ink));
}

@media (max-width: 460px) {
  .wrap {
    padding-inline: 16px;
  }

  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .header-nav {
    width: 100%;
    flex-wrap: wrap;
    gap: 8px 18px;
  }

  .header-nav a {
    padding-block: 6px;
  }
}

@media print {
  :root {
    color-scheme: light;
    --c-purple-200: 21 94 117;  /* cyan-800, legible on white */
    --c-purple-300: 22 78 99;   /* cyan-900 */
    --c-canvas: 255 255 255;
    --c-raised: 255 255 255;
    --c-raised-2: 248 248 250;
    --c-line-subtle: 220 220 225;
    --c-line: 185 185 195;
    --c-line-strong: 130 130 145;
    --c-ink: 17 17 17;
    --c-ink-secondary: 51 51 51;
    --c-ink-muted: 76 76 76;
  }

  .skip-link,
  header,
  footer,
  .btn {
    display: none !important;
  }
  body::after,
  .glow {
    display: none;
  }
  html {
    background: #fff;
    color: #111;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
