/* =============================================================================
   NGA — the legal pages (legal/*), on top of /styles.css: a long text in the
   site's type, set for reading. Tokens from /styles.css.
   ============================================================================= */

.legal {
  flex: 1;
  width: 100%;
  max-width: calc(720px + 2 * var(--gutter));
  margin: 0 auto;
  padding: clamp(32px, 7vw, 72px) var(--gutter) 72px;
  color: var(--body);
  font-size: 16px;
  line-height: 1.65;
}

.legal-text h1 {
  color: var(--ink);
  font-size: clamp(32px, 6vw, 48px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.legal-meta,
.legal-questions {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--label);
}
.legal-text .legal-meta { margin: 14px 0 40px; }

.legal-text h2 {
  margin: 40px 0 12px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.legal-text p { margin: 0 0 14px; }
.legal-text ol,
.legal-text ul { margin: 0 0 14px; padding-left: 1.4em; }
.legal-text li { margin: 0 0 8px; padding-left: 0.2em; }
.legal-text li::marker { color: var(--label); }
.legal-text strong { color: var(--ink); font-weight: 600; }
.legal-text code {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.86em;
  color: var(--ink);
  background: var(--line-soft);
  border-radius: 4px;
  padding: 1px 5px;
  overflow-wrap: anywhere;
}

.legal-questions {
  margin-top: 48px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
}
.legal-questions a { color: var(--ink); }

/* Links inside a text (its own https://nga.io/legal/… addresses) and around it. */
.legal-text a,
.legal-note a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }

/* Tables, as the texts write them: they scroll inside their own box on a narrow screen. */
.legal-table:focus-visible { outline: 2px solid var(--signal-deep, #1f7a4d); outline-offset: 2px; }
.legal-table { margin: 0 0 18px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.legal-text table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 14px; line-height: 1.5; }
.legal-text th,
.legal-text td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line-soft); }
.legal-text th { color: var(--ink); font-weight: 500; border-bottom-color: var(--label); }

/* The note between the SDK License's versions, outside the text itself. */
.legal-note {
  margin: 32px 0 0;
  padding: 12px 16px;
  font-size: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
}

/* /legal/: the list of texts. */
.legal-index { list-style: none; padding-left: 0 !important; margin: 24px 0 0 !important; }
.legal-index li { margin: 0; padding: 14px 0 !important; border-bottom: 1px solid var(--line-soft); }
.legal-index li a { font-size: 18px; font-weight: 800; text-decoration: none; }
.legal-index li a:hover { text-decoration: underline; }
.legal-index .legal-meta { display: block; margin: 4px 0 0; }
