/* AX CAPITOL LTD - small additions to Tailwind */

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

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

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

/* Skip link */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  border-radius: 9999px;
  background: #1F3A2E;
  color: #F6F3EC;
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 1rem; }

/* Focus states */
a:focus-visible,
button:focus-visible {
  outline: 3px solid #7A5E33;
  outline-offset: 3px;
}
.on-dark a:focus-visible,
.on-dark button:focus-visible {
  outline-color: #D4B887;
}

/* Hero background */
.hero-bg {
  background:
    radial-gradient(60rem 30rem at 85% -10%, rgba(176, 141, 87, 0.18), transparent 60%),
    radial-gradient(40rem 30rem at -10% 110%, rgba(246, 243, 236, 0.06), transparent 60%),
    linear-gradient(160deg, #22412F 0%, #1F3A2E 55%, #182D24 100%);
}

/* Legal dialogs */
.legal-dialog {
  width: calc(100% - 2rem);
  max-width: 44rem;
  max-height: 85vh;
  padding: 0;
  border: 0;
  border-radius: 1.5rem;
  background: #F6F3EC;
  color: #15191C;
  box-shadow: 0 25px 60px rgba(21, 25, 28, 0.35);
  overflow: hidden;
}
.legal-dialog::backdrop {
  background: rgba(21, 25, 28, 0.7);
}
.legal-inner {
  display: flex;
  flex-direction: column;
  max-height: 85vh;
}
.legal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(140, 145, 138, 0.3);
  background: #FBF9F4;
}
.legal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
  border-radius: 9999px;
  color: #1F3A2E;
}
.legal-close:hover { background: rgba(31, 58, 46, 0.1); }
.legal-body {
  overflow-y: auto;
  padding: 1.5rem;
  line-height: 1.7;
  color: #2E3530;
}
.legal-body h3 {
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-size: 1.05rem;
  color: #1F3A2E;
}
.legal-body p + p { margin-top: 0.75rem; }
.legal-body ul {
  margin: 0.5rem 0 0.75rem 1.25rem;
  list-style: disc;
}
.legal-body li + li { margin-top: 0.35rem; }

@media (min-width: 640px) {
  .legal-head { padding: 1.5rem 2rem; }
  .legal-body { padding: 1.75rem 2rem 2.25rem; }
}

html.modal-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
