:root {
  --blue: #0A66C2;
  --blue-dark: #004182;
  --bg: #F3F2EF;
  --card: #FFFFFF;
  --border: #DFDEDA;
  --ink: rgba(0, 0, 0, .9);
  --ink-2: rgba(0, 0, 0, .6);
  --btn-text: #FFFFFF;
  --dots: rgba(10, 102, 194, .06);
  --hover-ink: rgba(10, 102, 194, .08);
  --system-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --font: "Josefin Sans", "Segoe UI", sans-serif;
}
html[data-theme="dark"] {
  --blue: #71B7FB;
  --blue-dark: #A8D4FF;
  --bg: #000000;
  --card: #1B1F23;
  --border: rgba(255, 255, 255, .16);
  --ink: rgba(255, 255, 255, .9);
  --ink-2: rgba(255, 255, 255, .6);
  --btn-text: #0B1014;
  --dots: rgba(113, 183, 251, .05);
  --hover-ink: rgba(113, 183, 251, .14);
}
* { box-sizing: border-box; margin: 0; }
html, body { overflow-x: clip; }
body {
  font-family: var(--font);
  background: var(--bg);
  background-image: radial-gradient(var(--dots) 1px, transparent 1px);
  background-size: 22px 22px;
  color: var(--ink);
  min-height: 100vh;
  transition: background .2s ease, color .2s ease;
}
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* ---------- header (mesmo layout do site) ---------- */
header {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 10;
}
.header-inner {
  max-width: 1128px; margin: 0 auto; padding: 10px 24px;
  display: flex; align-items: baseline; gap: 14px;
}
.logo {
  font-family: var(--font); font-weight: 700; font-size: 1.7rem;
  letter-spacing: -.02em; white-space: nowrap;
}
.logo a { color: var(--ink); text-decoration: none; }
.logo .in {
  background: var(--blue); color: var(--btn-text); border-radius: 4px;
  padding: 0 .28em .04em; margin-left: 1px;
}
.tagline {
  font-family: var(--font); font-style: italic; color: var(--ink-2);
  font-size: .95rem; flex: 1;
}
.lang-pills { display: flex; gap: 5px; align-self: center; margin-left: auto; }
.pill {
  display: inline-flex; align-items: center; min-height: 34px;
  font-size: .72rem; font-weight: 700; letter-spacing: .04em;
  padding: 4px 14px; border-radius: 999px; text-decoration: none;
  border: 1px solid var(--blue); color: var(--blue);
  transition: background .15s ease;
}
.pill[href]:hover { background: var(--hover-ink); }
.pill.on { background: var(--blue); color: var(--btn-text); cursor: default; }
button.theme-btn {
  width: 34px; height: 34px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; border: 1px solid var(--border); background: var(--card);
  color: var(--ink); cursor: pointer; align-self: center; flex: none;
}
button.theme-btn svg { overflow: visible; }
html[data-theme="light"] .icon-moon { display: none; }
html[data-theme="dark"] .icon-sun { display: none; }
.icon-moon .moon, .icon-sun .sun-center { transform-origin: center; transform-box: fill-box; }
button.theme-btn:hover .moon { animation: moon-tilt .5s ease-in-out; }
button.theme-btn:hover .sun-center { animation: sun-shrink .4s ease-in-out; }
button.theme-btn:hover .sun-rays { animation: rays-blink .5s ease-in-out; }
@keyframes moon-tilt { 0%, 100% { transform: rotate(0) scale(1); } 50% { transform: rotate(-15deg) scale(1.1); } }
@keyframes sun-shrink { 0%, 100% { transform: scale(1); } 50% { transform: scale(.8); } }
@keyframes rays-blink { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }
@media (max-width: 640px) {
  .header-inner { flex-wrap: wrap; padding: 10px 14px; gap: 8px; }
  .logo { font-size: 1.35rem; }
  .tagline { display: block; order: 5; flex: 1 0 100%; font-size: .78rem; white-space: normal; }
  .pill { padding: 4px 10px; font-size: .68rem; }
}
@media (prefers-reduced-motion: reduce) {
  button.theme-btn:hover .moon, button.theme-btn:hover .sun-center, button.theme-btn:hover .sun-rays { animation: none; }
  .cookie-notice { animation-duration: .15s; animation-delay: 0s; }
  @keyframes rise { from { opacity: 0; } to { opacity: 1; } }
}

/* ---------- documento ---------- */
main { max-width: 720px; margin: 0 auto; padding: 40px 24px 80px; }
h1 {
  font-family: var(--font); font-weight: 700; font-size: 2rem;
  letter-spacing: -.01em; color: var(--blue-dark); margin-bottom: 24px;
}
article p { font-size: 1rem; line-height: 1.65; margin-bottom: 18px; }
article p:last-of-type {
  font-family: var(--font); font-size: 1.05rem;
  border-top: 1px dashed var(--border); padding-top: 18px; margin-top: 24px;
}
.voltar {
  display: inline-block; margin-top: 24px;
  color: var(--blue); text-decoration: none; font-weight: 600; font-size: .9rem;
}
.voltar:hover { text-decoration: underline; }

/* ---------- aviso de cookies (mesmo bloco do site) ---------- */
.cookie-notice {
  position: fixed; z-index: 1001; left: 12px; right: 12px; bottom: 16px;
  max-width: 24rem; margin: 0 auto;
  background: var(--card); border: 1px solid var(--border); border-radius: 10px;
  padding: 16px; box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
  display: flex; gap: 12px; align-items: flex-start;
  animation: rise .3s ease both;
}
@media (min-width: 640px) { .cookie-notice { left: auto; right: 20px; margin: 0; } }
.cookie-notice svg { flex: none; width: 26px; height: 26px; color: var(--blue); margin-top: 2px; }
.cookie-notice h2 { font-family: var(--font); font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.cookie-notice p { font-size: .85rem; line-height: 1.45; color: var(--ink-2); margin-bottom: 10px; }
.cookie-notice button {
  font: inherit; font-size: .85rem; font-weight: 600; color: var(--btn-text); background: var(--blue);
  border: none; border-radius: 999px; padding: 8px 18px; cursor: pointer;
  transition: background .15s ease;
}
.cookie-notice button:hover { background: var(--blue-dark); }
.cookie-notice[hidden] { display: none; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
