/* Beck Business Consulting – small additions to Tailwind */

html {
  scroll-behavior: smooth;
}

/* Keep anchored sections clear of the sticky header */
main[id],
section[id] {
  scroll-margin-top: 5.5rem;
}

/* Legal dialogs */
dialog.legal-dialog {
  width: min(44rem, calc(100% - 2rem));
  max-height: min(85vh, 52rem);
  padding: 0;
  border: 0;
  border-radius: 1rem;
  color: #14202E;
  background: #ffffff;
  box-shadow: 0 25px 50px -12px rgba(20, 32, 46, 0.45);
}

dialog.legal-dialog::backdrop {
  background: rgba(20, 32, 46, 0.72);
}

.legal-body h3 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: #1F3A5F;
  margin-top: 1.5rem;
  margin-bottom: 0.4rem;
}

.legal-body p,
.legal-body li {
  line-height: 1.65;
  color: #374151;
}

.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.25rem;
}

.legal-body a {
  color: #1F3A5F;
  text-decoration: underline;
  text-underline-offset: 2px;
}

body.has-modal {
  overflow: hidden;
}

/* Visible keyboard focus everywhere */
:focus-visible {
  outline: 3px solid #C8963E;
  outline-offset: 3px;
}

/* Sections focused programmatically after an in-page jump don't need a ring */
main[tabindex="-1"]:focus,
section[tabindex="-1"]:focus {
  outline: none;
}

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