/* ── Estilos compartilhados pelas páginas internas (produtos, seguros, privacidade) ── */

/* topo escuro, com o mesmo fundo animado do hero da home */
.page-hero {
  position: relative;
  overflow: hidden;
  padding-block: 10rem 5rem;
  color: var(--white);

  & .container {
    position: relative;
    z-index: 1;
  }

  & h1 {
    font-size: 3.6rem;
    font-weight: 800;
    max-width: 44rem;
    margin-bottom: 1.25rem;

    & span {
      color: var(--orange);
    }
  }

  & p {
    color: rgba(255,255,255,.72);
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 38rem;
  }
}

/* topo com texto à esquerda e um painel à direita (números, resumo) */
.page-hero-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 4rem;
  align-items: center;
}

.page-hero-painel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.75rem;
  border-radius: 1.25rem;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);

  & ul {
    list-style: none;
    display: grid;
    gap: .75rem;
  }

  & li {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.15rem;
    border-radius: .875rem;
    background: rgba(255,255,255,.05);
  }

  & strong {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 1.9rem;
    font-weight: 800;
    line-height: 1;
    color: var(--orange);
    min-width: 5.5rem;
  }

  & span {
    font-size: .95rem;
    color: rgba(255,255,255,.8);
  }
}

/* logos das seguradoras em branco, dentro do painel */
.page-hero-parceiros {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .6rem;
  padding-top: .5rem;

  & small {
    font-size: .75rem;
    letter-spacing: .06rem;
    text-transform: uppercase;
    color: rgba(255,255,255,.5);
    white-space: nowrap;
  }

  & div {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .6rem;
  }

  /* cores originais sobre uma pastilha branca (inverter as cores quebrava o logo da Porto) */
  & img {
    height: 2.1rem;
    width: auto;
    padding: .35rem .5rem;
    border-radius: .5rem;
    background: var(--white);
  }
}

.breadcrumb {
  display: flex;
  gap: .6rem;
  font-size: .9rem;
  color: rgba(255,255,255,.55);
  margin-bottom: 1.5rem;

  & a:hover {
    color: var(--orange);
  }

  & [aria-current] {
    color: var(--white);
  }
}

/* atalhos em formato de "pílula" */
.atalhos {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: 2.25rem;

  & a {
    padding: .5rem 1.1rem;
    border-radius: 999px;
    font-size: .9rem;
    font-weight: 500;
    color: rgba(255,255,255,.85);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.22);
    transition: color .3s ease, box-shadow .3s ease, background-color .3s ease;

    &:hover {
      color: var(--orange);
      box-shadow: inset 0 0 0 1px var(--orange);
      background-color: rgba(240,120,32,.08);
    }
  }
}

/* ── Página de texto corrido (política de privacidade) ── */
.texto-legal {
  background: var(--white);
  padding-block: 5rem;

  & .container {
    max-width: 48rem;
  }

  & h2 {
    font-size: 1.5rem;
    color: var(--navy);
    margin: 2.5rem 0 .75rem;
  }

  & h2:first-child {
    margin-top: 0;
  }

  & p,
  & li {
    line-height: 1.75;
    color: var(--text);
  }

  & p + p {
    margin-top: .9rem;
  }

  & ul {
    padding-left: 1.25rem;
    margin-top: .5rem;
    display: grid;
    gap: .4rem;
  }

  & a {
    color: var(--orange-txt);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
  }

  & .atualizado {
    font-size: .9rem;
    color: var(--muted);
    margin-bottom: 2rem;
  }
}

@media (width < 62.5rem) {
  .page-hero-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .page-hero-painel {
    max-width: 30rem;
  }
}

@media (width <= 40rem) {
  .page-hero {
    padding-block: 8rem 3.5rem;

    & h1 {
      font-size: 2.4rem;
    }
  }

  .page-hero-painel {
    padding: 1.25rem;

    & strong {
      font-size: 1.6rem;
      min-width: 4.75rem;
    }
  }

  .texto-legal {
    padding-block: 3.5rem;
  }
}
