:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  --background: #15161a;
  --surface: #1d1f24;
  --border: #383b43;
  --text: #f4f4f5;
  --muted: #a4a7af;
  --accent: #ef4444;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--text);
  background: var(--background);
  line-height: 1.65;
}

header, main, footer {
  width: min(860px, calc(100% - 36px));
  margin: 0 auto;
}

header { padding: 64px 0 24px; }
main { padding-bottom: 48px; }
footer {
  padding: 24px 0 48px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: .9rem;
}

h1 { margin: 0 0 12px; font-size: clamp(2rem, 6vw, 3.25rem); line-height: 1.1; }
h2 { margin-top: 34px; font-size: 1.35rem; }
p, li { color: #d6d7db; }
a { color: #ff8585; }
a:hover { color: #ffaaaa; }

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* Marca no topo das páginas legais: o mesmo ícone do aplicativo cadastrado no
   TikTok Developer Portal e usado como favicon. O revisor exige que o ícone
   apareça visivelmente na Privacy Policy e nos Terms of Service. */
.legal-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 22px;
}

.legal-brand-mark {
  display: block;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  flex: none;
}

.legal-brand-name {
  color: var(--text);
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -.01em;
}

.lead { max-width: 680px; color: var(--muted); font-size: 1.08rem; }

.card {
  margin: 26px 0;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}

.links { display: grid; gap: 10px; padding: 0; list-style: none; }
.links a { font-weight: 700; }
.updated { color: var(--muted); font-size: .9rem; }

@media (max-width: 540px) {
  header { padding-top: 42px; }
  .card { padding: 18px; }
}

/* Páginas legais multilíngues: seletor de idioma e campos opcionais vazios. */
p:empty, .lead:empty, .updated:empty { display: none; }
.lang-switch { display: inline-flex; align-items: center; margin-top: 8px; }
.lang-switch select {
  appearance: none;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: .85rem;
  cursor: pointer;
}
.lang-switch select:hover { border-color: #4a4d57; }
.back-link { display: inline-block; margin-top: 28px; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
