/* Páginas que o servidor monta sem JavaScript: termos, privacidade, reembolso e a página de erro 404.
   Usam o mesmo sistema visual do app (web/src/styles/index.css): escuro sóbrio por padrão, claro opcional,
   esmeralda como única cor de destaque e fonte Geist. */

@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/geist-latin-var.woff2') format('woff2');
}

:root {
  --fundo: #090a0f;
  --superficie: #12141d;
  --borda: rgba(255, 255, 255, 0.1);
  --borda-forte: rgba(255, 255, 255, 0.2);
  --texto: #fafafa;
  --texto-2: #a1a1aa;
  --destaque: #10b981;
  --rubi: #fb7185;
  color-scheme: dark;
}

[data-tema='claro'] {
  --fundo: #fafafa;
  --superficie: #ffffff;
  --borda: #e4e4e7;
  --borda-forte: #d4d4d8;
  --texto: #09090b;
  --texto-2: #52525b;
  --destaque: #047857;
  --rubi: #be123c;
  color-scheme: light;
}

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--fundo);
  color: var(--texto);
  font-family: 'Geist', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
p,
ul {
  margin: 0;
}

h1 {
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

h2 {
  margin-top: 0.75rem;
  color: var(--texto);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

a {
  color: var(--destaque);
  text-underline-offset: 4px;
}

:focus-visible {
  outline: 2px solid var(--destaque);
  outline-offset: 3px;
  border-radius: 6px;
}

.topo {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--borda);
  background: color-mix(in srgb, var(--fundo) 72%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.topo__dentro {
  max-width: 72rem;
  min-height: 4rem;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.marca {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--texto);
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.marca strong {
  font-weight: 600;
}

.marca__simbolo {
  width: 1.75rem;
  height: 1.75rem;
  flex: none;
}

.topo__frase {
  color: var(--texto-2);
  font-size: 0.875rem;
  font-weight: 500;
}

.topo__frase strong {
  font-weight: 500;
}

main {
  flex: 1;
  width: 100%;
  max-width: 44rem;
  margin: 0 auto;
  padding: 3rem 1.25rem 4rem;
}

.tela {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.lead {
  color: var(--texto-2);
  font-size: 1.125rem;
}

.texto-legal {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  padding: 1.5rem;
  border: 1px solid var(--borda);
  border-radius: 1rem;
  background: var(--superficie);
  color: var(--texto-2);
}

.texto-legal strong {
  color: var(--texto);
  font-weight: 500;
}

.texto-legal ul {
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.botao {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  min-height: 3rem;
  padding: 0.75rem 1.5rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--destaque);
  color: #04130d;
  font-weight: 500;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background-color 0.2s ease;
}

[data-tema='claro'] .botao {
  color: #ffffff;
}

.botao:hover {
  transform: translateY(-1px);
}

.botao--secundario,
[data-tema='claro'] .botao--secundario {
  border-color: var(--borda-forte);
  background: transparent;
  color: var(--texto);
}

.botao--secundario:hover {
  border-color: var(--texto-2);
  background: var(--superficie);
}

/* Botões da página do responsável (reembolso e moderação de relatos). */
.botao--perigo {
  border-color: rgba(225, 29, 72, 0.5);
  background: rgba(225, 29, 72, 0.12);
  color: #fb7185;
}

[data-tema='claro'] .botao--perigo {
  color: #be123c;
}

/* Páginas do responsável (reembolso de um pedido e moderação de relatos): aviso, relato e botões de formulário. */
button.botao {
  font: inherit;
  font-weight: 500;
  cursor: pointer;
}

.mensagem {
  padding: 0.75rem 1rem;
  border: 1px solid var(--borda);
  border-radius: 0.75rem;
  color: var(--texto);
}

.relato {
  margin: 0;
  padding: 1rem 1.25rem;
  border-left: 2px solid var(--destaque);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  color: var(--texto);
}

.relato footer {
  color: var(--texto-2);
  font-size: 0.9rem;
}

/* Páginas de busca (uma por dor: "Instagram desativado", "WhatsApp banido"...). Leitura fácil, pouco texto por bloco. */
.botao--compacto {
  align-self: center;
  min-height: 2.5rem;
  padding: 0.5rem 1.125rem;
  font-size: 0.9375rem;
}

.guia {
  gap: 2rem;
}

.guia h2 {
  margin-top: 0;
}

.guia h3 {
  margin: 0;
  color: var(--texto);
  font-size: 1.0625rem;
  font-weight: 600;
}

.migalhas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  color: var(--texto-2);
  font-size: 0.875rem;
}

.migalhas a {
  color: var(--texto-2);
}

.acao {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
}

.acao .botao {
  align-self: center;
}

.nota {
  color: var(--texto-2);
  font-size: 0.9375rem;
}

.bloco {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
  border: 1px solid var(--borda);
  border-radius: 1rem;
  background: var(--superficie);
}

.bloco--alerta {
  border-color: color-mix(in srgb, var(--rubi) 40%, transparent);
  background: color-mix(in srgb, var(--rubi) 7%, var(--superficie));
}

.bloco--destaque {
  border-color: color-mix(in srgb, var(--destaque) 45%, transparent);
}

.bloco ul,
.bloco ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Passos numerados: o número vem do contador, grande e fácil de achar. */
.passos {
  counter-reset: passo;
}

.passos li {
  counter-increment: passo;
  display: grid;
  grid-template-columns: 2.25rem 1fr;
  align-items: center;
  gap: 0.875rem;
  padding: 0.875rem 1rem;
  border: 1px solid var(--borda);
  border-radius: 0.75rem;
  background: var(--fundo);
}

.passos li::before {
  content: counter(passo);
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--destaque) 16%, transparent);
  color: var(--destaque);
  font-weight: 600;
}

.links li {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.links span {
  color: var(--texto-2);
  font-size: 0.875rem;
}

.bloco--alerta li {
  padding-left: 1rem;
  border-left: 2px solid var(--rubi);
}

.legais li {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  color: var(--texto-2);
}

.outros {
  flex-direction: row !important;
  flex-wrap: wrap;
  gap: 0.5rem !important;
}

.outros a {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0.375rem 1rem;
  border: 1px solid var(--borda-forte);
  border-radius: 999px;
  color: var(--texto);
  font-size: 0.9375rem;
  text-decoration: none;
  transition: border-color 0.2s ease;
}

.outros a:hover {
  border-color: var(--texto-2);
}

.rodape {
  border-top: 1px solid var(--borda);
  color: var(--texto-2);
  font-size: 0.875rem;
}

.rodape__dentro {
  max-width: 72rem;
  margin: 0 auto;
  padding: 2.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.rodape__contas {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.rodape__contas > span {
  color: var(--texto);
  font-weight: 500;
}

/* Símbolos das plataformas: uma cor só, sempre com o nome ao lado. */
.rodape__contas ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
}

.rodape__contas li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.rodape__contas svg {
  width: 1rem;
  height: 1rem;
  flex: none;
  fill: currentColor;
}

.rodape nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

.rodape a {
  color: var(--texto-2);
}

.rodape a:hover {
  color: var(--texto);
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition-duration: 0.001ms !important;
  }
}
