/* Plugable — páginas legais (Termos de Uso, Política de Privacidade) no layout do site novo.
   Usa os tokens e componentes de site.css (cabeçalho, rodapé, botões). */

.legal-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(255 255 255 / 92%);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.legal-header .nav { padding-bottom: 1.1rem; padding-top: 1.1rem; }
@media (min-width: 768px) { .legal-header .nav { padding-top: 1.25rem; padding-bottom: 1.25rem; } }
.legal-header .nav .logo { width: 150px; }
@media (min-width: 1024px) { .legal-header .nav .logo { width: 170px; } }
.legal-header .nav-links a { font-size: .875rem; }
@media (min-width: 768px) { .legal-header .nav-links a { font-size: 1rem; } }

/* Página ancorada na largura da tela: nada empurra a página para o lado (celular) */
html, body { overflow-x: hidden; }
.pl-p { color: var(--text); font-family: 'Sora', system-ui, sans-serif; overflow-x: clip; }
.pl-p *, .pl-p *::before, .pl-p *::after { box-sizing: border-box; }
.pl-p section { padding: 5rem 1.25rem; }
@media (min-width: 768px) { .pl-p section { padding: 6.5rem 2.5rem; } }
.pl-p .pl-p__wrap { max-width: 1160px; margin: 0 auto; }

.pl-p__eyebrow {
  margin: 0 0 1.1rem;
  color: var(--blue);
  font-weight: 500;
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-align: center;
}

/* Abertura */
.pl-p__hero { text-align: center; padding-bottom: 3.5rem !important; }
.pl-p__hero h1 {
  margin: 0 auto 1.4rem;
  font-weight: 800;
  font-size: 50px;
  line-height: 1;
  letter-spacing: -.025em;
  text-transform: uppercase;
  color: var(--heading);
}
.pl-p__hero p { max-width: 680px; margin: 0 auto 1.6rem; color: var(--muted); font-weight: 300; font-size: clamp(1rem, 1.6vw, 1.25rem); line-height: 1.6; }
.pl-p__hero .pl-p__meta {
  display: inline-block;
  margin: 0;
  padding: .5rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--tint);
  color: var(--muted);
  font-size: .85rem;
  font-weight: 400;
}

/* Painéis azuis: "O essencial" e chamada final */
.pl-p--dark { padding-top: 0 !important; padding-bottom: 0 !important; }
.pl-p--dark .pl-p__wrap {
  padding: 3.5rem 1.5rem;
  border-radius: 40px;
  background:
    radial-gradient(circle at 80% 10%, rgb(111 163 224 / 40%), transparent 55%),
    linear-gradient(160deg, #004084 0%, #0B5AA8 60%, #1F66B8 100%);
  color: #fff;
  box-shadow: 0 30px 70px rgb(0 64 132 / 18%);
}
@media (min-width: 768px) { .pl-p--dark .pl-p__wrap { padding: 4.5rem 3.5rem; border-radius: 60px; } }
.pl-p__eyebrow--dark { color: rgb(255 255 255 / 75%); }

.pl-p__summary h2, .pl-p__final h2 {
  max-width: 20ch;
  margin: 0 auto 2.5rem;
  color: #fff;
  font-weight: 700;
  font-size: clamp(1.75rem, 3.4vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -.02em;
  text-align: center;
}
.pl-p__cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.pl-p__card {
  padding: 1.6rem 1.4rem;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 24px;
  background: rgb(255 255 255 / 8%);
}
.pl-p__card h3 { margin: 0 0 .5rem; color: #fff; font-weight: 600; font-size: 1.05rem; }
.pl-p__card p { margin: 0; color: rgb(255 255 255 / 80%); font-weight: 300; font-size: .95rem; line-height: 1.6; }

/* Corpo com índice lateral */
.pl-p__body { padding-top: 5rem !important; }
/* minmax(0, …): a coluna não cresce com a tabela; quem rola é só o quadro da tabela */
.pl-p__layout { display: grid; grid-template-columns: minmax(0, 250px) minmax(0, 1fr); gap: 4rem; align-items: start; }
.pl-p__layout > * { min-width: 0; }
.pl-p__toc {
  position: sticky;
  top: 110px;
  max-height: calc(100vh - 140px);
  overflow-y: auto;
  padding: 1.4rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--tint);
  font-size: .9rem;
}
.pl-p__toc-title { margin: 0 0 .8rem; color: var(--blue); font-weight: 500; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; }
.pl-p__toc ol { margin: 0; padding: 0; list-style: none; border-left: 1px solid var(--line); }
.pl-p__toc a {
  display: block;
  margin-left: -1px;
  padding: .35rem 0 .35rem .9rem;
  border-left: 2px solid transparent;
  color: var(--muted);
  line-height: 1.4;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.pl-p__toc a:hover, .pl-p__toc a.is-current { color: var(--blue); border-left-color: var(--blue); }
.pl-p__toc-mobile { display: none; }

.pl-p__content { max-width: 740px; min-width: 0; color: var(--text); font-weight: 300; font-size: 1.05rem; line-height: 1.75; overflow-wrap: break-word; }
.pl-p__content a { overflow-wrap: anywhere; } /* e-mails e endereços longos quebram em vez de alargar a página */
.pl-p__table { max-width: 100%; -webkit-overflow-scrolling: touch; }
.pl-p__content h2 {
  margin: 4rem 0 1.1rem;
  color: var(--text);
  font-weight: 600;
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  line-height: 1.25;
  letter-spacing: -.01em;
  scroll-margin-top: 120px;
}
.pl-p__content h2:first-child { margin-top: 0; }
.pl-p__content h2 span { margin-right: .5rem; color: var(--blue); font-weight: 800; }
.pl-p__content h3 { margin: 1.8rem 0 .6rem; color: var(--text); font-weight: 500; font-size: 1.15rem; }
.pl-p__content p { margin: 0 0 1rem; }
.pl-p__content ul, .pl-p__content ol { margin: 0 0 1rem; padding-left: 1.4rem; }
.pl-p__content li { margin-bottom: .45rem; }
.pl-p__content li::marker { color: var(--blue); }
.pl-p__content a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.pl-p__content strong { color: var(--text); font-weight: 500; }

.pl-p__table { margin: .5rem 0 1.5rem; overflow-x: auto; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.pl-p__table table { width: 100%; min-width: 520px; margin: 0; border-collapse: collapse; font-size: .95rem; }
.pl-p__table th, .pl-p__table td { padding: .9rem 1rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.pl-p__table th { background: var(--tint); color: var(--blue); font-weight: 500; font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; }
.pl-p__table tr:last-child td { border-bottom: 0; }

.pl-p__note {
  margin: .5rem 0 1.5rem;
  padding: 1.1rem 1.3rem;
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: 16px;
  background: var(--tint);
  font-size: 1rem;
}
.pl-p__note p:last-child { margin-bottom: 0; }

.pl-p__faq details { padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.pl-p__faq summary {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--text);
  font-weight: 500;
  list-style: none;
  cursor: pointer;
}
.pl-p__faq summary::-webkit-details-marker { display: none; }
.pl-p__faq summary::after { content: "+"; color: var(--blue); font-size: 1.4rem; line-height: 1; transition: transform .2s var(--ease); }
.pl-p__faq details[open] summary::after { content: "–"; }
.pl-p__faq details p { margin: .75rem 0 0; }

/* Chamada final */
.pl-p__final { text-align: center; padding-bottom: 5rem !important; }
.pl-p__final h2 { margin-bottom: 1rem; }
.pl-p__final p { max-width: 600px; margin: 0 auto 2rem; color: rgb(255 255 255 / 82%); font-weight: 300; font-size: 1.1rem; line-height: 1.6; }
.pl-p__cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.6rem;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 10px 30px rgb(0 20 45 / 25%);
  color: var(--blue) !important;
  font-weight: 500;
  font-size: .95rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none !important;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.pl-p__cta-btn:hover { transform: scale(1.03); box-shadow: 0 14px 36px rgb(0 20 45 / 32%); }
.pl-p__cta-btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

.legal-footer { padding: 0 1.25rem 3rem; }
@media (min-width: 768px) { .legal-footer { padding: 0 2.5rem 3rem; } }
.legal-footer .footer { max-width: 1160px; margin: 0 auto; }

@media (max-width: 980px) {
  .pl-p__cards { grid-template-columns: 1fr 1fr; }
  .pl-p__layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .pl-p__toc { display: none; }
  .pl-p__toc-mobile {
    display: block;
    margin: 0 0 2.5rem;
    padding: 1rem 1.25rem;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--tint);
  }
  .pl-p__toc-mobile summary { color: var(--blue); font-weight: 500; cursor: pointer; }
  .pl-p__toc-mobile ol { margin: .9rem 0 0; padding-left: 1.2rem; font-size: .95rem; line-height: 1.9; }
  .pl-p__toc-mobile a { color: var(--text); }
}
@media (max-width: 560px) {
  .pl-p__cards { grid-template-columns: 1fr; }
  .pl-p__hero h1 { font-size: 40px; }
}
