.privacy-consent[hidden] {
  display: none;
}

.privacy-consent {
  position: fixed;
  left: 50%;
  bottom: clamp(0.75rem, 2vw, 1.25rem);
  z-index: 1200;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: center;
  width: min(calc(100% - 1.5rem), 1120px);
  padding: clamp(1.05rem, 2.4vw, 1.55rem);
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(178, 30, 43, 0.13), transparent 38%),
    rgba(16, 24, 32, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.17);
  box-shadow: 0 28px 80px rgba(5, 11, 17, 0.42);
  transform: translateX(-50%);
  backdrop-filter: blur(18px);
}

.privacy-consent::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--red, #b21e2b);
}

.privacy-consent__copy {
  display: grid;
  gap: 0.4rem;
  max-width: 760px;
}

.privacy-consent__eyebrow {
  color: rgba(255, 255, 255, 0.62);
  font-family: "Inter", sans-serif;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
}

.privacy-consent__copy strong {
  font-family: "Archivo", sans-serif;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.2;
}

.privacy-consent__copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
  line-height: 1.5;
}

.privacy-consent__copy .privacy-consent__current {
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
  width: fit-content;
  margin-top: 0.15rem;
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.76rem;
  font-weight: 700;
}

.privacy-consent__current::before {
  content: "";
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
}

.privacy-consent[data-state="granted"] .privacy-consent__current::before {
  background: #78d6a0;
  box-shadow: 0 0 0 3px rgba(120, 214, 160, 0.14);
}

.privacy-consent__copy a {
  width: fit-content;
  margin-top: 0.1rem;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  text-underline-offset: 0.2em;
}

.privacy-consent__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.7rem;
  min-width: min(100%, 290px);
}

.privacy-consent__button {
  min-height: 46px;
  padding: 0.76rem 1.1rem;
  border: 0;
  font-family: "Inter", sans-serif;
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.1;
  cursor: pointer;
  transition: filter 150ms ease, transform 150ms ease, background 150ms ease;
  clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
}

.privacy-consent__button--primary {
  color: #fff;
  background: var(--red, #b21e2b);
  box-shadow: 0 10px 28px rgba(178, 30, 43, 0.25);
}

.privacy-consent__button--secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.34);
}

.privacy-consent__button:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.privacy-consent__button:active {
  transform: translateY(0);
}

.privacy-consent__button:focus-visible,
.footer-link-button:focus-visible {
  outline: 3px solid var(--steel, #8eb4c7);
  outline-offset: 3px;
}

.footer-links a,
.footer-link-button {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.footer-link-button {
  padding: 0;
  border: 0;
  color: var(--graphite, #101820);
  background: transparent;
  font: inherit;
  font-weight: inherit;
  opacity: 0.78;
  cursor: pointer;
}

.footer-link-button:hover,
.footer-link-button:focus-visible {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .privacy-consent__button {
    transition: none;
  }
}

@media (max-width: 820px) {
  .privacy-consent {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .privacy-consent__actions {
    justify-content: stretch;
    min-width: 0;
  }

  .privacy-consent__button {
    flex: 1 1 220px;
  }
}

@media (max-width: 520px) {
  .privacy-consent {
    bottom: 0.45rem;
    width: calc(100% - 0.9rem);
    max-height: calc(100dvh - 0.9rem);
    padding: 1rem;
    overflow-y: auto;
  }

  .privacy-consent__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .privacy-consent__button {
    width: 100%;
  }
}
