/* PDF Legal Document Popup */
.pdf-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.pdf-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.pdf-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(9, 29, 28, 0.85);
  cursor: pointer;
}

.pdf-modal-dialog {
  position: relative;
  width: 100%;
  max-width: 900px;
  height: 90vh;
  max-height: 800px;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.pdf-modal.is-open .pdf-modal-dialog {
  transform: scale(1);
}

.pdf-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: #091D1C;
  color: #fff;
  flex-shrink: 0;
}

.pdf-modal-title {
  margin: 0;
  font-family: "Marcellus", serif;
  font-size: 1.25rem;
  font-weight: 400;
  color: #fff;
}

.pdf-modal-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
  opacity: 0.8;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.pdf-modal-close:hover {
  opacity: 1;
  color: #D0965C;
}

.pdf-modal-body {
  flex: 1;
  overflow: hidden;
}

.pdf-modal-iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.footer-legal-widget .widget-content ul li:not(:last-child) {
  margin-bottom: 8px;
}

.footer-legal-widget .widget-content ul li a {
  cursor: pointer;
}

@media (max-width: 575px) {
  .pdf-modal {
    padding: 10px;
  }

  .pdf-modal-dialog {
    height: 95vh;
    max-height: none;
  }

  .pdf-modal-title {
    font-size: 1rem;
  }
}
