/* Shared footer styles */
.site-footer {
  margin-top: 72px;
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.95), rgba(198, 40, 40, 0.95));
  color: var(--white);
  padding: 48px 0 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}

.footer-brand {
  display: grid;
  gap: 10px;
}

.footer-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  padding: 6px;
}

.footer-title {
  font-weight: 600;
  margin-bottom: 12px;
}

.footer-text {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.95rem;
}

.footer-meta {
  display: grid;
  gap: 6px;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.75);
}

.footer-cta {
  display: grid;
  gap: 8px;
  align-content: start;
}

.footer-links {
  list-style: none;
  display: grid;
  gap: 8px;
}

.footer-links a,
.footer-bottom a {
  color: rgba(255, 255, 255, 0.9);
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: #ffffff;
  outline: none;
}

.footer-bottom {
  margin-top: 24px;
  padding: 16px 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 720px) {
  .site-footer {
    padding: 36px 0;
  }

  .footer-grid {
    gap: 16px;
  }

  .footer-bottom {
    flex-direction: column;
    padding: 12px 16px 0;
  }
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  display: grid;
  place-items: center;
  padding: 24px;
  z-index: 200;
}

.modal-overlay[hidden] {
  display: none !important;
}

.modal {
  width: min(960px, 100%);
  max-height: 85vh;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--gray-200);
}

.modal-header h2 {
  font-size: 1.1rem;
  margin: 0;
}

.modal-close {
  border: 1px solid var(--gray-200);
  background: var(--gray-100);
  color: var(--gray-800);
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 600;
  cursor: pointer;
}

.modal-body {
  padding: 22px;
  overflow: auto;
  color: var(--gray-800);
}

.modal-body h1,
.modal-body h2,
.modal-body h3 {
  margin: 0 0 12px;
  color: var(--blue);
}

.modal-body p,
.modal-body li {
  line-height: 1.6;
}

.modal-body a {
  color: var(--blue);
  text-decoration: underline;
}

.consent-banner {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  display: grid;
  place-items: end center;
  padding: 24px;
  z-index: 210;
}

.consent-banner[hidden] {
  display: none !important;
}

.consent-card {
  width: min(720px, 100%);
  background: var(--white);
  color: var(--gray-800);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25);
  display: grid;
  gap: 10px;
}

.consent-title {
  font-weight: 700;
  color: var(--blue);
}

.consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}

@media (max-width: 720px) {
  .consent-card {
    padding: 20px;
  }

  .consent-actions {
    flex-direction: column;
  }

  .consent-actions .btn {
    width: 100%;
  }
}
