/* Cogniverse — legal pages.
 *
 * Loaded AFTER styles.css, which is where the @font-face rules, the design
 * tokens and the base resets live. This file adds only what a page of prose
 * needs, and it deliberately reuses nothing from the landing's generated
 * classes (c0, c3, c79…): those are one layout's anatomy, and a legal page
 * that borrowed them would break the next time that layout was regenerated.
 *
 * No canvas, no main.js, no waitlist.js — nothing on these pages moves. */

.lg-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #090D15;
  color: var(--fg1);
  font-family: var(--font-sans);
  --lg-gut: clamp(20px, 4vw, 40px);
}

.lg-wrap {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding-left: max(var(--lg-gut), env(safe-area-inset-left));
  padding-right: max(var(--lg-gut), env(safe-area-inset-right));
}

/* ── header ───────────────────────────────────────────────────────────── */

.lg-header {
  border-bottom: 1px solid #1A202E;
}

.lg-header .lg-wrap {
  height: 64px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.lg-logo {
  display: flex;
  align-items: center;
  line-height: 0;
}

.lg-logo svg {
  display: block;
}

.lg-back {
  margin-left: auto;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--fg2);
}

.lg-back:hover {
  color: var(--fg1);
}

/* ── document ─────────────────────────────────────────────────────────── */

.lg-main {
  flex: 1 0 auto;
  padding: clamp(48px, 9vh, 88px) 0 clamp(56px, 10vh, 96px);
}

.lg-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(32px, 5vw, 46px);
  line-height: 1.06;
  letter-spacing: -.022em;
  color: var(--fg1);
}

.lg-updated {
  margin: 14px 0 0;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--fg3);
}

.lg-doc {
  margin-top: clamp(32px, 5vh, 52px);
}

.lg-doc h2 {
  margin: clamp(32px, 4.5vh, 44px) 0 12px;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -.012em;
  color: var(--fg1);
}

.lg-doc h2 .lg-num {
  color: var(--fg3);
  font-variant-numeric: tabular-nums;
  margin-right: 10px;
}

.lg-doc p {
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.68;
  color: var(--fg2);
  text-wrap: pretty;
}

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

.lg-doc a {
  color: var(--sky);
  text-decoration: underline;
  text-decoration-color: rgba(91, 141, 239, .4);
  text-underline-offset: 2px;
}

.lg-doc a:hover {
  color: var(--fg1);
  text-decoration-color: currentColor;
}

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

/* A table of sub-processors is a table. On a phone it scrolls rather than
   crushing two columns into four characters each. */
.lg-table-scroll {
  margin: 0 0 16px;
  overflow-x: auto;
}

.lg-doc table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.5;
}

.lg-doc th,
.lg-doc td {
  padding: 11px 14px;
  text-align: left;
  border-bottom: 1px solid #1A202E;
}

.lg-doc th {
  color: var(--fg1);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .02em;
  text-transform: uppercase;
  border-bottom-color: #262D3B;
  white-space: nowrap;
}

.lg-doc td {
  color: var(--fg2);
}

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

/* ── footer ───────────────────────────────────────────────────────────── */

.lg-footer {
  border-top: 1px solid #1A202E;
  padding: 28px 0 36px;
}

.lg-footer .lg-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
}

.lg-copy {
  font-size: 13px;
  color: var(--fg3);
}

.lg-nav {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.lg-nav a {
  font-size: 13px;
  color: var(--fg2);
}

.lg-nav a:hover {
  color: var(--fg1);
}

.lg-nav a[aria-current="page"] {
  color: var(--fg1);
}

@media (max-width: 599px) {
  .lg-nav {
    margin-left: 0;
  }
}
