/* NiXTaG legal pages - shared styles. No web fonts, no scripts,
   nothing loaded from another origin. */

:root {
  color-scheme: dark;
  --bg: #080c18;
  --bg-raised: #0e1426;
  --surface: #121a31;
  --border: #212b48;
  --border-accent: rgba(76, 126, 255, 0.35);
  --accent: #4c7eff;
  --accent-bright: #7ea2ff;
  --accent-fill: rgba(76, 126, 255, 0.12);
  --text: #eef1f8;
  --text-body: #c9cfdd;
  --text-muted: #8e97ad;
  --todo: #ffc861;
  --todo-fill: rgba(255, 200, 97, 0.1);
  --radius: 14px;
  --measure: 46rem;
  --gutter: clamp(1rem, 4vw, 2rem);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
    Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display",
    "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 5.5rem;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse 80% 40rem at 50% -10rem, rgba(76, 126, 255, 0.16), transparent 70%),
    var(--bg);
  color: var(--text-body);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent-bright);
  text-decoration: underline;
  text-decoration-color: rgba(126, 162, 255, 0.4);
  text-underline-offset: 0.18em;
  overflow-wrap: anywhere;
}

a:hover {
  text-decoration-color: currentColor;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -3rem;
  padding: 0.5rem 0.9rem;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  z-index: 10;
}

.skip-link:focus {
  top: 0.75rem;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(8, 12, 24, 0.86);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--border);
  padding-top: env(safe-area-inset-top, 0px);
}

.site-header__inner {
  max-width: 64rem;
  margin: 0 auto;
  padding: 0.75rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid var(--border-accent);
}

.site-nav {
  display: flex;
  gap: 0.25rem;
}

.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  border: 1px solid transparent;
}

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

.site-nav a[aria-current="page"] {
  color: var(--text);
  background: var(--accent-fill);
  border-color: var(--border-accent);
}

/* Main column */

main {
  flex: 1;
  width: 100%;
  max-width: calc(var(--measure) + 2 * var(--gutter));
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 4rem) var(--gutter) 4rem;
}

.eyebrow {
  margin: 0 0 0.5rem;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  color: var(--text);
  line-height: 1.2;
  letter-spacing: -0.015em;
}

h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 7vw, 2.9rem);
  font-weight: 800;
}

h2 {
  margin: 3rem 0 0.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: clamp(1.3rem, 4vw, 1.55rem);
  font-weight: 750;
}

h3 {
  margin: 1.75rem 0 0.4rem;
  font-size: 1.1rem;
  font-weight: 700;
}

p,
ul,
ol {
  margin: 0 0 1rem;
}

ul,
ol {
  padding-left: 1.3rem;
}

li {
  margin-bottom: 0.4rem;
}

li::marker {
  color: var(--accent);
}

strong {
  color: var(--text);
  font-weight: 650;
}

.lede {
  font-size: 1.15rem;
  color: var(--text-body);
  margin-bottom: 1.25rem;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin: 0 0 2rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* Cards and callouts */

.summary {
  margin: 0 0 2rem;
  padding: 1.25rem 1.35rem;
  background: var(--surface);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius);
}

.summary h2 {
  margin: 0 0 0.6rem;
  padding: 0;
  border: 0;
  font-size: 1.1rem;
}

.summary ul {
  margin: 0;
}

.toc {
  margin: 0 0 2.5rem;
  padding: 1.1rem 1.35rem;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.toc h2 {
  margin: 0 0 0.5rem;
  padding: 0;
  border: 0;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.toc ol {
  margin: 0;
  columns: 2 15rem;
  column-gap: 2rem;
  font-size: 0.95rem;
}

.toc li {
  break-inside: avoid;
  margin-bottom: 0.25rem;
}

.toc a {
  color: var(--text-body);
  text-decoration: none;
}

.toc a:hover {
  color: var(--accent-bright);
}

.callout {
  margin: 1.25rem 0;
  padding: 1rem 1.15rem;
  background: var(--accent-fill);
  border-left: 3px solid var(--accent);
  border-radius: 0 10px 10px 0;
}

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

.table-wrap {
  overflow-x: auto;
  margin: 1rem 0 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

table {
  width: 100%;
  min-width: 34rem;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th,
td {
  padding: 0.75rem 0.9rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}

th {
  background: var(--bg-raised);
  color: var(--text);
  font-weight: 650;
}

tr:last-child td {
  border-bottom: 0;
}

/* Placeholders the owner must fill in before publishing. */
.todo {
  padding: 0.05em 0.35em;
  color: var(--todo);
  background: var(--todo-fill);
  border: 1px dashed rgba(255, 200, 97, 0.6);
  border-radius: 5px;
  font-weight: 600;
}

/* Landing page */

.hero {
  text-align: center;
  padding-top: clamp(0.5rem, 4vw, 2rem);
}

.hero img {
  width: 88px;
  height: 88px;
  border-radius: 22px;
  border: 1px solid var(--border-accent);
  box-shadow: 0 12px 40px rgba(76, 126, 255, 0.25);
  margin-bottom: 1.25rem;
}

.hero__subtitle {
  margin: -0.25rem 0 1rem;
  color: var(--accent-bright);
  font-family: var(--font-display);
  font-size: clamp(1rem, 3.6vw, 1.2rem);
  font-weight: 650;
  letter-spacing: 0.01em;
}

/* Wrap between the two phrases, never inside one. */
.hero__subtitle span {
  white-space: nowrap;
}

.hero__note {
  max-width: 32rem;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 0.97rem;
}

.hero .lede {
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem;
  margin: 2.5rem 0;
}

.card {
  display: block;
  padding: 1.35rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-body);
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.card:hover {
  border-color: var(--accent);
}

@media (prefers-reduced-motion: no-preference) {
  .card:hover {
    transform: translateY(-2px);
  }
}

.card h2 {
  margin: 0 0 0.35rem;
  padding: 0;
  border: 0;
  font-size: 1.2rem;
}

.card p {
  margin: 0 0 0.9rem;
  font-size: 0.97rem;
}

.card span {
  color: var(--accent-bright);
  font-weight: 650;
  font-size: 0.95rem;
}

.contact {
  text-align: center;
  color: var(--text-muted);
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-raised);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  font-size: 0.9rem;
  color: var(--text-muted);
}

.site-footer__inner {
  max-width: 64rem;
  margin: 0 auto;
  padding: 1.5rem var(--gutter);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
}

.site-footer p {
  margin: 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

.site-footer a {
  color: var(--text-muted);
}

/* Print: legal text on white paper. */
@media print {
  :root {
    color-scheme: light;
  }

  body {
    background: #fff;
    color: #111;
    font-size: 11pt;
  }

  .site-header,
  .site-footer,
  .toc,
  .skip-link {
    display: none;
  }

  h1,
  h2,
  h3,
  strong {
    color: #000;
  }

  a {
    color: #000;
  }

  .summary,
  .callout,
  .table-wrap,
  th {
    background: none;
    border-color: #999;
  }
}
