/* Isolated consent UI: does not alter the restored page layout. */
.site-legal-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
  padding: 13px 20px;
  background: #0e3527;
  border-top: 1px solid rgba(212, 231, 218, .16);
  color: #c4d5c9;
  font-size: 12px;
}

.site-legal-bar a,
.site-legal-bar button {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.site-legal-bar a:hover,
.site-legal-bar button:hover {
  color: #c9e36b;
}

.cookie-banner {
  position: fixed;
  z-index: 10000;
  top: auto;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  width: min(540px, calc(100vw - 32px));
  padding: 20px;
  background: #111514;
  border: 1px solid rgba(255, 255, 255, .22);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .48);
  color: #fff;
  text-align: center;
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner h2 {
  margin: 0 0 4px;
  color: #fff;
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
}

.cookie-banner p {
  margin: 0;
  color: #c4d5c9;
  font-size: 13px;
  line-height: 1.55;
}

.cookie-banner a {
  color: #c9e36b;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.cookie-banner__button {
  min-height: 40px;
  padding: 9px 13px;
  border: 1px solid #c9e36b;
  background: #c9e36b;
  color: #0e3527;
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  cursor: pointer;
}

.cookie-banner__button--secondary {
  background: transparent;
  color: #fff;
}

body.mobile-menu-open .cookie-banner {
  display: none;
}

@media (max-width: 640px) {
  .cookie-banner {
    right: 12px;
    bottom: max(72px, env(safe-area-inset-bottom));
    left: 12px;
    width: auto;
    max-height: calc(100dvh - 24px);
    overflow-y: auto;
    transform: none;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 14px;
  }

  .cookie-banner h2 { font-size: 15px; }
  .cookie-banner p { font-size: 12px; line-height: 1.4; }

  .cookie-banner__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
    width: 100%;
  }

  .cookie-banner__button {
    width: 100%;
    min-height: 42px;
  }
}
