html { scroll-behavior: smooth; }

body { -webkit-font-smoothing: antialiased; }

/* Visible focus for keyboard users */
:focus-visible {
  outline: 3px solid #F28C28;
  outline-offset: 3px;
  border-radius: 4px;
}

/* Legal dialogs */
dialog.legal {
  width: min(42rem, calc(100% - 2rem));
  max-height: 85vh;
  overflow-y: auto;
  padding: 0;
  border: 0;
  border-radius: 1rem;
  color: #14202E;
  box-shadow: 0 25px 60px rgba(20, 32, 46, 0.35);
}
dialog.legal::backdrop {
  background: rgba(20, 32, 46, 0.7);
}
dialog.legal h3 {
  font-family: Montserrat, system-ui, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  margin: 1.25rem 0 0.4rem;
  color: #1F3A5F;
}
dialog.legal p,
dialog.legal li {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #334155;
}
dialog.legal ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin: 0.4rem 0;
}
dialog.legal a { color: #1F3A5F; text-decoration: underline; }

/* Hero route animation */
.route-dash { stroke-dasharray: 10 12; animation: route-move 2.4s linear infinite; }
@keyframes route-move { to { stroke-dashoffset: -44; } }

@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;
  }
  .route-dash { animation: none; }
}
