/* GENX VAULTAIRE LTD - small additions to Tailwind */

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  text-rendering: optimizeLegibility;
}

/* Visible keyboard focus everywhere */
:focus-visible {
  outline: 3px solid #14B8A6;
  outline-offset: 3px;
  border-radius: 6px;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  background: #0F172A;
  color: #F8FAFC;
  font-weight: 600;
  transition: top 0.15s ease;
}
.skip-link:focus {
  top: 1rem;
}

/* Dialogs (Privacy / Terms) */
dialog.legal-modal {
  width: min(46rem, calc(100% - 2rem));
  max-height: calc(100% - 2rem);
  padding: 0;
  border: 0;
  border-radius: 1rem;
  background: #FFFFFF;
  color: #0F172A;
  box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.45);
}
dialog.legal-modal::backdrop {
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(2px);
}
dialog.legal-modal[open] {
  animation: modal-in 0.2s ease-out;
}
@keyframes modal-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.legal-body h3 {
  font-family: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: #1E3A5F;
  margin-top: 1.5rem;
  margin-bottom: 0.4rem;
}
.legal-body p,
.legal-body li {
  color: #334155;
  line-height: 1.65;
}
.legal-body p + p {
  margin-top: 0.6rem;
}
.legal-body ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin-top: 0.4rem;
}
.legal-body li + li {
  margin-top: 0.3rem;
}
.legal-body a {
  color: #0F766E;
  text-decoration: underline;
  text-underline-offset: 2px;
}

body.modal-open {
  overflow: hidden;
}

/* Respect reduced-motion preferences */
@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;
  }
}
