/* Footer section */

.footer-section {
  padding: 0;
  display: block;
  background-color: var(--text-main);
  color: #FFFFFF;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 64px 48px 40px;
  display: flex;
  flex-direction: column;
  gap: 96px;
  border-left: 1px solid #262626;
  border-right: 1px solid #262626;
}

/* Top */

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 320px;
}

.footer-logo {
  display: flex;
  align-items: center;
}

.footer-logo img {
  height: 28px;
  width: auto;
  display: block;
}

.footer-description {
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  letter-spacing: -0.08px;
  color: #BFBFBF;
  margin: 0;
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 11px;
}

.footer-social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 36px;
  border-radius: 7px;
  background-color: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  transition: background-color 0.2s ease;
}

.footer-social:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.footer-social i,
.footer-social svg,
.footer-social img {
  width: 20px;
  height: 20px;
}

.footer-columns {
  display: flex;
  gap: 72px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footer-col-title {
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  letter-spacing: -0.16px;
  color: #838383;
  margin: 0;
}

.footer-col-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col-links a {
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  letter-spacing: -0.096px;
  color: #E5E5E5;
}

.footer-col-links a:hover {
  color: #FFFFFF;
}

/* Touch screens: the 12px gaps become padding on each link, so the layout is unchanged but every link
   is a 36px tap target instead of 24px */
@media (pointer: coarse) {
  .footer-col-links {
    gap: 0;
    margin: -6px 0;
  }

  .footer-col-links a {
    padding: 6px 0;
  }

  .footer-legal a,
  .footer-legal-btn {
    padding: 6px 0;
    margin: -6px 0;
  }
}

/* Bottom */

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 20px;
  border-top: 1px solid #262626;
  flex-wrap: wrap;
}

.footer-copyright {
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  letter-spacing: -0.16px;
  color: #8F8F8F;
  margin: 0;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: -0.16px;
  color: #8F8F8F;
}

/* Ten policy links: they get their own full-width row above the copyright and credit line */
.footer-bottom .footer-legal {
  order: -1;
  flex-basis: 100%;
}

.footer-legal a {
  color: #8F8F8F;
  white-space: nowrap;
}

.footer-legal a:hover {
  color: #FFFFFF;
}

/* "Cookie settings" reopens the consent banner (window.TulvoOpenConsent from GTM); it looks like the links */
.footer-legal-btn {
  appearance: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  letter-spacing: inherit;
  color: #8F8F8F;
  white-space: nowrap;
  cursor: pointer;
}

.footer-legal-btn:hover {
  color: #FFFFFF;
}

.footer-credit {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  letter-spacing: -0.16px;
  color: #8F8F8F;
}

.footer-credit i,
.footer-credit img {
  width: 16px;
  height: 16px;
}

.footer-credit a {
  color: #8F8F8F;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-credit a:hover {
  color: #FFFFFF;
}

/* Small laptops / tablet landscape: tighter column gaps so links stay on one line ("Boards & Templates") */
@media (min-width: 901px) and (max-width: 1100px) {
  .footer-columns {
    gap: 40px;
  }

  .footer-col-links a {
    white-space: nowrap;
  }
}

@media (max-width: 900px) {
  .footer-top {
    flex-direction: column;
    gap: 48px;
  }

  .footer-columns {
    gap: 40px;
  }
}

@media (max-width: 640px) {
  .footer-container {
    padding: 48px 24px 32px;
    gap: 56px;
  }

  .footer-columns {
    flex-wrap: wrap;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

/* The legal links no longer fit on one phone line: drop the dots and let them wrap by themselves */
@media (max-width: 480px) {
  .footer-legal {
    gap: 6px 20px;
  }

  .footer-legal span {
    display: none;
  }
}
