/*
 * Delt footer hentet fra /tjenester.html.
 * Selektorene er avgrenset til .adx-site-footer for å unngå at sidestiler
 * påvirker footeren på sikkerhet.html og erfaring.html.
 */
footer.adx-site-footer {
  margin-top: 40px;
  padding: 38px 0;
  border-top: 1px solid rgba(15, 23, 42, .08);
  color: #556079;
  background: #f6f8fc;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

footer.adx-site-footer .adx-footer-container {
  width: min(1200px, calc(100% - 40px));
  margin-inline: auto;
}

footer.adx-site-footer .footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(15, 23, 42, .10);
}

footer.adx-site-footer .footer-col h4 {
  margin: 0 0 12px;
  color: #0f172a;
  font-size: 1rem;
}

footer.adx-site-footer .footer-col p {
  margin: 0 0 8px;
  color: #556079;
  font-size: .9rem;
}

footer.adx-site-footer .footer-col a {
  color: #556079;
  text-decoration: none;
}

footer.adx-site-footer .footer-col a:hover,
footer.adx-site-footer .footer-col a:focus-visible {
  color: #2563eb;
}

footer.adx-site-footer .footer-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

footer.adx-site-footer .footer-col li {
  margin-bottom: 8px;
}

footer.adx-site-footer .footer-col li a {
  font-size: .9rem;
}

footer.adx-site-footer .footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 24px;
}

footer.adx-site-footer .footer-bottom p {
  margin: 0;
  color: #556079;
  font-size: .85rem;
}

footer.adx-site-footer .share-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
}

footer.adx-site-footer .share-label {
  color: #556079;
  font-size: .85rem;
}

footer.adx-site-footer .share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(15, 23, 42, .10);
  border-radius: 10px;
  color: #556079;
  background: #f1f4fb;
  text-decoration: none;
  transition: all .2s ease;
}

footer.adx-site-footer .share-btn:hover,
footer.adx-site-footer .share-btn:focus-visible {
  color: #fff;
  background: #2563eb;
  border-color: #2563eb;
  transform: translateY(-2px);
}

footer.adx-site-footer .share-btn svg {
  width: 18px;
  height: 18px;
}

footer.adx-site-footer .share-fb:hover,
footer.adx-site-footer .share-fb:focus-visible {
  background: #1877f2;
  border-color: #1877f2;
}

footer.adx-site-footer .share-li:hover,
footer.adx-site-footer .share-li:focus-visible {
  background: #0a66c2;
  border-color: #0a66c2;
}

.adx-copy-toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  z-index: 9999;
  padding: 12px 24px;
  border-radius: 10px;
  color: #fff;
  background: #0f172a;
  font: .9rem/1.4 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%);
  transition: opacity .3s ease;
}

.adx-copy-toast.show {
  opacity: 1;
}

@media (max-width: 520px) {
  footer.adx-site-footer .adx-footer-container {
    width: min(100% - 28px, 1200px);
  }

  footer.adx-site-footer .footer-grid {
    gap: 24px;
  }
}
