.footer-legal-button {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--grey-500);
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
  text-decoration: none;
}

.footer-legal-button:hover {
  color: var(--black);
}

.cookie-consent[hidden],
.cookie-preferences[hidden] {
  display: none;
}

.cookie-consent {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 300;
  width: min(460px, calc(100vw - 32px));
}

.cookie-consent-card {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(15, 17, 21, 0.08);
  border-radius: 24px;
  box-shadow: 0 28px 70px rgba(3, 3, 3, 0.18);
  padding: 24px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.cookie-consent-copy {
  margin-bottom: 1rem;
}

.cookie-consent-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0.9rem;
  color: var(--teal-dark);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cookie-consent-eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--teal);
}

.cookie-consent-title {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--black);
}

.cookie-consent-text {
  margin-top: 0.8rem;
  color: var(--grey-500);
  font-size: 0.92rem;
  line-height: 1.65;
}

.cookie-consent-note {
  margin-top: 0.95rem;
  color: var(--grey-400);
  font-size: 0.78rem;
  line-height: 1.55;
}

.cookie-consent-actions,
.cookie-preferences-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cookie-btn {
  min-height: 44px;
  border-radius: 12px;
  padding: 12px 18px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.cookie-btn:hover {
  transform: translateY(-1px);
}

.cookie-btn-primary {
  background: var(--black);
  color: var(--white);
  box-shadow: 0 14px 32px rgba(3, 3, 3, 0.16);
}

.cookie-btn-primary:hover {
  background: var(--teal);
  box-shadow: 0 14px 32px rgba(33, 191, 184, 0.28);
}

.cookie-btn-secondary {
  background: var(--white);
  color: var(--black);
  border-color: var(--grey-200);
}

.cookie-btn-secondary:hover {
  border-color: var(--black);
}

.cookie-btn-ghost {
  background: var(--grey-50);
  color: var(--grey-700);
  border-color: var(--grey-200);
}

.cookie-btn-ghost:hover {
  background: var(--white);
  color: var(--black);
}

.cookie-preferences {
  position: fixed;
  inset: 0;
  z-index: 320;
}

.cookie-preferences-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 3, 3, 0.48);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.cookie-preferences-dialog {
  position: relative;
  width: min(760px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  margin: 24px auto;
  overflow: auto;
  background: var(--white);
  border-radius: 28px;
  padding: 28px;
  box-shadow: 0 30px 90px rgba(3, 3, 3, 0.24);
}

.cookie-preferences-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--grey-200);
  border-radius: 999px;
  background: var(--grey-50);
  color: var(--grey-700);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.cookie-category-list {
  display: grid;
  gap: 14px;
  margin: 1.5rem 0 1.7rem;
}

.cookie-category {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 18px 16px;
  border: 1px solid var(--grey-200);
  border-radius: 18px;
  background: var(--grey-50);
}

.cookie-category-copy {
  min-width: 0;
}

.cookie-category-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--black);
}

.cookie-category-text {
  margin-top: 0.45rem;
  color: var(--grey-500);
  font-size: 0.88rem;
  line-height: 1.6;
}

.cookie-switch {
  position: relative;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
}

.cookie-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.cookie-switch-ui {
  position: relative;
  width: 54px;
  height: 32px;
  border-radius: 999px;
  background: var(--grey-300);
  transition: background-color 0.2s ease;
}

.cookie-switch-ui::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 4px 10px rgba(3, 3, 3, 0.14);
  transition: transform 0.2s ease;
}

.cookie-switch input:checked + .cookie-switch-ui {
  background: var(--teal);
}

.cookie-switch input:checked + .cookie-switch-ui::after {
  transform: translateX(22px);
}

.cookie-switch input:disabled + .cookie-switch-ui {
  background: rgba(33, 191, 184, 0.42);
}

body.cookie-preferences-open {
  overflow: hidden;
}

@media (max-width: 720px) {
  .cookie-consent {
    right: 12px;
    left: 12px;
    bottom: 12px;
    width: auto;
  }

  .cookie-consent-card,
  .cookie-preferences-dialog {
    border-radius: 22px;
    padding: 20px;
  }

  .cookie-preferences-dialog {
    width: calc(100vw - 20px);
    margin: 10px auto;
    max-height: calc(100vh - 20px);
  }

  .cookie-category {
    flex-direction: column;
    gap: 14px;
  }

  .cookie-consent-actions,
  .cookie-preferences-actions {
    flex-direction: column;
  }

  .cookie-btn {
    width: 100%;
  }
}
