/* NRT Engineering – small additions to Tailwind */

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

.blueprint-grid {
  background-color: #1F3A5F;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    radial-gradient(ellipse at 80% 20%, rgba(224, 122, 31, 0.18), transparent 55%),
    linear-gradient(160deg, #1F3A5F 0%, #172C48 60%, #14181F 100%);
  background-size: 96px 96px, 96px 96px, 24px 24px, 24px 24px, 100% 100%, 100% 100%;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  transition: top 0.15s ease;
}
.skip-link:focus {
  top: 1rem;
}

dialog.legal {
  width: min(44rem, calc(100% - 2rem));
  max-height: calc(100vh - 3rem);
  padding: 0;
  border: 0;
  border-radius: 0.75rem;
}
dialog.legal::backdrop {
  background: rgba(20, 24, 31, 0.7);
}
body.modal-open {
  overflow: hidden;
}

.legal-body h3 {
  font-family: "Barlow Semi Condensed", system-ui, sans-serif;
  font-weight: 600;
  font-size: 1.15rem;
  color: #1F3A5F;
  margin-top: 1.5rem;
  margin-bottom: 0.4rem;
}
.legal-body p,
.legal-body li {
  margin-bottom: 0.6rem;
  line-height: 1.6;
}
.legal-body ul {
  list-style: disc;
  padding-left: 1.25rem;
}
.legal-body a {
  color: #1F3A5F;
  text-decoration: underline;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
