@import url("/css/design_v2/color.css");
@import url("/css/design_v2/font.css");
@import url("/css/design_v2/standards.css");

.pp-v2-footer {
  background: var(--Color-Primary-White);
  padding: var(--Space-XL) 0;
}

.pp-v2-footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--Space-L);
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--Space-L);
  flex-wrap: nowrap;
}

.pp-v2-footer-brand {
  flex-shrink: 0;
}

.pp-v2-footer-logo {
  display: block;
}

.pp-v2-footer-logo-mark {
  height: 40px;
  width: auto;
}

.pp-v2-footer-nav {
  display: flex;
  flex: 1;
  justify-content: space-between;
  gap: var(--Space-M);
}

/* Tablet and below: make footer columns a 2x2 grid with heading above list */
@media (max-width: 1239px) {
  .pp-v2-footer-nav {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--Space-L);
  }

  .pp-v2-footer-col {
    display: grid;
    grid-template-rows: auto 1fr;
    align-content: start;
  }
}

.pp-v2-footer-col {
  display: flex;
  flex-direction: column;
  gap: var(--Space-S);
  flex-shrink: 0;
}

.pp-v2-footer-heading {
  color: var(--Color-Text-Navy-500);
  margin: 0;
}

.pp-v2-footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--Space-XS);
}

.pp-v2-footer-list li {
  white-space: nowrap;
}

.pp-v2-footer-list a {
  display: inline-block;
  color: var(--Color-Text-Navy-500) !important;
  text-decoration: none !important;
  transition: var(--Transition-Transform), var(--Transition-Color);
}

.pp-v2-footer-list a:visited {
  color: var(--Color-Text-Navy-500) !important;
}

.pp-v2-footer-list li:hover a,
.pp-v2-footer-list a:hover {
  color: var(--Color-Primary-Red-600) !important;
  text-decoration: none !important;
  transform: translateX(4px);
}

.pp-v2-footer-bbb {
  display: flex;
  align-items: flex-start;
  gap: var(--Space-M);
  flex-shrink: 0;
}

.pp-v2-footer-bbb-svg {
  width: 140px;
  height: 50px;
  flex-shrink: 0;
}

.pp-v2-footer-bbb-text {
  display: flex;
  flex-direction: column;
  gap: var(--Space-3XS);
}

.pp-v2-footer-bbb-rating {
  color: var(--Color-Secondary-Blue-500);
  text-decoration: none;
  white-space: nowrap;
  font-size: 0.875rem;
}

.pp-v2-footer-bbb-rating:hover {
  text-decoration: underline;
}

.pp-v2-footer-bbb-link {
  color: var(--Color-Secondary-Blue-500);
  text-decoration: underline;
  white-space: nowrap;
  font-size: 0.875rem;
}

.pp-v2-footer-bbb-link:hover {
  text-decoration: underline;
}

.pp-v2-footer-bottom {
  border-top: 1px solid var(--Color-Border-Light);
  margin-top: var(--Space-L);
  padding-top: var(--Space-M);
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--Space-L);
  padding-right: var(--Space-L);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Tablet and below: stack BBB left and social right under the grid; legal one per line */
@media (max-width: 1239px) {
  .pp-v2-footer-inner {
    flex-direction: column;
    align-items: stretch;
    gap: var(--Space-L);
  }

  .pp-v2-footer-bbb {
    order: 2;
  }

  .pp-v2-footer-bottom {
    order: 3;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--Space-L);
  }

  .pp-v2-footer-legal {
    flex: 1;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--Space-XS);
    text-align: left;
  }

  .pp-v2-footer-legal a {
    display: block;
    text-align: left;
  }

  .pp-v2-footer-copy {
    display: block;
    text-align: left;
    width: 100%;
  }

  .pp-v2-footer-social {
    flex: 0 0 auto;
  }
}

.pp-v2-footer-legal {
  display: flex;
  align-items: center;
  gap: var(--Space-M);
  flex-wrap: wrap;
}

.pp-v2-footer-copy {
  color: var(--Color-Text-Navy-500);
}

.pp-v2-footer-legal a {
  color: var(--Color-Text-Navy-500);
  text-decoration: none;
}

.pp-v2-footer-legal a:hover {
    color: var(--Color-Text-Navy-500);
  text-decoration: underline;
}

.pp-v2-footer-social {
  display: flex;
  align-items: center;
  gap: var(--Space-LM);
  flex-wrap: nowrap;
}

.pp-v2-footer-social .pp-v2-icon img {
  display: block;
  height: 20px;
  width: 20px;
}

