/* Páginas legais do BPlayer (privacidade, termos, excluir conta, ajuda, direitos autorais; PT e EN).
   Mesma marca da página de venda: grafite, creme, laranja da logo, fonte Sora (arquivo local, sem terceiros).
   Compatível com Safari iOS 13+ e Chrome/WebView 80+: sem :has, sem inset, sem gap em flex, sem aspect-ratio, sem dvh. */

@font-face {
  font-family: 'Sora';
  src: url('sora-latin.woff2') format('woff2');
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --fundo: #101113;
  --superficie: #17181b;
  --superficie-2: #1d1e22;
  --linha: #2a2c31;
  --linha-forte: #3a3c42;
  --creme: #f3eadc;
  --texto: #ddd6ca;
  --suave: #a8a196;
  --laranja: #fe5411;
  --sobre-laranja: #101113;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--fundo);
  scrollbar-color: var(--linha-forte) var(--fundo);
  scroll-padding-top: 20px;
}

body {
  margin: 0;
  background: var(--fundo);
  color: var(--texto);
  font-family: 'Sora', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-wrap: break-word;
}

::selection { background: var(--laranja); color: var(--sobre-laranja); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--fundo); }
::-webkit-scrollbar-thumb { background: var(--linha-forte); border-radius: 10px; border: 2px solid var(--fundo); }

a { color: var(--creme); text-decoration-color: var(--laranja); text-underline-offset: .22em; text-decoration-thickness: 1.5px; }
a:hover { text-decoration-color: var(--creme); }
:focus { outline: none; }
:focus-visible { outline: 3px solid var(--laranja); outline-offset: 3px; border-radius: 6px; }

.pular {
  position: absolute; left: 12px; top: -60px; z-index: 10;
  background: var(--laranja); color: var(--sobre-laranja); padding: 10px 16px; border-radius: 999px; font-weight: 700; text-decoration: none;
}
.pular:focus { top: 12px; }

.faixa { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* ---------- topo ---------- */
.topo { border-bottom: 1px solid var(--linha); }
.topo .faixa { display: flex; align-items: center; justify-content: space-between; min-height: 64px; }
.marca { display: block; padding: 8px 0; line-height: 0; }
.marca img { height: 24px; width: auto; }
.idioma {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px;
  border: 1px solid var(--linha-forte); border-radius: 999px;
  color: var(--creme); font-size: .875rem; font-weight: 600; text-decoration: none;
}
.idioma:hover { border-color: var(--creme); }

/* ---------- miolo ---------- */
.miolo { padding-top: 40px; padding-bottom: 72px; }
.texto { max-width: 70ch; }

h1, h2, h3 { color: var(--creme); font-weight: 700; letter-spacing: -.02em; }
h1 { font-size: 2.125rem; line-height: 1.12; margin: 0 0 12px; letter-spacing: -.03em; }
h2 { font-size: 1.3rem; line-height: 1.25; margin: 56px 0 12px; }
h3 { font-size: 1.05rem; line-height: 1.35; margin: 32px 0 8px; letter-spacing: -.01em; }
p, ul, ol { margin: 0 0 16px; }
ul, ol { padding-left: 1.25em; }
li { margin-bottom: 8px; }
li::marker { color: var(--suave); }
strong { color: var(--creme); font-weight: 600; }

.data { color: var(--suave); font-size: .875rem; margin-bottom: 28px; }
.abre { font-size: 1.125rem; line-height: 1.65; color: var(--creme); }

/* bloco de destaque: fundo um tom acima, sem borda colorida */
.nota { background: var(--superficie); border-radius: 14px; padding: 20px 22px; margin: 28px 0; }
.nota p:last-child, .nota ul:last-child { margin-bottom: 0; }
.nota h2 { margin-top: 0; font-size: 1.1rem; }

/* passo a passo numerado (a ordem importa) */
.passos { list-style: none; padding: 0; margin: 0 0 20px; counter-reset: passo; }
.passos li { position: relative; padding: 2px 0 2px 46px; margin-bottom: 14px; counter-increment: passo; }
.passos li::before {
  content: counter(passo);
  position: absolute; left: 0; top: 0;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--laranja); color: var(--sobre-laranja);
  font-size: .875rem; font-weight: 700; line-height: 30px; text-align: center;
}

/* tabela de resumo: vira blocos empilhados no celular */
.tabela { width: 100%; border-collapse: collapse; margin: 8px 0 24px; font-size: .9375rem; line-height: 1.55; }
.tabela th { text-align: left; color: var(--suave); font-weight: 600; font-size: .8125rem; padding: 0 16px 10px 0; border-bottom: 1px solid var(--linha-forte); }
.tabela td { vertical-align: top; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--linha); }
.tabela td:first-child { color: var(--creme); font-weight: 600; width: 28%; }
.tabela td:last-child, .tabela th:last-child { padding-right: 0; }

.nq { white-space: nowrap; }
.contato-grande { font-size: 1.125rem; font-weight: 600; }

/* índice: lateral fixa no PC, lista recolhível no celular */
.indice { margin: 0 0 32px; border: 1px solid var(--linha); border-radius: 14px; }
.indice summary {
  cursor: pointer; list-style: none; padding: 14px 18px; min-height: 48px;
  color: var(--creme); font-weight: 600; font-size: .9375rem;
}
.indice summary::-webkit-details-marker { display: none; }
.indice summary::after { content: '+'; float: right; color: var(--suave); font-weight: 400; }
.indice[open] summary::after { content: '\2212'; }
.indice ol { list-style: none; padding: 0 18px 12px; margin: 0; font-size: .9375rem; }
.indice li { margin: 0; }
.indice a { display: block; padding: 7px 0; color: var(--texto); text-decoration: none; line-height: 1.4; }
.indice a:hover { color: var(--creme); }

/* ---------- rodapé ---------- */
.rodape { border-top: 1px solid var(--linha); padding: 36px 0 48px; color: var(--suave); font-size: .875rem; line-height: 1.6; }
.rodape nav { margin-bottom: 20px; }
.rodape nav a { display: inline-block; margin: 0 20px 10px 0; color: var(--creme); text-decoration: none; font-weight: 600; }
.rodape nav a:hover { text-decoration: underline; text-decoration-color: var(--laranja); }
.rodape nav a[aria-current="page"] { color: var(--laranja); }
.rodape p { margin: 0 0 6px; max-width: 70ch; }

@media (max-width: 599px) {
  .miolo { padding-top: 28px; padding-bottom: 56px; }
  h1 { font-size: 1.75rem; }
  h2 { margin-top: 44px; font-size: 1.2rem; }
  .abre { font-size: 1.0625rem; }
  .nota { padding: 18px; margin-left: -4px; margin-right: -4px; }
  .tabela thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tabela, .tabela tbody, .tabela tr, .tabela td { display: block; width: 100%; }
  .tabela tr { padding: 14px 0; border-bottom: 1px solid var(--linha); }
  .tabela td { border: 0; padding: 0 0 6px; }
  .tabela td:first-child { width: 100%; padding-bottom: 4px; }
  .tabela td[data-rotulo]::before { content: attr(data-rotulo) ': '; color: var(--suave); font-weight: 600; }
}

.lateral { display: none; }

@media (min-width: 1100px) {
  .com-indice { display: flex; align-items: flex-start; }
  .com-indice .indice { display: none; }
  .lateral {
    display: block; position: -webkit-sticky; position: sticky; top: 24px;
    flex: 0 0 240px; margin: 8px 56px 0 0; max-height: calc(100vh - 48px); overflow-y: auto;
  }
  .lateral p { margin: 0 0 10px; color: var(--suave); font-size: .8125rem; font-weight: 600; }
  .lateral ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--linha); }
  .lateral li { margin: 0; }
  .lateral a { display: block; padding: 6px 0 6px 16px; font-size: .875rem; line-height: 1.4; color: var(--suave); text-decoration: none; }
  .lateral a:hover { color: var(--creme); }
  .com-indice .texto { flex: 1 1 auto; min-width: 0; }
}

@media print {
  html, body { background: #fff; color: #111; }
  .topo, .indice, .lateral, .rodape nav, .pular { display: none; }
  h1, h2, h3, strong, a { color: #111; }
  .nota { background: #f3f3f3; }
}
