/**
 * Document chrome for the NBULAI legal pages only.
 * Footer and acceptance styles live in nbulai-footer.css and do not set page colors.
 */
.nl-skip {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  background: #1d1d1f;
  color: #fff;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  z-index: 30;
}

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

.nl-body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #fbfbfd;
  color: #1d1d1f;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", sans-serif;
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.01em;
  color-scheme: light;
}

.nl-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 251, 253, 0.86);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.nl-header__inner,
.nl-main {
  width: min(68rem, calc(100% - 2.5rem));
  margin: 0 auto;
}

.nl-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  min-height: 3.25rem;
  padding: 0.4rem 0;
}

.nl-wordmark {
  color: #1d1d1f;
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  flex: 0 0 auto;
}

.nl-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.2rem 1.15rem;
}

.nl-nav a {
  color: #424245;
  text-decoration: none;
  font-size: 0.8125rem;
  line-height: 1.3;
  padding: 0.45rem 0;
}

.nl-nav a[aria-current="page"] {
  color: #1d1d1f;
  font-weight: 600;
}

.nl-nav a:hover,
.nl-nav a:focus-visible {
  color: #0066cc;
}

.nl-nav a:focus-visible,
.nl-wordmark:focus-visible,
.nl-prose a:focus-visible,
.nl-card:focus-visible,
.nl-text-btn:focus-visible {
  outline: 2px solid #0066cc;
  outline-offset: 3px;
  border-radius: 4px;
}

.nl-main {
  flex: 1 0 auto;
  padding: clamp(2.75rem, 7vh, 4.75rem) 0 3.5rem;
}

.nl-main--doc {
  width: min(40rem, calc(100% - 2.5rem));
}

.nl-eyebrow {
  margin: 0 0 0.65rem;
  color: #6e6e73;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nl-title {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.nl-lede,
.nl-updated,
.nl-accept-status {
  margin: 1rem 0 0;
  color: #6e6e73;
  font-size: 1.0625rem;
  line-height: 1.5;
  max-width: 40rem;
}

.nl-accept-status {
  color: #1d1d1f;
  font-size: 0.9375rem;
}

.nl-updated {
  margin-top: 0.75rem;
  font-size: 0.875rem;
}

.nl-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 2.25rem 0 0;
  padding: 0;
  list-style: none;
}

.nl-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 11.5rem;
  padding: 1.35rem 1.35rem 1.2rem;
  background: #fff;
  color: inherit;
  text-decoration: none;
  border-radius: 18px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 0 0 1px rgba(0, 0, 0, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.nl-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.nl-card__kicker {
  margin: 0;
  color: #6e6e73;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

.nl-card__title {
  margin: 0.55rem 0 0;
  font-size: 1.25rem;
  font-weight: 630;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.nl-card__body {
  margin: 0.55rem 0 1rem;
  color: #6e6e73;
  font-size: 0.9375rem;
  line-height: 1.45;
}

.nl-card__more {
  margin-top: auto;
  color: #0066cc;
  font-size: 0.9375rem;
}

.nl-section {
  margin-top: 3rem;
}

.nl-section h2,
.nl-prose h2 {
  margin: 2rem 0 0.55rem;
  font-size: 1.375rem;
  font-weight: 640;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.nl-section p,
.nl-prose p,
.nl-prose li {
  color: #1d1d1f;
}

.nl-section p,
.nl-prose p {
  margin: 0.75rem 0 0;
}

.nl-prose h2:first-child {
  margin-top: 1.75rem;
}

.nl-prose a,
.nl-section a {
  color: #0066cc;
  text-decoration: none;
}

.nl-prose a:hover,
.nl-section a:hover {
  text-decoration: underline;
}

.nl-prose ul,
.nl-prose ol,
.nl-domains {
  margin: 0.75rem 0 0;
  padding-left: 1.15rem;
}

.nl-prose li + li,
.nl-domains li + li {
  margin-top: 0.35rem;
}

.nl-toc {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.9rem;
}

.nl-toc a {
  color: #0066cc;
  font-size: 0.875rem;
  text-decoration: none;
}

.nl-toc a:hover {
  text-decoration: underline;
}

.nl-marks {
  margin: 1rem 0 0;
  display: grid;
  gap: 0.85rem;
}

.nl-marks div {
  display: grid;
  grid-template-columns: 9.5rem minmax(0, 1fr);
  gap: 0.75rem 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.nl-marks dt {
  margin: 0;
  font-weight: 630;
}

.nl-marks dd {
  margin: 0;
  color: #424245;
}

.nl-text-btn {
  margin-top: 1rem;
  padding: 0;
  border: 0;
  background: none;
  color: #0066cc;
  font: inherit;
  font-size: 0.9375rem;
  cursor: pointer;
}

.nl-text-btn:hover {
  text-decoration: underline;
}

@media (max-width: 800px) {
  .nl-header__inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 0.75rem 0 0.65rem;
  }

  .nl-nav {
    justify-content: flex-start;
  }

  .nl-cards {
    grid-template-columns: 1fr;
  }

  .nl-marks div {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nl-card {
    transition: none;
  }

  .nl-card:hover {
    transform: none;
  }
}

@media print {
  .nl-header {
    position: static;
    background: #fff;
  }

  .nl-skip,
  .nbulai-accept,
  .nbulai-accept-spacer {
    display: none !important;
  }

  .nl-body {
    background: #fff;
  }
}
