/* =====================================================================
   MULTIVERSO DO FABIANO — LAYOUT DAS PÁGINAS LEGAIS
   Usa os tokens de design-tokens.css. Compartilhado por
   politica-de-privacidade.html e termos-de-uso.html — qualquer ajuste
   aqui vale para as duas ao mesmo tempo.

   Única diferença proposital em relação à página principal: a imagem
   de fundo aqui mostra mais a PARTE DE CIMA (o portal, sem o rapaz),
   porque são páginas de leitura, não a abertura do site. O arquivo da
   imagem é o mesmo — só a posição de enquadramento muda.

   Mouse: cursor padrão do sistema, igual à página principal — decisão
   deliberada de consistência (a página principal já usa o cursor
   normal desde a última reforma; o cursor customizado em bolinha só
   sobrevivia na privacy.html antiga, abandonada).
   ===================================================================== */

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

html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  background: var(--void);
  color: var(--tom-titulo);
  font-family: var(--fonte-leitura);
  overflow-x: hidden;
}

.bg-image {
  position: fixed; inset: 0; z-index: 0;
  background-image: url('./bg.webp');
  background-size: cover;
  background-position: center 15%;   /* mais alto que a home (center 65%) */
  background-repeat: no-repeat;
  filter: brightness(.4) saturate(1.2);
}

.bg-overlay {
  position: fixed; inset: 0; z-index: 1;
  background:
    radial-gradient(ellipse 100% 50% at 50% 0%,   rgba(2,3,8,.75) 0%, transparent 100%),
    radial-gradient(ellipse 40%  100% at 0%   50%, rgba(2,3,8,.72) 0%, transparent 100%),
    radial-gradient(ellipse 40%  100% at 100% 50%, rgba(2,3,8,.72) 0%, transparent 100%),
    radial-gradient(ellipse 100% 40% at 50% 100%,  rgba(2,3,8,.92) 0%, transparent 100%);
}

.vignette {
  position: fixed; inset: 0; z-index: 2;
  background: radial-gradient(ellipse 130% 130% at 50% 50%, transparent 20%, rgba(2,3,8,.7) 100%);
  pointer-events: none;
}

#stars {
  position: fixed; inset: 0; z-index: 3;
  pointer-events: none; mix-blend-mode: screen;
}

/* ============ CONTEÚDO ============ */
.legal-page {
  position: relative; z-index: 10;
  max-width: 760px; margin: 0 auto;
  padding: 5rem 2rem 6rem;
}

.legal-header {
  text-align: center; margin-bottom: 3rem;
  animation: subir 1.6s cubic-bezier(.16,1,.3,1) .15s forwards;
  opacity: 0;
}
@keyframes subir {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

.voltar {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--display);
  font-size: var(--t-etiqueta); font-weight: var(--w-etiqueta);
  letter-spacing: var(--ls-etiqueta); text-transform: uppercase;
  text-decoration: none; color: rgba(179,136,255,.65);
  transition: color .3s;
  margin-bottom: 2rem;
  min-height: 44px; padding: .4rem;
}
.voltar:hover { color: var(--aurora-purple); }
.voltar:focus-visible { outline: 2px solid var(--aurora-purple); outline-offset: 3px; }

.legal-eyebrow {
  font-family: var(--fonte-coord);
  font-size: var(--t-coord); font-weight: var(--w-etiqueta);
  letter-spacing: var(--ls-coord);
  color: rgba(var(--rgb-rotulo), var(--op-etiqueta));
  text-transform: uppercase; margin-bottom: 1rem;
  font-variant-numeric: tabular-nums;
}

.legal-page h1 {
  font-family: var(--display);
  font-size: var(--t-titulo);
  letter-spacing: var(--ls-titulo);
  font-weight: var(--w-titulo); line-height: 1.2;
  background: linear-gradient(135deg, #fff 0%, var(--aurora-blue) 30%, var(--aurora-purple) 65%, var(--aurora-pink) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  filter: drop-shadow(0 0 30px rgba(179,136,255,.4));
  margin-bottom: .5rem;
  text-wrap: balance;
}

.atualizado {
  font-family: var(--fonte-leitura);
  font-size: var(--t-etiqueta); font-style: italic;
  color: var(--tom-apagado); letter-spacing: .03em;
}

.divider {
  width: 55px; height: 1px;
  background: linear-gradient(to right, transparent, rgba(179,136,255,.5), transparent);
  margin: 1.6rem auto 0;
}

.legal-conteudo {
  animation: subir 1.6s cubic-bezier(.16,1,.3,1) .4s forwards;
  opacity: 0;
}

.legal-secao {
  margin-bottom: 1.6rem;
  padding: 1.7rem 2rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 4px;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  transition: border-color .4s;
}
.legal-secao:hover { border-color: rgba(179,136,255,.28); }

.legal-secao h2 {
  font-family: var(--display);
  font-size: var(--t-aux); font-weight: var(--w-etiqueta);
  letter-spacing: var(--ls-etiqueta); text-transform: uppercase;
  color: var(--aurora-purple);
  margin-bottom: 1rem; padding-bottom: .7rem;
  border-bottom: 1px solid rgba(179,136,255,.15);
}

.legal-secao p {
  font-size: var(--t-texto); font-weight: 300; line-height: var(--lh-texto);
  color: var(--tom-leitura); margin-bottom: .8rem;
}
.legal-secao p:last-child { margin-bottom: 0; }

.legal-secao ul { list-style: none; margin: .5rem 0; }
.legal-secao ul li {
  font-size: var(--t-texto); font-weight: 300; line-height: var(--lh-texto);
  color: var(--tom-leitura); padding: .2rem 0 .2rem 1.4rem; position: relative;
}
.legal-secao ul li::before {
  content: '✦'; position: absolute; left: 0; top: .5em;
  color: rgba(179,136,255,.5); font-size: .6rem;
}

.legal-secao strong { color: rgba(200,185,255,.95); font-weight: 500; }
.legal-secao a { color: var(--aurora-blue); text-decoration: none; transition: color .3s; }
.legal-secao a:hover { color: #fff; }

.legal-secao.destaque { border-color: rgba(59,217,176,.3); }
.legal-secao.destaque h2 { color: var(--menta); }

/* botão de voltar ao final da página, mesmo componente da home */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: .85em 2.2em;
  min-height: 44px;
  border: 1px solid rgba(179,136,255,.35); border-radius: 2px;
  font-family: var(--display);
  font-size: var(--t-rotulo); font-weight: var(--w-rotulo);
  letter-spacing: var(--ls-rotulo); text-transform: uppercase;
  text-decoration: none; color: rgba(200,185,255,.85);
  background: rgba(10,6,28,.45);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: all .4s ease;
}
.btn:hover {
  border-color: rgba(179,136,255,.75); color: #fff;
  box-shadow: 0 0 22px rgba(179,136,255,.2), 0 0 60px rgba(179,136,255,.06);
  transform: translateY(-2px);
}
.btn:focus-visible { outline: 2px solid var(--aurora-purple); outline-offset: 3px; }
.legal-fim { text-align: center; margin-top: 2.2rem; }

/* ============ RODAPÉ (idêntico ao da home) ============ */
footer {
  position: relative; z-index: 10;
  padding: 3rem 2rem 3.4rem;
  text-align: center;
  font-family: var(--display);
  font-size: var(--t-rotulo); letter-spacing: .16em;
  color: var(--tom-apagado); text-transform: uppercase;
  line-height: 2.4;
}
footer a { color: rgba(200,190,220,.5); text-decoration: none; }
footer a:hover { color: rgba(200,190,220,.75); }
footer .aviso-meta {
  display: block; margin-top: 1.1rem;
  font-family: var(--fonte-leitura); font-style: normal;
  font-size: 1.05rem; letter-spacing: .01em; text-transform: none;
  color: rgba(210,202,232,.62); line-height: 1.6;
  max-width: 920px; margin-left: auto; margin-right: auto;
}

@media (max-width: 600px) {
  .legal-page { padding: 3.5rem 1.2rem 5rem; }
  .legal-secao { padding: 1.4rem 1.2rem; }
  /* no celular o aviso flui livre, sem quebra forçada — a de desktop
     existe só pra caber em 3 linhas numa tela larga */
  footer .aviso-meta .quebra-fixa { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .legal-header, .legal-conteudo { animation: none; opacity: 1; }
  html { scroll-behavior: auto; }
}
