/* Footer / Contract — 1.0.36.3
   Dono: Footer / Contract
   Origem preservada: assets/css/components/contracts/footer-contract.css
   Regra: CSS deve morar no componente/página dona.
*/
/* Footer component contract — 1.0.36.3
 * Responsabilidade: layout do rodapé, inclusive mobile em duas linhas/duas colunas.
 */
.site-footer[data-component="Footer"],
.site-footer[data-component="Footer"] * { box-sizing: border-box; }

@media (max-width: 767px) {
  .site-footer[data-component="Footer"] {
    padding: 30px 24px 24px;
    background: #f2f5fe;
  }

  .site-footer[data-component="Footer"] .footer-inner {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
  }

  .site-footer[data-component="Footer"] .footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      "brand brand"
      "pages services"
      "courses contact";
    column-gap: 26px;
    row-gap: 30px;
    align-items: start;
    margin: 0 0 24px;
  }

  .site-footer[data-component="Footer"] .footer-grid > * {
    min-width: 0;
    width: 100%;
  }

  .site-footer[data-component="Footer"] .site-footer__intro {
    grid-area: brand;
    padding: 0 0 22px;
    border-bottom: 1px solid rgba(79, 93, 115, 0.13);
  }

  .site-footer[data-component="Footer"] .site-footer__nav--pages { grid-area: pages; }
  .site-footer[data-component="Footer"] .site-footer__nav--services { grid-area: services; }

  .site-footer[data-component="Footer"] .site-footer__nav--courses,
  .site-footer[data-component="Footer"] .site-footer__nav--legal {
    display: block;
    grid-area: courses;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .site-footer[data-component="Footer"] .site-footer__contact {
    grid-area: contact;
    align-self: start;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .site-footer[data-component="Footer"] .footer-brand,
  .site-footer[data-component="Footer"] .footer-brand-link {
    display: inline-flex;
    max-width: min(180px, 58vw);
  }

  .site-footer[data-component="Footer"] .footer-brand-image,
  .site-footer[data-component="Footer"] .custom-logo {
    width: auto;
    max-width: min(180px, 58vw);
    max-height: 46px;
    object-fit: contain;
  }

  .site-footer[data-component="Footer"] .footer-desc {
    max-width: 39ch;
    margin: 12px 0 0;
    color: #5f6677;
    font-size: 0.9rem;
    line-height: 1.58;
  }

  .site-footer[data-component="Footer"] .footer-col-title {
    margin: 0 0 13px;
    color: #111827;
    font-size: 0.74rem;
    line-height: 1.15;
    font-weight: 850;
    letter-spacing: 0.17em;
    text-transform: uppercase;
  }

  .site-footer[data-component="Footer"] .site-footer__contact .footer-col-title {
    margin-bottom: 13px;
    font-size: 0.86rem;
    font-weight: 780;
    letter-spacing: 0;
    text-transform: none;
  }

  .site-footer[data-component="Footer"] .footer-links {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .site-footer[data-component="Footer"] .footer-links li {
    min-width: 0;
    margin: 0;
    padding: 0;
  }

  .site-footer[data-component="Footer"] .footer-links a,
  .site-footer[data-component="Footer"] .contact-inline-meta {
    display: inline-flex;
    width: auto;
    max-width: 100%;
    min-height: 24px;
    align-items: center;
    padding: 0;
    color: #555d70;
    font-size: 0.92rem;
    line-height: 1.42;
    text-decoration: none;
    white-space: normal;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
  }

  .site-footer[data-component="Footer"] .site-footer__contact .footer-links {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .site-footer[data-component="Footer"] .site-footer__contact .contact-inline-meta {
    gap: 10px;
    font-weight: 450;
    white-space: nowrap;
  }

  .site-footer[data-component="Footer"] .site-footer__contact .contact-inline-icon,
  .site-footer[data-component="Footer"] .site-footer__contact .contact-inline-icon--lg {
    display: inline-flex;
    width: 18px;
    height: 18px;
    min-width: 18px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #115AE6;
    box-shadow: none;
  }

  .site-footer[data-component="Footer"] .site-footer__contact .contact-inline-icon svg,
  .site-footer[data-component="Footer"] .site-footer__contact .contact-inline-icon--lg svg {
    width: 15px;
    height: 15px;
  }

  .site-footer[data-component="Footer"] .site-footer__contact .footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 18px 0 0;
  }

  .site-footer[data-component="Footer"] .site-footer__contact .social-btn {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border: 1px solid rgba(79, 93, 115, 0.16);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.70);
    color: #455064;
    box-shadow: 0 8px 18px rgba(28, 36, 70, 0.04);
  }

  .site-footer[data-component="Footer"] .footer-bottom {
    display: grid;
    gap: 9px;
    padding: 18px 0 0;
    border-top: 1px solid rgba(79, 93, 115, 0.13);
  }

  .site-footer[data-component="Footer"] .footer-bottom p,
  .site-footer[data-component="Footer"] .footer-bottom-links a {
    color: #7a8497;
    font-size: 0.76rem;
    line-height: 1.45;
  }

  .site-footer[data-component="Footer"] .footer-bottom-links {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 14px;
  }
}

@media (max-width: 380px) {
  .site-footer[data-component="Footer"] { padding-right: 20px; padding-left: 20px; }
  .site-footer[data-component="Footer"] .footer-grid { column-gap: 20px; }
  .site-footer[data-component="Footer"] .footer-links a,
  .site-footer[data-component="Footer"] .contact-inline-meta { font-size: 0.88rem; }
}

/* Footer legal links mobile lock — 1.0.36.3
   Contract: every page must match the Home footer final line:
   "Política de Privacidade  Termos de Uso  Cookies" in one horizontal row.
*/
@media (max-width: 767px) {
  .site-footer[data-component="Footer"] .footer-bottom-links,
  .site-footer .footer-bottom-links {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    width: 100%;
    max-width: 100%;
    white-space: nowrap;
    overflow: visible;
  }

  .site-footer[data-component="Footer"] .footer-bottom-links a,
  .site-footer .footer-bottom-links a {
    display: inline-flex;
    width: auto;
    max-width: none;
    flex: 0 0 auto;
    min-width: 0;
    padding: 0;
    margin: 0;
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
    font-size: clamp(0.68rem, 2.9vw, 0.76rem);
    line-height: 1.45;
  }

  .site-footer[data-component="Footer"] .footer-bottom-links a + a,
  .site-footer .footer-bottom-links a + a {
    margin-left: clamp(12px, 4.4vw, 22px);
  }
}

@media (max-width: 360px) {
  .site-footer[data-component="Footer"] .footer-bottom-links a,
  .site-footer .footer-bottom-links a {
    font-size: 0.65rem;
  }

  .site-footer[data-component="Footer"] .footer-bottom-links a + a,
  .site-footer .footer-bottom-links a + a {
    margin-left: 10px;
  }
}
