/* ==========================================================================
   EFS Aplicativos — Folha de estilo principal
   Tema claro (padrão): laranja. Tema escuro (botão noturno): noite de jogo.
   ========================================================================== */

/* ---------- Design tokens: tema claro ---------- */
:root {
  color-scheme: light;

  --bg: #fff7f0;
  --surface: #ffffff;
  --surface-2: #fff0e3;
  --surface-3: #ffe2cc;
  --band: #ffffff;
  --band-card: #fff7f0;
  --border: #f1dccb;
  --border-2: #e2b994;

  --text: #2a1d15;
  --text-2: #4d3b30;
  --muted: #6e5a4d;

  /* Botão principal, destaques e textos em destaque
     (laranja escuro o bastante para o texto branco do botão) */
  --primary: #cc4a0c;
  --primary-hover: #b23d08;
  --primary-edge: #8f3006;
  --on-primary: #ffffff;

  /* Links e detalhes */
  --link: #b4400b;
  --sun: #ffd23f;
  --on-sun: #2a1d15;

  /* Fundos dos cartões coloridos: pêssego, manteiga e salmão */
  --soft-1: #ffe3cc;
  --soft-2: #fff0c2;
  --soft-3: #ffdcd3;
  /* Fundo das imagens (elas têm fundo branco) */
  --tile: #ffffff;

  /* Pílula forte do menu e filtros ativos */
  --pill-strong: #2a1d15;
  --on-pill-strong: #ffffff;
  --secondary-border: #2a1d15;

  /* Faixa de contato e convite para o app */
  --contact-bg: #2a1d15;
  --contact-text: #ffffff;
  --contact-muted: #f2dccb;

  --tint: rgba(204, 74, 12, 0.1);
  --ring: #c2410c;

  /* Nomes antigos, ainda usados pelas folhas das ferramentas e dos jogos */
  --violet: var(--link);
  --violet-2: var(--link);
  --blue: var(--link);
  --blue-2: var(--link);
  --sky: #f28c28;
  --brand: var(--primary);
  --brand-hover: var(--primary-hover);
  --accent: var(--primary);
  --accent-2: var(--primary-hover);
  --accent-ink: var(--on-primary);
  --grad: var(--primary);
  --grad-warm: linear-gradient(135deg, #d9480f 0%, #b23d08 100%);
  --grad-text: none;

  --header-bg: rgba(255, 247, 240, 0.86);
  --header-bg-scrolled: rgba(255, 247, 240, 0.95);
  --footer-bg: transparent;

  --shadow-xs: 0 1px 2px rgba(74, 38, 12, 0.1);
  --shadow-sm: 0 10px 24px -14px rgba(74, 38, 12, 0.35);
  --shadow-md: 0 22px 44px -26px rgba(74, 38, 12, 0.4);
  --shadow-lg: 0 40px 80px -40px rgba(74, 38, 12, 0.45);
  --glow-violet: 0 4px 0 var(--primary-edge);
  --glow-accent: 0 4px 0 var(--primary-edge);

  --font-title: "Baloo 2", "Nunito", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, Arial,
    sans-serif;

  --r-xs: 8px;
  --r-sm: 12px;
  --r: 18px;
  --r-lg: 28px;
  --r-pill: 999px;
  --maxw: 1160px;
  --header-h: 80px;
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
}

/* ---------- Design tokens: tema escuro (noite de jogo) ---------- */
:root[data-theme="dark"] {
  color-scheme: dark;

  --bg: #0f1115;
  --surface: #171a21;
  --surface-2: #1e222b;
  --surface-3: #262b36;
  --band: #13161c;
  --band-card: #1c2028;
  --border: #262b36;
  --border-2: #3a4150;

  --text: #f1f3f7;
  --text-2: #c8ceda;
  --muted: #a3abba;

  --primary: #ffc83d;
  --primary-hover: #ffd466;
  --primary-edge: #a87b12;
  --on-primary: #1a1300;

  --link: #45d4c0;
  --sun: #ffc83d;
  --on-sun: #1a1300;

  --soft-1: #16302b;
  --soft-2: #2d2814;
  --soft-3: #331f20;
  --tile: #f6f3ec;

  --pill-strong: #ffc83d;
  --on-pill-strong: #1a1300;
  --secondary-border: #3a4150;

  --contact-bg: #12302b;
  --contact-text: #f1f3f7;
  --contact-muted: #b4ddd4;

  --tint: rgba(69, 212, 192, 0.14);
  --ring: #ffc83d;

  --sky: #45d4c0;
  --grad-warm: linear-gradient(135deg, #ffd66b 0%, #ffb020 100%);

  --header-bg: rgba(15, 17, 21, 0.84);
  --header-bg-scrolled: rgba(15, 17, 21, 0.95);

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.5);
  --shadow-sm: 0 10px 24px -14px rgba(0, 0, 0, 0.8);
  --shadow-md: 0 22px 48px -26px rgba(0, 0, 0, 0.9);
  --shadow-lg: 0 40px 80px -40px rgba(0, 0, 0, 1);
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img {
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
button {
  font: inherit;
  color: inherit;
}
a,
button {
  -webkit-tap-highlight-color: transparent;
}
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 3px;
  border-radius: 6px;
}
h1,
h2,
h3 {
  font-family: var(--font-title);
}
.container {
  width: min(var(--maxw), 100% - 48px);
  margin-inline: auto;
}

/* ---------- Cabeçalho ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition:
    border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease),
    background 0.3s var(--ease);
}
.site-header.scrolled {
  background: var(--header-bg-scrolled);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.brand img {
  width: clamp(42px, 5vw, 50px);
  aspect-ratio: 1;
  object-fit: contain;
}
.brand-name {
  font-family: var(--font-title);
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px;
  background: var(--surface);
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-xs);
}
.nav a {
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  padding: 8px 16px;
  border-radius: var(--r-pill);
  transition:
    color 0.2s var(--ease),
    background 0.2s var(--ease);
}
.nav a:hover {
  background: var(--soft-1);
}
.nav .contact-link {
  background: var(--pill-strong);
  color: var(--on-pill-strong);
}
.nav .contact-link:hover {
  background: var(--primary);
  color: var(--on-primary);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.theme-toggle {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  padding: 0;
  background: var(--surface);
  border: 0;
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-xs);
  color: var(--text);
  cursor: pointer;
  transition:
    background 0.2s var(--ease),
    transform 0.2s var(--ease);
}
.theme-toggle:hover {
  background: var(--soft-1);
  transform: translateY(-1px);
}
.theme-toggle svg {
  width: 20px;
  height: 20px;
}
/* No claro aparece a lua (ativa a noite); no escuro, o sol. */
.theme-toggle .icon-sun {
  display: none;
}
:root[data-theme="dark"] .theme-toggle .icon-sun {
  display: block;
}
:root[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}

/* ---------- Títulos ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--link);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 4px;
  border-radius: 4px;
  background: var(--primary);
}
h1 {
  font-size: clamp(40px, 6vw, 72px);
  letter-spacing: -0.01em;
  line-height: 1;
  margin: 18px 0 22px;
  font-weight: 800;
}
.chip {
  display: inline-block;
  margin: 0;
  padding: 7px 16px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.4;
  color: var(--on-sun);
  background: var(--sun);
  border-radius: var(--r-pill);
}

/* ---------- Botões ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 10px 26px;
  background: var(--primary);
  border: 2px solid transparent;
  border-radius: var(--r-pill);
  color: var(--on-primary);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.25;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 0 var(--primary-edge);
  transition:
    transform 0.15s var(--ease),
    box-shadow 0.15s var(--ease),
    background 0.2s var(--ease);
}
.button:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 5px 0 var(--primary-edge);
}
.button:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 var(--primary-edge);
}
.button.secondary {
  background: var(--surface);
  border-color: var(--secondary-border);
  color: var(--text);
  box-shadow: none;
}
.button.secondary:hover {
  background: var(--soft-1);
  color: var(--text);
}
.button.secondary:active {
  transform: translateY(1px);
}
.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
}

/* ---------- Hero da página inicial ---------- */
.hero {
  padding: clamp(36px, 5vw, 56px) 0 clamp(40px, 6vw, 72px);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 4vw, 48px);
  align-items: center;
}
.hero h1 {
  margin: 20px 0 0;
}
.hero h1 span {
  color: var(--primary);
}
.hero p.hero-texto {
  max-width: 520px;
  margin: 22px 0 0;
  font-size: clamp(17px, 1.6vw, 19px);
  color: var(--text-2);
}
.hero .actions {
  margin-top: 32px;
}
.hero .button {
  min-height: 54px;
  padding-inline: 28px;
  font-size: 17px;
}
.hero-art {
  position: relative;
  height: 440px;
  isolation: isolate;
}
.hero-art::before {
  content: "";
  position: absolute;
  inset: 20px 30px 10px;
  z-index: -1;
  background: var(--sun);
  border-radius: 46% 54% 42% 58% / 52% 44% 56% 48%;
}
.hero-mascote {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(300px, 70%);
  transform: translate(-50%, -48%);
}
.adesivo {
  position: absolute;
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  background: var(--tile);
  border-radius: 26px;
  box-shadow: 0 10px 24px -12px rgba(74, 38, 12, 0.45);
  transition: transform 0.3s var(--ease);
}
.adesivo img {
  width: 75%;
  height: 75%;
  border-radius: 14px;
}
.adesivo-1 {
  left: 4%;
  top: 6%;
  transform: rotate(-8deg);
}
.adesivo-2 {
  right: 3%;
  top: 14%;
  width: 104px;
  height: 104px;
  transform: rotate(7deg);
}
.adesivo-3 {
  right: 8%;
  bottom: 4%;
  width: 118px;
  height: 118px;
  transform: rotate(-5deg);
}
.adesivo:hover {
  transform: rotate(0) scale(1.06);
}

/* ---------- Seções ---------- */
.section {
  padding: clamp(24px, 4vw, 36px) 0 clamp(48px, 6vw, 80px);
}
.faixa {
  background: var(--band);
}
.faixa .section {
  padding-top: clamp(48px, 6vw, 80px);
}
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 24px;
  margin-bottom: 28px;
}
.section-head h2,
.support h2 {
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.1;
  margin: 6px 0;
  font-weight: 800;
}
.section-head p {
  color: var(--text-2);
  font-size: clamp(16px, 1.5vw, 18px);
  margin: 6px 0 0;
  max-width: 620px;
}
.link-forte {
  font-size: 16px;
  font-weight: 800;
  color: var(--link);
}
.link-forte:hover {
  color: var(--primary);
}

/* ---------- Escolha o seu momento ---------- */
.momentos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.momento {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px;
  background: var(--soft-1);
  border-radius: 30px;
}
.momento-mente {
  background: var(--soft-2);
}
.momento-resolver {
  background: var(--soft-3);
}
.momento h3 {
  margin: 0;
  font-size: 28px;
  line-height: 1.15;
  font-weight: 800;
}
.momento > p {
  margin: 0 0 6px;
  color: var(--text-2);
}
.momento-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.3;
  text-decoration: none;
  background: var(--surface);
  border-radius: 18px;
  transition:
    transform 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}
.momento-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.momento-item img {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--tile);
}
/* Cada item tem ao lado o botão para baixar o app na loja */
.momento-linha {
  display: flex;
  gap: 8px;
}
.momento-linha .momento-item {
  flex: 1 1 auto;
  min-width: 0;
}
.momento-loja {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 52px;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  color: var(--on-primary);
  background: var(--primary);
  border-radius: 18px;
  box-shadow: 0 3px 0 var(--primary-edge);
  transition:
    background 0.2s var(--ease),
    transform 0.2s var(--ease);
}
.momento-loja:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
}
.momento-loja svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.momento-mais {
  margin-top: 4px;
  font-size: 16px;
  font-weight: 800;
}
.momento-mais:hover {
  color: var(--primary);
}

/* ---------- Jogos em destaque (Android) ---------- */
.destaques {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
}
.featured {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--band-card);
  border-radius: 30px;
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.featured img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1024 / 500;
  object-fit: cover;
}
.feature-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px 24px 24px;
}
.status {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
  background: var(--soft-1);
  border-radius: var(--r-pill);
  padding: 4px 12px;
}
.status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--link);
}
.feature-content h3 {
  font-size: clamp(24px, 2.4vw, 28px);
  margin: 12px 0 6px;
  line-height: 1.15;
  font-weight: 800;
}
.feature-content p {
  margin: 0;
  color: var(--text-2);
  line-height: 1.6;
}
.feature-actions {
  margin-top: 20px;
}
.feature-actions .button {
  min-height: 46px;
  padding-inline: 20px;
  font-size: 15px;
}
.feature-links {
  display: flex;
  gap: 8px 20px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.feature-links a {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-2);
}
.feature-links a:hover {
  color: var(--primary);
}

/* ---------- Filtros e busca ---------- */
.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.filter {
  padding: 8px 18px;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--r-pill);
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition:
    color 0.2s var(--ease),
    background 0.2s var(--ease),
    border-color 0.2s var(--ease);
}
.filter:hover {
  border-color: var(--secondary-border);
}
.filter.active {
  background: var(--pill-strong);
  border-color: var(--pill-strong);
  color: var(--on-pill-strong);
}
.catalog-tools {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.search-label {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-2);
  font-size: 15px;
  font-weight: 700;
}
.search-label input {
  width: 260px;
  padding: 11px 18px;
  font: inherit;
  font-weight: 600;
  color: var(--text);
  background: var(--surface);
  border: 2px solid var(--border-2);
  border-radius: var(--r-pill);
  transition: border-color 0.2s var(--ease);
}
.search-label input::placeholder {
  color: var(--muted);
}
.search-label input:hover {
  border-color: var(--secondary-border);
}
.catalog-count {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 18px;
}
.empty {
  padding: 34px;
  background: var(--surface);
  border-radius: var(--r-lg);
  text-align: center;
  color: var(--text-2);
}
.catalog-footer {
  margin-top: 30px;
  text-align: center;
  font-size: 15px;
}
.catalog-footer a {
  color: var(--link);
  font-weight: 800;
}

/* ---------- Grade de aplicativos ---------- */
.app-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.app-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 26px;
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}
.app-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.app-card[hidden] {
  display: none;
}
.app-visual {
  height: 136px;
  display: grid;
  place-items: center;
  background: var(--soft-1);
}
.app-card[data-category="jogos"] .app-visual {
  background: var(--soft-2);
}
.app-card[data-category="utilidades"] .app-visual {
  background: var(--soft-3);
}
.official-icon {
  width: 88px;
  height: 88px;
  border-radius: 22px;
  background: #fff;
  object-fit: contain;
  box-shadow: 0 10px 22px -12px rgba(74, 38, 12, 0.5);
  transition: transform 0.3s var(--ease);
}
.app-card:hover .official-icon {
  transform: translateY(-3px) rotate(-3deg) scale(1.05);
}
.app-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 18px 20px 20px;
}
.category {
  align-self: flex-start;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--text);
  background: var(--soft-1);
  border-radius: var(--r-pill);
  padding: 4px 10px;
}
.app-card[data-category="jogos"] .category {
  background: var(--soft-2);
}
.app-card[data-category="utilidades"] .category {
  background: var(--soft-3);
}
.app-body h3 {
  font-size: 21px;
  line-height: 1.2;
  margin: 12px 0 6px;
  font-weight: 700;
}
.app-body p {
  font-size: 15px;
  color: var(--text-2);
  margin: 0 0 18px;
  line-height: 1.6;
}
.store-link {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding: 8px 16px;
  background: var(--surface-2);
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  transition:
    color 0.2s var(--ease),
    background 0.2s var(--ease),
    transform 0.2s var(--ease);
}
.store-link svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.store-link:hover {
  background: var(--primary);
  color: var(--on-primary);
  transform: translateY(-1px);
}
.store-link span[aria-hidden="true"] {
  display: none;
}
.card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}
.card-links .store-link {
  margin-top: 0;
}
/* Botão para baixar o app na loja, sem precisar abrir a versão web */
.store-link.loja {
  background: var(--primary);
  color: var(--on-primary);
  box-shadow: 0 3px 0 var(--primary-edge);
}
.store-link.loja:hover {
  background: var(--primary-hover);
  color: var(--on-primary);
}

/* ---------- Contato ---------- */
.support {
  --text: var(--contact-text);
  --text-2: var(--contact-muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px 36px;
  padding: clamp(26px, 3.4vw, 40px);
  background: var(--contact-bg);
  color: var(--contact-text);
  border-radius: 34px;
}
.support-mascote {
  flex: 0 0 120px;
  width: 120px;
  height: 120px;
}
.support > div {
  flex: 1 1 360px;
  min-width: 0;
}
.support .eyebrow {
  color: var(--sun);
}
.support .eyebrow::before {
  background: var(--sun);
}
.support h2 {
  margin: 6px 0 0;
}
.support p {
  max-width: 600px;
  margin: 8px 0 0;
  font-size: 17px;
  color: var(--contact-muted);
}
.support .button {
  white-space: nowrap;
  flex-shrink: 0;
  background: var(--sun);
  color: var(--on-sun);
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.3);
}
.support .button:hover {
  filter: brightness(1.06);
}
.support .button.secondary {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--contact-text);
  box-shadow: none;
}
.support .button.secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  filter: none;
}
.support .actions {
  margin-top: 18px;
}
.support .actions .button {
  min-height: 44px;
  padding-inline: 18px;
  font-size: 15px;
}

/* ---------- Rodapé ---------- */
.site-footer {
  margin-top: 20px;
  padding: 36px 0 40px;
  background: var(--footer-bg);
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  flex-wrap: wrap;
}
.footer-title {
  font-family: var(--font-title);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
}
.footer-note {
  font-size: 14px;
  color: var(--muted);
  margin: 6px 0;
}
.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 7px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
}
.footer-links a:hover {
  color: var(--primary);
}

/* ---------- Utilitários ---------- */
.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 99;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-sm);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
[hidden] {
  display: none !important;
}

/* ---------- Revelação ao rolar ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Página de política (conteúdo textual) ---------- */
.legal {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(30px, 4vw, 52px) 0 clamp(56px, 7vw, 88px);
}
.legal h1 {
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.1;
  margin: 0 0 8px;
}
.legal .last-updated {
  display: block;
  text-align: right;
  font-size: 13px;
  font-style: italic;
  color: var(--muted);
  margin: 0 0 30px;
}
.legal h2 {
  font-size: clamp(24px, 2.6vw, 30px);
  line-height: 1.2;
  margin: 40px 0 12px;
}
.legal h3 {
  font-size: clamp(19px, 2vw, 23px);
  margin: 28px 0 8px;
}
.legal h4 {
  font-size: clamp(15px, 1.6vw, 18px);
  margin: 22px 0 8px;
  color: var(--text);
}
.legal p,
.legal li {
  color: var(--text-2);
}
.legal p {
  margin: 0 0 16px;
}
.legal ul {
  padding-left: 22px;
  margin: 0 0 18px;
}
.legal li {
  margin-bottom: 8px;
}
.legal a {
  color: var(--blue-2);
}
.legal a:hover {
  color: var(--primary);
}
.legal strong {
  color: var(--text);
}
.legal .important-note-box {
  background: var(--soft-2);
  border: 1px solid var(--border);
  border-left: 4px solid var(--sun);
  border-radius: var(--r-sm);
  padding: 16px 18px;
  margin: 0 0 22px;
  color: var(--text);
  font-size: 14.5px;
  line-height: 1.7;
}
.legal .important-note-box strong,
.legal .important-note-box a {
  color: var(--text);
}
.legal .important-note-box a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal .contact-info {
  margin-top: 36px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 24px 26px;
}
.legal .contact-info h2 {
  margin-top: 0;
}

/* ---------- Responsivo ---------- */
@media (max-width: 1050px) {
  .app-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 32px 0 48px;
  }
  .hero-art {
    width: min(440px, 100%);
    height: 380px;
    margin-inline: auto;
  }
  .app-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  html {
    scroll-padding-top: calc(var(--header-h) + 60px);
  }
  .container {
    width: calc(100% - 32px);
  }
  /* Duas linhas: marca e botão noturno em cima, menu inteiro embaixo */
  .header-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    min-height: auto;
    gap: 8px 12px;
    padding: 10px 0;
  }
  .header-actions {
    display: contents;
  }
  .brand img {
    width: 40px;
  }
  .brand-name {
    font-size: 22px;
  }
  .theme-toggle {
    grid-row: 1;
    grid-column: 2;
    width: 42px;
    height: 42px;
  }
  .nav {
    grid-row: 2;
    grid-column: 1 / -1;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2px;
    padding: 4px;
  }
  .nav a {
    flex: 1 1 auto;
    padding: 7px 6px;
    font-size: 13.5px;
    text-align: center;
  }
  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-inner {
    flex-direction: column;
  }
  .footer-links {
    align-items: flex-start;
  }
}
@media (max-width: 560px) {
  .app-grid {
    grid-template-columns: 1fr;
  }
  .momento-loja {
    padding: 0 10px;
    font-size: 13px;
  }
  .hero-art {
    height: 320px;
  }
  .adesivo {
    width: 84px;
    height: 84px;
    border-radius: 20px;
  }
  .adesivo-2 {
    width: 78px;
    height: 78px;
  }
  .adesivo-3 {
    width: 88px;
    height: 88px;
  }
  .destaques {
    grid-template-columns: 1fr;
  }
  .search-label {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .search-label input {
    width: 100%;
  }
  .support {
    border-radius: 28px;
  }
  .support-mascote {
    flex-basis: 88px;
    width: 88px;
    height: 88px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
