/* ==========================================================================
   PÁGINAS LEGAIS
   Política de Privacidade & Termos de Uso
   ---
   Estilo próprio para as duas páginas legais, alinhado aos DOIS temas da
   landing (midnight é o padrão; o claro vem do mesmo script anti-flash da
   landing, que seta [data-theme] no <html> antes da primeira pintura).
   Obs.: data-brand-surface="dark" é só âncora de seletores — o valor não
   muda; quem troca as cores são os tokens --legal-* abaixo.
   ========================================================================== */

:root {
  color-scheme: dark;
  --legal-bg: hsl(231, 74%, 6%);
  --legal-text: hsl(213, 45%, 93%);
  --legal-text-strong: hsl(213, 52%, 94%);
  --legal-text-body: hsl(222, 26%, 76%);
  --legal-text-muted: hsl(222, 20%, 60%);
  --legal-accent: hsl(227, 58%, 72%);
  --legal-accent-strong: hsl(226, 100%, 92%);
  --legal-violet: hsl(227, 58%, 72%);
  --legal-border: rgba(255, 255, 255, 0.06);
}

/* Tema claro — espelho da paleta de styles-light.css (Azul Marinho #040B30,
   Pervinca #7289DA já escurecida p/ contraste, Azul Gélido #E1EBF7).
   Especificidade (0,1,1) vence :root (0,1,0), ordem também ajuda. */
html[data-theme='light'] {
  color-scheme: light;
  --legal-bg: hsl(0, 0%, 100%);
  --legal-text: hsl(231, 85%, 10%);
  --legal-text-strong: hsl(231, 85%, 10%);
  --legal-text-body: hsl(222, 30%, 30%);
  --legal-text-muted: hsl(222, 18%, 42%);
  --legal-accent: hsl(227, 58%, 44%);
  --legal-accent-strong: hsl(227, 58%, 36%);
  --legal-violet: hsl(227, 58%, 44%);
  --legal-border: rgba(4, 11, 48, 0.1);
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background-color: var(--legal-bg);
  color: var(--legal-text);
  font-family: 'Sansation', system-ui, -apple-system, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

[data-brand-surface="dark"] {
  min-height: 100vh;
  background-color: var(--legal-bg);
  color: var(--legal-text);
  font-family: 'Sansation', system-ui, -apple-system, sans-serif;
}

[data-brand-surface="dark"] a {
  color: inherit;
  text-decoration: none;
}

/* ---------- Header (logo + voltar) ---------- */
[data-brand-surface="dark"] header {
  border-bottom: 1px solid var(--legal-border);
  padding: 1.25rem 1.5rem;
}

[data-brand-surface="dark"] header > div {
  max-width: 76ch;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

[data-brand-surface="dark"] header img {
  height: 2.25rem;
  width: auto;
  display: block;
}

/* O Tailwind não é compilado no deploy: esconde a logo colorida e
   mantém apenas a branca (fundo escuro). */
[data-brand-surface="dark"] .brand-logo--onlight {
  display: none;
}

/* Tema claro: mostra a logo colorida e esconde a branca (ambas já pré-loadadas). */
html[data-theme='light'] [data-brand-surface='dark'] .brand-logo--onlight {
  display: block;
}

html[data-theme='light'] [data-brand-surface='dark'] .brand-logo--ondark {
  display: none;
}

/* Link "← Voltar ao site" */
[data-brand-surface="dark"] header a[href="index.html"]:last-child {
  font-size: 14px;
  color: var(--legal-text-body);
  transition: color 0.3s ease;
  white-space: nowrap;
}

@media (hover: hover) {
  [data-brand-surface="dark"] header a[href="index.html"]:last-child:hover {
    color: var(--legal-text-strong);
  }
}

/* ---------- Conteúdo ---------- */
main {
  padding: 3.5rem 1.5rem 6rem;
}

article {
  max-width: 76ch;
  margin: 0 auto;
}

/* Kicker "RK Group" */
article > p:first-child {
  font-family: 'Sansation', ui-monospace, monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--legal-violet);
  margin: 0 0 0.75rem;
}

h1 {
  font-family: 'Sansation', sans-serif;
  font-size: clamp(1.875rem, 4vw, 2.5rem);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--legal-text-strong);
  margin: 0 0 0.75rem;
}

/* "Última atualização: ..." */
article > p:nth-child(3) {
  font-size: 13px;
  color: var(--legal-text-muted);
  margin: 0;
}

article > div {
  margin-top: 2.5rem;
}

section {
  margin-bottom: 2rem;
}

h2 {
  font-family: 'Sansation', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--legal-text-strong);
  margin: 0 0 0.75rem;
}

section > div {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

section p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--legal-text-body);
  margin: 0;
}

/* Listas com bullet violeta */
section ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

section ul li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 15px;
  line-height: 1.7;
  color: var(--legal-text-body);
}

section ul li > span:first-child {
  flex: 0 0 auto;
  width: 0.375rem;
  height: 0.375rem;
  margin-top: 0.5625rem;
  border-radius: 9999px;
  background-color: var(--legal-violet);
  display: block;
}

/* Links (mailto e página irmã) */
[data-brand-surface="dark"] main a[href^="mailto:"],
[data-brand-surface="dark"] main a[href$="politica-de-privacidade.html"] {
  color: var(--legal-accent);
  transition: color 0.3s ease;
}

@media (hover: hover) {
  [data-brand-surface="dark"] main a[href^="mailto:"]:hover,
  [data-brand-surface="dark"] main a[href$="politica-de-privacidade.html"]:hover {
    color: var(--legal-accent-strong);
  }
}

/* ---------- Footer ---------- */
[data-brand-surface="dark"] footer {
  border-top: 1px solid var(--legal-border);
  padding: 1.5rem;
}

[data-brand-surface="dark"] footer p {
  max-width: 76ch;
  margin: 0 auto;
  font-size: 13px;
  color: var(--legal-text-muted);
}

/* ---------- Acessibilidade ---------- */
[data-brand-surface="dark"] a:focus-visible {
  outline: 2px solid var(--legal-violet);
  outline-offset: 2px;
  border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
  [data-brand-surface="dark"] a {
    transition: none !important;
  }
}