/* XDS Consulting: small additions to Tailwind */

html {
  scroll-behavior: smooth;
}

section[id],
main[id] {
  scroll-margin-top: 5rem;
}

main:focus,
section:focus {
  outline: none;
}

/* Subtle grid behind the hero */
.hero-grid {
  background-image:
    linear-gradient(to right, rgba(31, 78, 121, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(31, 78, 121, 0.06) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse at 30% 40%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse at 30% 40%, #000 30%, transparent 75%);
}

.service-card:hover {
  border-color: rgba(42, 157, 143, 0.45);
  box-shadow: 0 12px 30px -12px rgba(20, 33, 61, 0.18);
}

/* Legal dialogs */
.legal-modal {
  margin: auto;
  border: 0;
}

.legal-modal::backdrop {
  background: rgba(20, 33, 61, 0.65);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

body:has(dialog[open]) {
  overflow: hidden;
}

.legal-body h3 {
  margin-top: 1.4rem;
  margin-bottom: 0.4rem;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: #14213D;
}

.legal-body p + p {
  margin-top: 0.6rem;
}

.legal-body ul {
  margin: 0.5rem 0 0.6rem 1.2rem;
  list-style: disc;
}

.legal-body li + li {
  margin-top: 0.25rem;
}

@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;
    scroll-behavior: auto !important;
  }
}
