/**
 * Footer layout v2 — structure/spacing only; colors from gp-sidebar-redesign + theme vars.
 */

/*
 * Vue build leaves [data-v-73856f8a]{display:flex;justify-content:space-between} in
 * theme-chunk-merged.css. That attribute is still on #footer / .gp-footer-v2__inner,
 * turning the footer into a horizontal flex row (wide “three columns”). Reset to normal
 * stacked flow to match the target mockup.
 */
#footer.gp-footer-v2 {
  display: block;
  justify-content: initial;
  flex-wrap: initial;
}

#footer.gp-footer-v2 .gp-footer-v2__inner {
  width: 100%;
  max-width: 71.25rem;
  margin-left: auto;
  margin-right: auto;
  display: block;
  justify-content: initial;
  flex-wrap: initial;
  padding: 3rem max(2rem, env(safe-area-inset-left, 0px)) 2rem max(2rem, env(safe-area-inset-right, 0px));
  box-sizing: border-box;
}

#footer.gp-footer-v2 .gp-footer-v2__brand {
  text-align: left;
}

#footer.gp-footer-v2 .gp-footer-v2__name-link {
  text-decoration: none;
  display: inline-block;
}

#footer.gp-footer-v2 .gp-footer-v2__name {
  margin: 0;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

#footer.gp-footer-v2 .gp-footer-v2__tagline {
  margin: 0.35rem 0 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  opacity: 0.92;
}

#footer.gp-footer-v2 .gp-footer-v2__desc {
  margin: 1rem 0 0;
  max-width: 36rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  opacity: 0.88;
}

#footer.gp-footer-v2 .gp-footer-v2__regions {
  margin: 1rem 0 0;
  font-size: 0.875rem;
  line-height: 1.5;
  opacity: 0.85;
}

#footer.gp-footer-v2 hr.gp-footer-v2__rule {
  margin: 1.75rem 0;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

#footer.gp-footer-v2 .gp-footer-v2__mid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 1.5rem;
}

#footer.gp-footer-v2 nav.gp-footer-v2__quick {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.35rem;
}

#footer.gp-footer-v2 .gp-footer-v2__quick a {
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

#footer.gp-footer-v2 .gp-footer-v2__quick a:hover,
#footer.gp-footer-v2 .gp-footer-v2__quick a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

#footer.gp-footer-v2 a.gp-footer-v2__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.35rem;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 9999px;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease, border-color 0.2s ease;
  box-sizing: border-box;
}

#footer.gp-footer-v2 a.gp-footer-v2__cta:hover,
#footer.gp-footer-v2 a.gp-footer-v2__cta:focus-visible {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.65);
}

#footer.gp-footer-v2 .gp-footer-v2__bottom {
  margin-top: 2.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

#footer.gp-footer-v2 .gp-footer-v2__contact-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1rem;
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.5;
}

#footer.gp-footer-v2 .gp-footer-v2__contact-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
}

#footer.gp-footer-v2 .gp-footer-v2__contact-item:hover,
#footer.gp-footer-v2 .gp-footer-v2__contact-item:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

#footer.gp-footer-v2 .gp-footer-v2__sep {
  opacity: 0.45;
  user-select: none;
}

#footer.gp-footer-v2 .gp-footer-v2__icon {
  flex-shrink: 0;
  width: 1.05em;
  height: 1.05em;
  vertical-align: -0.1em;
}

#footer.gp-footer-v2 .gp-footer-v2__social-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.25rem 0.35rem;
  font-size: 0.9375rem;
}

#footer.gp-footer-v2 .gp-footer-v2__social-row a {
  text-decoration: none;
  font-weight: 600;
}

#footer.gp-footer-v2 .gp-footer-v2__social-row a:hover,
#footer.gp-footer-v2 .gp-footer-v2__social-row a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

#footer.gp-footer-v2 .gp-footer-v2__dot {
  opacity: 0.5;
  user-select: none;
}

#footer.gp-footer-v2 .gp-footer-v2__legal-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.65rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  opacity: 0.95;
}

#footer.gp-footer-v2 .gp-footer-v2__legal-links {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.65rem;
}

#footer.gp-footer-v2 .gp-footer-v2__legal-links a {
  font-size: inherit;
  text-decoration: none;
  margin: 0 !important;
}

#footer.gp-footer-v2 .gp-footer-v2__legal-links a:hover,
#footer.gp-footer-v2 .gp-footer-v2__legal-links a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

#footer.gp-footer-v2 .gp-footer-v2__legal-sep {
  opacity: 0.45;
  user-select: none;
}

/* Language switch inherits #footer-bottom rules; reset margins in new row */
#footer.gp-footer-v2 #footer-bottom.gp-footer-v2__legal-bar {
  width: 100%;
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

#footer.gp-footer-v2 #footer-bottom.gp-footer-v2__legal-bar .container.translate {
  display: contents;
}

#footer.gp-footer-v2 #footer-bottom.gp-footer-v2__legal-bar .copyright {
  margin: 0;
}

#footer.gp-footer-v2 .gp-footer-v2__legal-row .gp-lang-switch {
  flex-shrink: 0;
}

@media (max-width: 767px) {
  #footer.gp-footer-v2 .gp-footer-v2__inner {
    padding-top: 2.5rem;
    padding-bottom: 1.75rem;
  }

  #footer.gp-footer-v2 .gp-footer-v2__mid {
    flex-direction: column;
    align-items: stretch;
  }

  #footer.gp-footer-v2 nav.gp-footer-v2__quick {
    justify-content: flex-start;
    gap: 0.65rem 1rem;
  }

  #footer.gp-footer-v2 a.gp-footer-v2__cta {
    width: 100%;
    max-width: 20rem;
  }
}
