/* Footer legal + policy modals — scoped to avoid Bootstrap conflicts */

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 9999;
  padding: 16px;
  overflow-y: auto;
  animation: footerLegalFadeIn 0.18s ease;
}
.modal-overlay.open {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
@keyframes footerLegalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.modal-overlay .modal-box {
  background: #fff;
  border-radius: 14px;
  width: 100%;
  max-width: 680px;
  margin: auto;
  overflow: hidden;
  box-shadow: 0 8px 48px rgba(0, 0, 0, 0.28);
  animation: footerLegalSlideUp 0.2s ease;
}
@keyframes footerLegalSlideUp {
  from { transform: translateY(24px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.modal-overlay .modal-header {
  background: linear-gradient(135deg, #061427, #061427);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: none;
}
.modal-overlay .modal-header h3 {
  color: #fff;
  font-family: "Nunito Sans", sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0;
}
.modal-overlay .modal-close {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  font-size: 1.1rem;
  line-height: 1;
  transition: background 0.15s;
  flex-shrink: 0;
}
.modal-overlay .modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
}
.modal-overlay .modal-body {
  padding: 28px 28px 32px;
  font-family: "Nunito Sans", sans-serif;
  color: #2d2d2d;
  font-size: 0.92rem;
  line-height: 1.7;
}
.modal-overlay .modal-body h4 {
  color: #061427;
  font-weight: 800;
  font-size: 1rem;
  margin: 22px 0 6px;
}
.modal-overlay .modal-body h4:first-child {
  margin-top: 0;
}
.modal-overlay .modal-body p {
  margin: 0 0 12px;
}
.modal-overlay .modal-body ul,
.modal-overlay .modal-body ol {
  padding-left: 20px;
  margin: 0 0 12px;
}
.modal-overlay .modal-body ul li,
.modal-overlay .modal-body ol li {
  margin-bottom: 6px;
}
.modal-overlay .modal-body a {
  color: #061427;
  text-decoration: underline;
}
.modal-overlay .modal-body .address-box {
  background: #f0f7ff;
  border-left: 4px solid #061427;
  border-radius: 4px;
  padding: 12px 16px;
  font-weight: 700;
  margin: 10px 0 14px;
  font-size: 0.9rem;
}
.modal-overlay .modal-body .highlight-box {
  background: #f0f7ff;
  border-radius: 8px;
  padding: 14px 18px;
  margin: 14px 0;
  border: 1px solid rgba(47, 111, 174, 0.2);
}
.modal-overlay .modal-footer-note {
  background: #f9f9f9;
  border-top: 1px solid #eee;
  padding: 14px 28px;
  font-size: 0.8rem;
  color: #888;
  font-family: "Nunito Sans", sans-serif;
}

footer.footer-legal {
  background: #061427 !important;
  padding: 40px 0;
  text-align: center;
  font-family: "Nunito Sans", sans-serif;
}
footer.footer-legal a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}
footer.footer-legal a:hover {
  opacity: 0.75;
}
footer.footer-legal p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.72rem;
  line-height: 1.6;
  margin: 0 auto 10px;
  max-width: 800px;
}
footer.footer-legal .links a {
  margin: 0 8px;
  font-size: 0.85rem;
}
footer.footer-legal .copyright {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.78rem;
  margin-top: 16px;
}
