.sw-footer {
  background-color: #071627;
  color: #e5edf7;
  padding-top: 2.5rem;
  padding-bottom: 2rem;
  border-top: 3px solid #ffd100;
}

.sw-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: 1rem;
  display: grid;
  gap: 2rem;
}

.sw-footer__brand {
  max-width: 360px;
}

.sw-footer__logo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: inherit;
  margin-bottom: 0.5rem;
}

.sw-footer__logo-mark {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: linear-gradient(135deg, #ffd100 0%, #ffb300 50%, #ff8c00 100%);
  position: relative;
}

.sw-footer__logo-mark::before,
.sw-footer__logo-mark::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 4px;
}

.sw-footer__logo-mark::before {
  border: 2px solid rgba(7, 22, 39, 0.9);
}

.sw-footer__logo-mark::after {
  border-left: 3px solid rgba(7, 22, 39, 0.95);
  border-right: 3px solid rgba(7, 22, 39, 0.95);
}

.sw-footer__logo-text {
  font-family: "Barlow", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.sw-footer__tagline {
  margin: 0.25rem 0 0;
  font-size: 0.9rem;
  color: #c2d0e4;
}

.sw-footer__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.sw-footer__heading {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #ffd100;
}

.sw-footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sw-footer__link {
  display: inline-flex;
  padding: 0.15rem 0;
  font-size: 0.9rem;
  color: #e5edf7;
  text-decoration: none;
}

.sw-footer__link:hover,
.sw-footer__link:focus-visible {
  color: #ffffff;
  text-decoration: underline;
  outline: none;
}

.sw-footer__link:focus-visible {
  outline: 2px solid #ffd100;
  outline-offset: 2px;
}

.sw-footer__bottom {
  max-width: 1200px;
  margin: 1.75rem auto 0;
  padding-inline: 1rem;
  border-top: 1px solid rgba(197, 210, 229, 0.18);
  padding-top: 0.75rem;
}

.sw-footer__copyright {
  margin: 0;
  font-size: 0.8rem;
  color: #a7b6d0;
}

/* Cookie banner */
.sw-cookie {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 60;
  display: none;
  padding: 0.75rem 0.75rem 1rem;
  background: linear-gradient(180deg, rgba(7, 22, 39, 0.98), rgba(7, 22, 39, 1));
  box-shadow: 0 -3px 12px rgba(0, 0, 0, 0.45);
}

.sw-cookie--visible {
  display: block;
  animation: sw-cookie-slide-up 0.28s ease-out;
}

.sw-cookie--hidden {
  animation: sw-cookie-slide-down 0.22s ease-in forwards;
}

.sw-cookie__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.85rem 1rem 0.9rem;
  background-color: #0b2443;
  border-radius: 10px;
  border: 1px solid rgba(255, 209, 0, 0.45);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.5rem;
}

.sw-cookie__content {
  flex: 2 1 260px;
}

.sw-cookie__title {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffd100;
}

.sw-cookie__text {
  margin: 0 0 0.25rem;
  font-size: 0.85rem;
  color: #e5edf7;
}

.sw-cookie__more {
  font-size: 0.8rem;
  color: #c2d0e4;
  text-decoration: underline;
}

.sw-cookie__more:hover,
.sw-cookie__more:focus-visible {
  color: #ffffff;
  outline: none;
}

.sw-cookie__more:focus-visible {
  outline: 2px solid #ffd100;
  outline-offset: 2px;
}

.sw-cookie__actions {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}

.sw-cookie__button {
  min-width: 130px;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.sw-cookie__button--secondary {
  background-color: transparent;
  color: #e5edf7;
  border-color: rgba(229, 237, 247, 0.6);
}

.sw-cookie__button--secondary:hover,
.sw-cookie__button--secondary:focus-visible {
  background-color: rgba(7, 22, 39, 0.9);
}

.sw-cookie__button--primary {
  background-color: #ffd100;
  color: #0b2443;
  border-color: #ffd100;
}

.sw-cookie__button--primary:hover,
.sw-cookie__button--primary:focus-visible {
  background-color: #ffb300;
  border-color: #ffb300;
}

.sw-cookie__button:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

@keyframes sw-cookie-slide-up {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes sw-cookie-slide-down {
  from {
    transform: translateY(0);
    opacity: 1;
  }
  to {
    transform: translateY(100%);
    opacity: 0;
  }
}

@media (max-width: 768px) {
  .sw-footer__inner {
    padding-inline: 0.75rem;
  }

  .sw-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sw-cookie__inner {
    padding-inline: 0.85rem;
  }

  .sw-cookie__actions {
    width: 100%;
    justify-content: flex-start;
  }

  .sw-cookie__button {
    flex: 1 1 45%;
  }
}

@media (max-width: 520px) {
  .sw-footer__grid {
    grid-template-columns: 1fr;
  }

  .sw-cookie__inner {
    flex-direction: column;
    align-items: stretch;
  }

  .sw-cookie__actions {
    justify-content: stretch;
  }

  .sw-cookie__button {
    flex: 1 1 auto;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sw-cookie {
    animation: none !important;
  }
}
