/* Allgood Property Group - small additions to Tailwind */

html {
  scroll-behavior: smooth;
}

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

main:focus {
  outline: none;
}

/* Visible focus: teal on light backgrounds, brass on dark ones */
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #1F4E5F;
  outline-offset: 3px;
  border-radius: 0.5rem;
}

.on-dark a:focus-visible,
.on-dark button:focus-visible {
  outline-color: #C9A45C;
}

/* Legal dialogs */
.legal-dialog {
  width: calc(100% - 2rem);
  max-width: 44rem;
  padding: 0;
  border: 0;
  border-radius: 1rem;
  background: #ffffff;
  color: #15232A;
  box-shadow: 0 24px 60px rgba(21, 35, 42, 0.35);
}

.legal-dialog::backdrop {
  background: rgba(21, 35, 42, 0.72);
}

.legal-body h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #15232A;
}

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

.legal-body ul {
  margin: 0.75rem 0;
  padding-left: 1.25rem;
  list-style: disc;
}

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

body.dialog-open {
  overflow: hidden;
}

@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;
  }
}
