.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9997;
  padding: 16px;
  background: rgba(15, 23, 42, 0.92);
  color: #f8fafc;
  backdrop-filter: blur(12px);
  border-top: 2px solid #0b57d0;
}

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

.cookie-banner-inner {
  width: min(1100px, 100%);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  align-items: center;
  justify-content: space-between;
}

.cookie-banner-text h2 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  color: #fff;
}

.cookie-banner-text p {
  margin: 0;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 720px;
}

.cookie-banner-text a {
  color: #93c5fd;
  font-weight: 700;
}

.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cookie-banner .btn-outline {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.cookie-banner .btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
}

.legal-content {
  text-align: left;
  max-width: 900px;
  margin: 0 auto;
}

.legal-content h2 {
  margin-top: 1.6em;
  color: var(--primary-dark);
}

.legal-content code {
  background: var(--bg);
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 0.9em;
}

body:has(#cookie-banner:not([hidden])) .a11y-trigger {
  bottom: 130px;
}

@media (max-width: 700px) {
  .cookie-banner-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-banner-actions {
    flex-direction: column;
  }

  .cookie-banner-actions .btn {
    width: 100%;
    justify-content: center;
  }
}
