/* Páginas legais (privacidade, termos, reembolso): mesmo visual escuro, menu e rodapé do index.html */
:root, html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #07080B;
  --card: #111318;
  --card-2: #1B1E25;
  --accent: #2F66FF;
  --link: #8FB0FF;
  --text: #F4F5F7;
  --text-corpo: #D3D6DD;
  --text-2: #A7ADB9;
  --border: #272A32;
  --larg: 1320px;
  --gut: clamp(20px, 4vw, 56px);
}

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

body {
  background: var(--bg);
  color: var(--text-corpo);
  font-family: 'Figtree', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.7;
}

:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }

a { color: var(--link); }

.pular-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 8px; font-weight: 600; text-decoration: none;
}
.pular-link:focus { top: 16px; }

html[data-theme="light"] {
  color-scheme: light;
  --bg: #FFFFFF; --card: #F6F7F9; --card-2: #ECEEF2; --link: #2252D9;
  --text: #111318; --text-corpo: #3A3F4A; --text-2: #565D6B; --border: #E3E5EA;
}

/* Menu */
.pill-nav-wrap { position: sticky; top: 0; z-index: 100; background: var(--bg); border-bottom: 1px solid var(--border); }
.pill-nav { position: relative; display: flex; align-items: center; justify-content: space-between; max-width: var(--larg); margin: 0 auto; padding: 12px var(--gut); }
.pill-nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.pill-nav-logo-mark { width: 32px; height: 29px; flex-shrink: 0; }
.pill-nav-logo-text { color: var(--text); font-size: 16px; font-weight: 700; letter-spacing: -.01em; line-height: 1.5; }
.pill-nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.pill-nav-links a { color: var(--text-2); font-size: 15px; font-weight: 500; text-decoration: none; }
.pill-nav-links a:hover { color: var(--text); }
.pill-nav-actions { display: flex; align-items: center; gap: 8px; }
.pill-nav-cta { display: flex; align-items: center; gap: 4px; background: var(--accent); color: #fff; padding: 8px 16px; border-radius: 8px; font-size: 14.5px; font-weight: 600; line-height: 1.75; text-decoration: none; }
.pill-nav-cta svg { width: 15px; height: 15px; }
.pill-nav-menu-btn, .nav-icone { display: none; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 8px; border: 1px solid var(--border); background: none; color: var(--text); cursor: pointer; }
.nav-icone { display: inline-flex; }
.nav-idioma { height: 40px; padding: 0 8px; border: 1px solid var(--border); border-radius: 8px; background: none; color: var(--text); font: inherit; font-size: 14px; cursor: pointer; }
.nav-idioma option { background: var(--card); color: var(--text); }
html[data-theme="dark"] .icone-lua, html[data-theme="light"] .icone-sol { display: none; }
.aviso-idioma { background: var(--card); border: 1px solid var(--border); border-radius: 8px; padding: 12px 16px; font-size: 15px; margin-bottom: 24px; }

/* Texto: coluna de leitura com cerca de 70 caracteres por linha */
main { max-width: calc(560px + 2 * var(--gut)); margin: 0 auto; padding: clamp(48px, 7vw, 88px) var(--gut) clamp(64px, 9vw, 112px); }
main:focus { outline: 0; }

h1, h2, h3, .pill-nav-logo-text, .footer-logo-text { font-family: 'Fraunces', Georgia, serif; }

h1 { color: var(--text); font-size: clamp(38px, 5.4vw, 64px); font-weight: 700; line-height: 1.02; letter-spacing: -.035em; text-wrap: balance; margin-bottom: 16px; }
h2 { color: var(--text); font-size: 26px; font-weight: 700; line-height: 1.2; letter-spacing: -.015em; margin: 48px 0 14px; scroll-margin-top: 88px; }
h3 { color: var(--text); font-size: 19px; font-weight: 600; margin: 28px 0 8px; }
b, strong { color: var(--text); font-weight: 600; }

p, ul, ol { margin-bottom: 16px; }
ul, ol { padding-left: 22px; }
li { margin-bottom: 8px; }

.atualizado { color: var(--text-2); font-size: 15px; margin-bottom: 36px; }

.aviso-revisao {
  background: var(--card); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: 8px;
  padding: 12px 16px; font-size: 15px; color: var(--text-corpo); margin-bottom: 32px;
}

.indice { background: var(--card); border: 1px solid var(--border); border-radius: 8px; padding: 16px 24px; margin-bottom: 40px; font-size: 16px; }
.indice ol { padding-left: 20px; margin-bottom: 0; }

.tabela-rolar { overflow-x: auto; margin-bottom: 20px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--border); }
th { background: var(--card); color: var(--text); font-weight: 600; }

/* Rodapé */
footer { padding: 64px 48px 32px; border-top: 1px solid var(--border); font-size: 13px; line-height: 1.5; }
footer a { color: var(--text-2); text-decoration: none; }
footer a:hover { color: var(--link); }
.footer-top { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; max-width: 1180px; margin: 0 auto; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.footer-logo-mark { width: 26px; height: 23px; display: block; }
.footer-logo-text { color: var(--text); font-size: 16px; font-weight: 700; letter-spacing: -.02em; }
.footer-heading-sm { color: var(--text); font-size: 14px; font-weight: 700; margin-bottom: 14px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-social { display: flex; gap: 10px; margin-bottom: 20px; }
.social-btn { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--border); color: var(--text); }
.social-btn:hover { border-color: var(--link); }
.footer-contact { color: var(--text-2); font-style: normal; line-height: 1.6; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; max-width: 1180px; margin: 48px auto 0; padding-top: 24px; border-top: 1px solid var(--border); color: var(--text-2); }
.footer-empresa { font-size: 12px; font-style: normal; line-height: 1.6; }
.footer-legal { display: flex; gap: 20px; flex-wrap: wrap; }

@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 860px) {
  .pill-nav-wrap { position: static; }
  .pill-nav-menu-btn { display: inline-flex; }
  .pill-nav-links {
    display: none; position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 110; flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px; background: var(--card); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 8px 28px rgba(0, 0, 0, .5);
  }
  .pill-nav-links.aberto { display: flex; }
  .pill-nav-links a { display: block; padding: 12px 14px; color: var(--text); }
  footer { padding-inline: 20px; }
}

@media (max-width: 560px) {
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  h2 { font-size: 23px; }
}

@media (max-width: 420px) {
  .pill-nav-logo-text { display: none; }
  .pill-nav-cta { padding: 8px 12px; }
}
