/* Chrome compartilhado (topbar, header, footer, whatsapp, scroll-top)
   + páginas legais + 404. Portado de components/*.module.css. */

/* --- TopBar --- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 41;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  row-gap: 6px;
  column-gap: 14px;
  padding: 10px 32px;
  background-color: #04363b;
  text-align: center;
}
.topbar__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
}
.topbar__tagline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.topbar__divider {
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.85rem;
}
.topbar__cta {
  color: #fc861a;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
}
.topbar__cta:hover {
  color: #ffa04b;
}
@media (max-width: 768px) {
  .topbar {
    display: none;
  }
}

/* --- Header --- */
.header {
  position: sticky;
  top: var(--topbar-height);
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 16px 32px;
  background-color: #ffffff;
  border-bottom: 1px solid #e5e7eb;
}
.header__logo-link {
  display: flex;
  align-items: center;
}
.header__logo {
  height: 48px;
  width: auto;
}
.header__nav {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 40px;
}
.header__nav-link {
  position: relative;
  padding-bottom: 6px;
  color: #066d74;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.header__nav-link:hover {
  color: #8bb02c;
}
.header__nav-link--active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background-color: #066d74;
}
.header__search-form {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(6, 109, 116, 0.18);
  color: #066d74;
}
.header__search-input {
  width: 130px;
  border: none;
  outline: none;
  background: none;
  color: #066d74;
  font-size: 0.85rem;
  font-family: inherit;
}
.header__search-input::placeholder {
  color: rgba(6, 109, 116, 0.55);
}
.header__mobile-search-form {
  display: none;
}
.header__portal-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  padding: 10px 18px;
  border-radius: 999px;
  background-color: #e5f5f6;
  border: 1px solid rgba(6, 109, 116, 0.18);
  color: #066d74;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  transition: background-color 0.15s ease;
}
.header__portal-button:hover {
  background-color: #d3edef;
}
.header__mobile-portal-button {
  display: none;
}
.header__menu-button {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  margin-left: auto;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}
.header__menu-bar {
  width: 24px;
  height: 3px;
  border-radius: 2px;
  background-color: #066d74;
}
.header__mobile-nav {
  display: none;
}
.header__mobile-nav.is-open {
  display: flex;
}
@media (max-width: 768px) {
  .header {
    top: 0;
    padding: 16px 20px;
  }
  .header__nav {
    display: none;
  }
  .header__search-form {
    display: none;
  }
  .header__portal-button {
    display: none;
  }
  .header__menu-button {
    display: flex;
  }
  .header__mobile-nav.is-open {
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 16px 20px 24px;
    gap: 20px;
    background-color: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
  }
  .header__mobile-nav-link {
    display: inline-block;
    padding-bottom: 4px;
    color: #066d74;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.03em;
  }
  .header__mobile-nav-link:hover {
    color: #8bb02c;
  }
  .header__mobile-nav-link--active {
    border-bottom: 2px solid #066d74;
  }
  .header__mobile-search-form {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid rgba(6, 109, 116, 0.18);
    color: #066d74;
  }
  .header__mobile-search-form .header__search-input {
    width: 100%;
  }
  .header__mobile-portal-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 4px;
    padding: 12px 18px;
    border-radius: 999px;
    background-color: #e5f5f6;
    border: 1px solid rgba(6, 109, 116, 0.18);
    color: #066d74;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 700;
  }
  .header__mobile-portal-button:hover {
    background-color: #d3edef;
  }
}

/* --- Footer --- */
.footer {
  background-color: #ffffff;
  padding: 56px 32px 24px;
}
.footer__columns {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 40px;
  border-bottom: 1px solid #e5e7eb;
}
.footer__brand-column {
  flex: 1.4;
  min-width: 240px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.footer__logo {
  height: 40px;
  width: auto;
  align-self: flex-start;
}
.footer__tagline {
  margin: 0;
  max-width: 32ch;
  color: #5c7376;
  font-size: 0.9rem;
  line-height: 1.6;
}
.footer__social-links {
  display: flex;
  gap: 10px;
}
.footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background-color: #e5f5f6;
  color: #066d74;
}
.footer__social-link:hover {
  background-color: #066d74;
  color: #ffffff;
}
.footer__link-column {
  flex: 1;
  min-width: 160px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer__column-title {
  margin: 0 0 4px;
  color: #04363b;
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.footer__link {
  color: #5c7376;
  text-decoration: none;
  font-size: 0.9rem;
}
.footer__link:hover {
  color: #066d74;
}
.footer__bottom-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 24px;
  color: #8a9a9c;
  font-size: 0.8rem;
}
.footer__legal-links {
  display: flex;
  gap: 20px;
}
.footer__legal-link {
  color: #8a9a9c;
  text-decoration: none;
  font-size: 0.8rem;
}
.footer__legal-link:hover {
  color: #066d74;
}

/* --- WhatsApp FAB --- */
.whatsapp-button {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background-color: #25d366;
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  transition: transform 0.15s ease, background-color 0.15s ease;
}
.whatsapp-button:hover {
  background-color: #1ebd5a;
  transform: scale(1.06);
}
@media (max-width: 768px) {
  .whatsapp-button {
    right: 16px;
    bottom: 16px;
    width: 52px;
    height: 52px;
  }
}

/* --- Scroll-to-top --- */
.scroll-top-button {
  position: fixed;
  right: 24px;
  bottom: 160px;
  z-index: 48;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  border: none;
  background-color: #066d74;
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease;
}
.scroll-top-button:hover {
  background-color: #04555a;
  transform: scale(1.06);
}
.scroll-top-button[hidden] {
  display: none;
}
@media (max-width: 768px) {
  .scroll-top-button {
    right: 16px;
    bottom: 140px;
    width: 52px;
    height: 52px;
  }
}

/* --- Legal pages (privacidade / termos / faq) --- */
.legal-page {
  background-color: #f1f5f5;
}
.legal-page__inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 32px 96px;
}
.legal-page__heading {
  margin: 0 0 8px;
  color: #04363b;
  font-size: 2rem;
  font-weight: 700;
}
.legal-page__updated {
  margin: 0 0 40px;
  color: #8a9a9c;
  font-size: 0.85rem;
}
.legal-page__section {
  margin-bottom: 32px;
}
.legal-page__section-title {
  margin: 0 0 12px;
  color: #066d74;
  font-size: 1.15rem;
  font-weight: 700;
}
.legal-page__section p {
  margin: 0 0 12px;
  color: #3d5c60;
  font-size: 0.95rem;
  line-height: 1.7;
}
.legal-page__section ul {
  margin: 0 0 12px;
  padding-left: 20px;
  color: #3d5c60;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* --- FAQ accordion --- */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-accordion__item {
  border-radius: 12px;
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  overflow: hidden;
}
.faq-accordion__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 18px 20px;
  background: none;
  border: none;
  color: #04363b;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}
.faq-accordion__icon {
  flex-shrink: 0;
  color: #066d74;
  font-size: 1.3rem;
  font-weight: 700;
  transition: transform 0.2s ease;
}
.faq-accordion__icon--open {
  transform: rotate(45deg);
}
.faq-accordion__answer {
  margin: 0;
  padding: 0 20px 20px;
  color: #3d5c60;
  font-size: 0.95rem;
  line-height: 1.7;
}
.faq-accordion__answer[hidden] {
  display: none;
}

/* --- Lis chat widget --- */
.lis-chat {
  position: fixed;
  right: 24px;
  bottom: 92px;
  z-index: 49;
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  gap: 12px;
}
.lis-chat__fab {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  border: none;
  padding: 0;
  background-color: #066d74;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: transform 0.15s ease;
}
.lis-chat__fab:hover {
  transform: scale(1.06);
}
.lis-chat__avatar {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  background-image: url('/lis.png');
  background-size: 295% auto;
  background-position: 50% 1%;
}
.lis-chat__avatar-small {
  display: block;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 999px;
  background-color: #ffffff;
  background-image: url('/lis.png');
  background-size: 295% auto;
  background-position: 50% 1%;
}
.lis-chat__panel {
  display: flex;
  flex-direction: column;
  width: 280px;
  max-width: calc(100vw - 32px);
  border-radius: 16px;
  background-color: #ffffff;
  box-shadow: 0 16px 40px rgba(4, 54, 59, 0.25);
  overflow: hidden;
}
.lis-chat__panel[hidden] {
  display: none;
}
.lis-chat__panel-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background-color: #066d74;
}
.lis-chat__panel-title {
  flex: 1;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
}
.lis-chat__close-button {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}
.lis-chat__panel-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 10px;
  padding: 16px;
  max-height: 320px;
  overflow-y: auto;
}
.lis-chat__bubble {
  align-self: flex-start;
  min-width: 0;
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 14px;
  border-bottom-left-radius: 4px;
  background-color: #f1f5f5;
  color: #04363b;
  font-size: 0.88rem;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.lis-chat__bubble--user {
  align-self: flex-end;
  background-color: #066d74;
  color: #ffffff;
  border-bottom-left-radius: 14px;
  border-bottom-right-radius: 4px;
}
.lis-chat__typing {
  display: inline-flex;
  gap: 4px;
}
.lis-chat__typing span {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background-color: #8a9a9c;
  animation: lis-typing-bounce 1s infinite ease-in-out;
}
.lis-chat__typing span:nth-child(2) {
  animation-delay: 0.15s;
}
.lis-chat__typing span:nth-child(3) {
  animation-delay: 0.3s;
}
@keyframes lis-typing-bounce {
  0%, 60%, 100% {
    transform: translateY(0);
    opacity: 0.5;
  }
  30% {
    transform: translateY(-4px);
    opacity: 1;
  }
}
.lis-chat__input-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 0 16px 12px;
}
.lis-chat__input {
  flex: 1;
  min-width: 0;
  min-height: 38px;
  max-height: 96px;
  padding: 10px 14px;
  border-radius: 20px;
  border: 1px solid #e5e7eb;
  font-size: 0.85rem;
  line-height: 1.35;
  font-family: inherit;
  outline: none;
  resize: none;
  overflow-y: auto;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.lis-chat__input:focus {
  border-color: #066d74;
}
.lis-chat__send-button {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: none;
  background-color: #066d74;
  color: #ffffff;
  font-size: 1rem;
  cursor: pointer;
}
.lis-chat__send-button:disabled {
  background-color: #b7c6c7;
  cursor: not-allowed;
}
@media (max-width: 768px) {
  .lis-chat {
    right: 16px;
    bottom: 78px;
  }
  .lis-chat__fab {
    width: 52px;
    height: 52px;
  }
}

/* --- Cookie consent banner --- */
.cookie-banner {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 340px;
  padding: 18px 20px;
  border-radius: 12px;
  background: #0b2027;
  color: #f2f6f6;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}
.cookie-banner[hidden] {
  display: none;
}
.cookie-banner__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}
.cookie-banner__text a {
  color: #7fd8de;
  text-decoration: underline;
}
.cookie-banner__actions {
  display: flex;
  gap: 10px;
}
.cookie-banner__accept,
.cookie-banner__reject {
  padding: 10px 18px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  border: 1px solid transparent;
}
.cookie-banner__accept {
  background: #066d74;
  color: #fff;
}
.cookie-banner__accept:hover {
  background: #04555a;
}
.cookie-banner__reject {
  background: transparent;
  color: #f2f6f6;
  border-color: rgba(242, 246, 246, 0.4);
}
.cookie-banner__reject:hover {
  border-color: #f2f6f6;
}
@media (max-width: 640px) {
  .cookie-banner {
    left: 12px;
    right: 12px;
    max-width: none;
  }
}

/* --- 404 --- */
.not-found {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50vh;
  background-color: #f1f5f5;
}
.not-found__inner {
  text-align: center;
}
.not-found__code {
  margin: 0;
  color: #066d74;
  font-size: 4rem;
  font-weight: 700;
}
.not-found__text {
  margin: 8px 0 24px;
  color: #3d5c60;
}
.not-found__link {
  color: #066d74;
  font-weight: 700;
  text-decoration: none;
}
.not-found__link:hover {
  color: #8bb02c;
}
