.sl-preview-footer {
  display: grid;
  gap: 1.15rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--sl-preview-border, #e6e8f4);
  color: var(--sl-preview-muted, #535c86);
  font-size: 0.92rem;
}

.sl-preview-footer-main {
  display: grid;
  grid-template-columns: minmax(240px, 1.15fr) minmax(300px, 1fr) auto;
  align-items: start;
  gap: clamp(1.2rem, 2.4vw, 2rem);
}

.sl-preview-footer-main.has-social-links {
  grid-template-columns: minmax(240px, 1.15fr) minmax(300px, 1fr) auto auto;
}

.sl-preview-footer-brand-wrap {
  display: grid;
  gap: 0.7rem;
}

.sl-preview-footer-brand-wrap p {
  max-width: 330px;
  margin: 0;
  color: var(--sl-preview-muted, #535c86);
  line-height: 1.45;
}

.sl-preview-footer a,
.sl-preview-footer button {
  border: 0;
  color: var(--sl-preview-ink, #090d35);
  background: transparent;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
}

.sl-preview-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  width: fit-content;
  color: var(--sl-preview-ink, #090d35);
  font-size: 1.2rem;
  font-weight: 900 !important;
}

.sl-preview-footer-brand img {
  width: 34px;
  height: 34px;
}

.sl-preview-footer-nav,
.sl-preview-footer-bottom nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.05rem;
}

.sl-preview-footer-nav a,
.sl-preview-footer-bottom a,
.sl-preview-footer-bottom button {
  color: #384060;
  font-weight: 720;
}

.sl-preview-footer-social {
  display: inline-flex;
  gap: 0.55rem;
  justify-self: end;
}

.sl-preview-footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(230, 232, 244, 0.95);
  border-radius: 50%;
  color: var(--sl-preview-accent, #7e65a5);
  background: #fff;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.sl-preview-footer-social a:hover,
.sl-preview-footer-social a:focus-visible {
  border-color: rgba(126, 101, 165, 0.42);
  box-shadow: 0 10px 22px rgba(35, 30, 92, 0.1);
  transform: translateY(-1px);
}

.sl-preview-footer-language {
  justify-self: end;
}

.sl-preview-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.05rem;
  border-top: 1px solid rgba(230, 232, 244, 0.82);
}

@media (max-width: 991px) {
  .sl-preview-footer-main {
    grid-template-columns: minmax(230px, 1fr) minmax(260px, 1fr) auto;
  }

  .sl-preview-footer-main.has-social-links {
    grid-template-columns: minmax(230px, 1fr) minmax(260px, 1fr);
  }

  .sl-preview-footer-language {
    justify-self: start;
  }
}

@media (max-width: 767px) {
  .sl-preview-footer {
    gap: 0;
    margin-top: 2rem;
    padding-top: 1.25rem;
    padding-bottom: clamp(2rem, 8vw, 3rem);
    text-align: center;
  }

  .sl-preview-footer-main,
  .sl-preview-footer-main.has-social-links {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: 0;
    text-align: center;
  }

  .sl-preview-footer-brand-wrap {
    order: 1;
    justify-items: center;
    gap: 0.55rem;
  }

  .sl-preview-footer-brand {
    justify-self: center;
  }

  .sl-preview-footer-brand-wrap p {
    max-width: 280px;
    font-size: 0.9rem;
    line-height: 1.4;
  }

  .sl-preview-footer-social {
    order: 2;
    justify-self: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1rem;
  }

  .sl-preview-footer-social a {
    width: 42px;
    height: 42px;
  }

  .sl-preview-footer-nav {
    order: 3;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem 0.75rem;
    width: min(100%, 330px);
    margin-top: 1.25rem;
  }

  .sl-preview-footer-nav a {
    min-width: 0;
    padding: 0.4rem 0.35rem;
    text-align: center;
  }

  .sl-preview-footer-language {
    order: 4;
    justify-self: center;
    margin-top: 1.35rem;
  }

  .sl-preview-footer-bottom {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: 1.2rem;
    margin-top: 1.5rem;
    padding-top: 1.2rem;
    text-align: center;
  }

  .sl-preview-footer-legal {
    order: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem 0.75rem;
    width: min(100%, 360px);
  }

  .sl-preview-footer-legal a,
  .sl-preview-footer-legal button {
    min-width: 0;
    padding: 0.35rem 0.25rem;
    font-size: 0.86rem;
    line-height: 1.25;
    text-align: center;
  }

  .sl-preview-footer-legal a:last-child:nth-child(odd),
  .sl-preview-footer-legal button:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
  }

  .sl-preview-footer-copyright {
    order: 2;
    color: #71799b;
    font-size: 0.82rem;
    line-height: 1.35;
  }
}
