/* Footer bottom row: copyright + legal links, all in one line */
#footer .footer-top .footer-links .footer-bottom-links {
  list-style: none;
  margin: 0;
  padding: 22px 0 6px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  row-gap: 8px;
}

#footer .footer-top .footer-links .footer-bottom-links li {
  display: inline !important;
  padding: 0;
  margin: 0;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.6);
  white-space: nowrap;
}

.footer-bottom-links li:not(:last-child)::after {
  content: "";
  display: inline-block;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  margin: 0 14px;
}

.footer-bottom-links .footer-copyright {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
}

.footer-bottom-links a {
  font-size: 12.5px;
  letter-spacing: 0.3px;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.3s;
  cursor: pointer;
}

.footer-bottom-links a:hover {
  color: #dcc698;
}

/* Legal modal overlay */
.legal-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 15, 20, 0.65);
  z-index: 20000;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.legal-modal-overlay.active {
  display: flex;
}

body.legal-modal-open {
  overflow: hidden;
}

/* Legal modal card */
.legal-modal-card {
  position: relative;
  background: #faf6ec;
  color: #2d3042;
  width: 100%;
  max-width: 640px;
  max-height: 85vh;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: "Raleway", sans-serif;
}

.legal-modal-header {
  background: #2d3042;
  padding: 22px 56px 22px 28px;
  flex-shrink: 0;
}

.legal-modal-title {
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
}

.legal-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s, color 0.25s;
  z-index: 1;
}

.legal-modal-close:hover,
.legal-modal-close:focus {
  background: #dcc698;
  color: #2d3042;
  outline: none;
}

.legal-modal-body {
  padding: 26px 28px 30px 28px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.legal-modal-body h4 {
  color: #2d3042;
  font-size: 15px;
  font-weight: 700;
  margin: 22px 0 8px 0;
}

.legal-modal-body h4:first-child {
  margin-top: 0;
}

.legal-modal-body p {
  font-size: 14px;
  line-height: 1.7;
  margin: 0 0 10px 0;
  color: #40424f;
}

.legal-modal-body ul {
  margin: 0 0 12px 0;
  padding-left: 20px;
}

.legal-modal-body ul li {
  font-size: 14px;
  line-height: 1.7;
  color: #40424f;
  margin-bottom: 4px;
}

.legal-modal-body strong {
  color: #2d3042;
}

/* Scrollbar accent for the card body */
.legal-modal-body::-webkit-scrollbar {
  width: 8px;
}

.legal-modal-body::-webkit-scrollbar-thumb {
  background: #dcc698;
  border-radius: 4px;
}

.legal-modal-body::-webkit-scrollbar-track {
  background: transparent;
}

@media (max-width: 576px) {
  .legal-modal-overlay {
    padding: 12px;
  }

  .legal-modal-card {
    max-width: 100%;
    max-height: 90vh;
  }

  .legal-modal-header {
    padding: 18px 50px 18px 18px;
  }

  .legal-modal-title {
    font-size: 17px;
  }

  .legal-modal-body {
    padding: 20px 18px 24px 18px;
  }

  .footer-bottom-links li:not(:last-child)::after {
    margin: 0 10px;
  }
}
