/* ============================================================================
          Footer Component Styles
============================================================================ */

/* Footer Container */
.footer-container {
  border-top: 1px solid #e0e0e0;
  background-color: #fff;
  padding: 1.5rem 1rem;
  margin-top: auto;
  font-family: "Amalia", "Open Sans", Arial, sans-serif;
}

/* Footer Layout */
.footer {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-content {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
}

/* Copyright Text */
.footer-copyright {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1rem;
  color: rgba(43, 45, 51, 1);
  white-space: nowrap;
  padding: 0 0.75rem 0 0;
  border-right: 1px solid rgba(43, 45, 51, 0.7);
}

/* Footer Links Navigation */
.footer-links {
  display: flex;
  flex-wrap: wrap;
  column-gap: 0;
  row-gap: 0;
  align-items: center;
  justify-content: center;
}

.footer-links a,
.footer-links button {
  font-size: 0.75rem;
  line-height: 1rem;
  color: rgba(43, 45, 51, 1);
  text-decoration: underline;
  white-space: nowrap;
  padding: 0 0.75rem;
  border-right: 1px solid rgba(43, 45, 51, 0.7);
  position: relative;
  background: none;
  border-top: none;
  border-left: none;
  border-bottom: none;
  cursor: pointer;
  font-family: inherit;
}

.footer-links a:last-child,
.footer-links button:last-child {
  border-right: none;
}

.footer-links a:hover,
.footer-links button:hover {
  color: rgba(0, 110, 117, 1);
}

.footer-links a:focus,
.footer-links button:focus {
  outline: none;
}

.footer-links a:focus-visible::before,
.footer-links button:focus-visible::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: calc(100% - 1rem);
  height: 1.5rem;
  border: 1.5px solid rgba(43, 45, 51, 1);
  border-radius: 0.5rem;
  pointer-events: none;
}

/* High contrast mode support for footer links */
@media (prefers-contrast: more) {
  .footer-links a:focus-visible::before,
  .footer-links button:focus-visible::before {
    border: 2px solid currentColor;
  }
}

/* Forced colors mode (Windows High Contrast) */
@media (forced-colors: active) {
  .footer-links a:focus-visible::before,
  .footer-links button:focus-visible::before {
    border: 2px solid CanvasText;
  }
}

.footer-links a[target="_blank"]::after {
  content: "";
  display: inline-block;
  width: 0.75rem;
  height: 0.75rem;
  margin-left: 0.25rem;
  vertical-align: text-bottom;
  background-color: currentColor;
  mask-image: url('data:image/svg+xml;utf8,<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M2 2.66667C2 2.29848 2.29848 2 2.66667 2H8V3.33333H3.33333V12.6667H12.6667V8H14V13.3333C14 13.7015 13.7015 14 13.3333 14H2.66667C2.29848 14 2 13.7015 2 13.3333V2.66667ZM11.7239 3.33333H9.33333V2H13.3333C13.7015 2 14 2.29848 14 2.66667V6.66667H12.6667V4.27614L8.4714 8.4714L7.5286 7.5286L11.7239 3.33333Z"/></svg>');
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-image: url('data:image/svg+xml;utf8,<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M2 2.66667C2 2.29848 2.29848 2 2.66667 2H8V3.33333H3.33333V12.6667H12.6667V8H14V13.3333C14 13.7015 13.7015 14 13.3333 14H2.66667C2.29848 14 2 13.7015 2 13.3333V2.66667ZM11.7239 3.33333H9.33333V2H13.3333C13.7015 2 14 2.29848 14 2.66667V6.66667H12.6667V4.27614L8.4714 8.4714L7.5286 7.5286L11.7239 3.33333Z"/></svg>');
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
}

/* ============================================================================
          Modal Styles
============================================================================ */

.modal {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}

.modal[aria-hidden="false"] {
  display: flex;
}

/* Modal Content Container */
.modal-content {
  background-color: rgba(255, 255, 255, 1);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  font-family: "Amalia", "Open Sans", Arial, sans-serif;
}

/* Modal Header */
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid #e0e0e0;
}

.modal-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: rgba(43, 45, 51, 1);
}

button.modal-close {
  all: unset;
  background: none;
  border: none;
  font-size: 2rem;
  line-height: 1;
  color: #666;
  cursor: pointer;
  padding: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  box-shadow: none;
}

button.modal-close:hover {
  background-color: rgba(43, 45, 51, 0.10);
}

button.modal-close:focus:not(:focus-visible) {
  outline: none;
  border: none;
}

button.modal-close:focus-visible {
  outline: 2px solid rgba(43, 45, 51, 0.7);
  outline-offset: 2px;
}

/* Modal Body */
.modal-body {
  padding: 1.5rem;
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(43, 45, 51, 1);
}

.modal-body p {
  margin: 0 0 1rem 0;
}

.modal-body p:last-child {
  margin-bottom: 0;
}

.modal-body ul,
.modal-body ol {
  margin: 1rem 0;
  padding: 0 0 0 1.5rem;
}

.modal-body li {
  margin-bottom: 0.5rem;
}

.modal-body a {
  color: rgba(0, 110, 117, 1);
  text-decoration: underline;
}

.modal-body a:hover {
  color: rgba(0, 78, 84, 1);
}

/* Contact Information Box */
.contact-info {
  margin: 1rem 0;
}

.contact-info p {
  margin: 0 0 1rem 0;
}

.contact-info p:last-child {
  margin-bottom: 0;
}

.contact-info strong {
  color: #2b2d33;
}

.contact-info a {
  color: rgba(0, 110, 117, 1);
  text-decoration: none;
}

.contact-info a:hover {
  color: rgba(0, 78, 84, 1);
  text-decoration: underline;
}

.contact-info a:focus {
  outline: none;
}

.contact-info a:focus-visible {
  outline: 2px solid rgba(43, 45, 51, 0.7);
  outline-offset: 2px;
}

/* ============================================================================
          Responsive Design
============================================================================ */

/* Mobile: 0px - 480px */
@media (max-width: 480px) {
  .footer-content {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }

  .footer-copyright {
    border-right: none;
    padding: 0;
  }

  .footer-links {
    flex-direction: column;
    align-items: center;
  }

  .footer-links a,
  .footer-links button {
    padding: 0.25rem 0;
    border-right: none;
  }

  .modal-content {
    border-radius: 8px;
    max-width: 95%;
  }

  .modal-header,
  .modal-body {
    padding: 1rem;
  }
}

/* Tablet: 481px - 979px */
@media (min-width: 481px) and (max-width: 979px) {
  .footer-content {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }

  .footer-copyright {
    border-right: none;
    padding: 0;
  }

  .modal-content {
    border-radius: 12px;
    max-width: 90%;
  }

  .modal-header,
  .modal-body {
    padding: 1.25rem;
  }
}

/* Desktop: 980px - 1599px */
@media (min-width: 980px) and (max-width: 1599px) {
  .footer-content {
    justify-content: center;
  }

  .modal-content {
    border-radius: 16px;
    max-width: 600px;
  }
}

/* Large Desktop: > 1600px */
@media (min-width: 1600px) {
  .footer {
    max-width: 1400px;
  }

  .footer-content {
    justify-content: center;
  }

  .modal-content {
    border-radius: 16px;
    max-width: 700px;
  }
}
@media (max-width: 530px) and (min-width: 481px) {
  .footer-links {
    row-gap: 0.75rem;
  }
  .footer-links a,
  .footer-links button {
    padding-block: 0.25rem;
  }
}