/* ==========================================================================
   root-8a5edab2--footer.css — Footer section (scoped under .x-footer)
   Zone A: grey disclosures (FDIC grid 3×2, legal paragraphs, MAP #)
   Zone B: navy (link bank, social, copyright)
   ========================================================================== */

.x-footer {
  font-family: var(--font-body);
  font-size: var(--fs-14);
  line-height: var(--lh-label);
  text-align: left;
}

.x-footer__inner {
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--sp-24);
}

/* ---- Zone A: disclosures ---- */

.x-footer__disclosures {
  background: var(--color-grey-bg);
  display: flex;
  flex-direction: column;
  gap: var(--sp-16);
  align-items: flex-start;
  color: var(--color-grey);
}

.x-footer__legal-box {
  margin: var(--sp-16) 0;
  color: var(--color-grey);
}

.x-footer__legal-box > p {
  margin: 0 0 var(--sp-8);
}

.x-footer__boxes {
  display: flex;
  flex-wrap: wrap;
  margin: 0 0 var(--sp-16);
  border: 1px solid var(--color-grey);
  text-align: center;
}

.x-footer__boxes li {
  flex: 0 0 calc(33.3333% - 1px);
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-bold);
  font-weight: 700;
  font-size: var(--fs-16);
  line-height: var(--lh-body);
  color: var(--color-grey);
  padding: 28px var(--sp-16);
  border-right: 1px solid var(--color-grey);
  border-bottom: 1px solid var(--color-grey);
}

.x-footer__boxes li:nth-child(3n) {
  border-right: 0;
}

.x-footer__boxes li:nth-last-child(-n+3) {
  border-bottom: 0;
}

.x-footer__legal-text p {
  font-family: var(--font-body);
  font-size: var(--fs-14);
  line-height: var(--lh-legal);
  color: var(--color-grey);
  margin: 0 0 var(--sp-16);
}

.x-footer__legal-text a {
  font-family: var(--font-medium);
  font-weight: 500;
  color: var(--color-link);
  text-decoration: none;
}

.x-footer__legal-text a:hover {
  text-decoration: underline;
}

.x-footer__map {
  border-top: 1px solid var(--color-border-light);
  padding: var(--sp-16) 0 0;
  margin: 0 0 var(--sp-16);
  font-size: var(--fs-14);
  line-height: var(--lh-label);
  color: var(--color-grey);
}

/* ---- Zone B: navy ---- */

.x-footer__navy {
  background: var(--color-navy);
  color: var(--color-white);
  padding: var(--sp-32) 0 40px;
  font-family: var(--font-body);
  font-size: var(--fs-14);
  line-height: var(--lh-label);
}

/* Link bank — single ul, wraps naturally. Separator mechanism exactly as source:
   li::after with a 1×30 pipe SVG background + letter-spacing:25px (the trailing
   tail trims at line ends). li line-height: 2 (=28px). */

.x-footer__links-list {
  padding: var(--sp-8) 0;
  text-align: center;
  display: block;
}

.x-footer__links-list li {
  display: inline;
  font-size: var(--fs-14);
  line-height: 2; /* 28px — source: line-height:2 */
  text-align: left;
}

.x-footer__links-list li::after {
  content: " ";
  letter-spacing: 25px;
  background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIzMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48dGV4dCB4PSIxMDAlIiB5PSIxMDAlIiBkb21pbmFudC1iYXNlbGluZT0iYWxwaGFiZXRpYyIgdGV4dC1hbmNob3I9Im1pZGRsZSIgZmlsbD0iI2JhYmFiYSIgc3Ryb2tlPSIjZDVkNWQ1IiBmb250LXNpemU9IjMwIj58PC90ZXh0Pjwvc3ZnPg==");
  background-position: 50%;
  background-repeat: no-repeat;
}

.x-footer__links-list li:last-child::after {
  content: none;
}

.x-footer__links-list a,
.x-footer__links-list button {
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: var(--fs-14);
  line-height: var(--lh-28);
  text-decoration: none;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  display: inline;
  white-space: nowrap;
}

/* source: a#footer_bofa_online_banking_service_agreement { white-space: normal } */
.x-footer__links-list a.x-footer__obsa {
  white-space: normal;
}

.x-footer__links-list a:hover,
.x-footer__links-list button:hover {
  text-decoration: underline;
}

.x-footer__adchoices-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: var(--color-border-light);
  border-radius: 0 0 0 5px;
  margin-left: 6px;
  vertical-align: middle;
}

.x-footer__ccpa-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-left: 6px;
  vertical-align: middle;
}

/* source: .st0 fill #fff; .st1 fill none, stroke #fff */
.x-footer__ccpa-icon .st0 {
  fill: var(--color-white);
}

.x-footer__ccpa-icon .st1 {
  fill: none;
  stroke: var(--color-white);
  stroke-miterlimit: 10;
}

/* Social */

.x-footer__social {
  display: flex;
  justify-content: center;
}

.x-footer__social-module {
  width: 284px;
}

.x-footer__social-header {
  font-family: var(--font-bold);
  font-weight: 700;
  font-size: var(--fs-14);
  line-height: var(--lh-label);
  color: var(--color-white);
  padding-top: var(--sp-24);
  margin-bottom: var(--sp-8);
  text-align: center;
}

.x-footer__social-icons {
  display: flex;
  justify-content: space-between;
}

.x-footer__social-icons li a {
  display: block;
  width: 24px;
  height: 24px;
  margin: var(--sp-4);
}

.x-footer__social-icons svg {
  display: block;
  width: 24px;
  height: 24px;
}

.x-footer__social-icons svg path {
  fill: var(--color-white);
  transition: all 0.3s ease;
}

/* Copyright */

.x-footer__copyright {
  padding-top: var(--sp-20);
  text-align: center;
  color: var(--color-white);
  font-size: var(--fs-14);
  line-height: var(--lh-label);
}

.x-footer__copyright a {
  color: var(--color-white);
  font-family: var(--font-medium);
  font-weight: 500;
  text-decoration: none;
  padding: 0 5px;
}

.x-footer__copyright a:hover {
  text-decoration: underline;
}

.x-footer__ehl-icon {
  display: inline-block;
  margin-left: 4px;
  vertical-align: middle;
}

.x-footer__patent {
  margin: 13px 0 var(--sp-16);
}

/* ---- Responsive: ≤767px boxes go 1 column ---- */

@media (max-width: 767px) {
  .x-footer__boxes li {
    flex-basis: 100%;
    border-right: 0;
    border-bottom: 1px solid var(--color-grey);
  }

  .x-footer__boxes li:last-child {
    border-bottom: 0;
  }
}
