/* World IT Mission — banner e preferências de cookies + rodapé legal.
   Cantos 12 (botões) / 20 (faixa) / 28 (diálogo). Aceitar e Recusar têm o mesmo estilo. */

.cc, .cc * { box-sizing: border-box; }

/* ---------- faixa (não modal) ---------- */
.cc-banner {
  position: fixed; z-index: 100; left: var(--s-4, 16px); right: var(--s-4, 16px); bottom: var(--s-4, 16px);
  max-width: 880px; margin-inline: auto; max-height: 70vh; overflow-y: auto;
  display: flex; flex-wrap: wrap; gap: var(--s-4, 16px) var(--s-5, 24px); align-items: center; justify-content: space-between;
  padding: var(--s-5, 24px); border-radius: 20px;
  background: var(--ink-2, #181b1e); color: var(--paper, #efefea);
  border: 1px solid var(--line-strong, rgba(239, 239, 234, .32));
  box-shadow: 0 12px 40px rgba(0, 0, 0, .45);
}
.cc-text { flex: 1 1 340px; min-width: 0; }
.cc-title { margin: 0 0 var(--s-1, 4px); font: 900 var(--fs-small, .875rem)/1.2 Arial, Helvetica, sans-serif; letter-spacing: .12em; text-transform: uppercase; }
.cc-desc { margin: 0; font-size: var(--fs-small, .875rem); line-height: 1.55; color: var(--text-muted, rgba(239, 239, 234, .72)); overflow-wrap: anywhere; }
.cc-link { color: var(--paper, #efefea); text-decoration: underline; text-underline-offset: 3px; }
.cc-link:hover { color: var(--acid, #d9ff3f); }

.cc-actions { display: flex; flex-wrap: wrap; gap: var(--s-2, 8px); }
.cc-btn {
  min-height: 44px; min-width: 44px; padding: 0 var(--s-5, 24px); border-radius: 12px; cursor: pointer;
  font: 900 var(--fs-small, .875rem)/1 Arial, Helvetica, sans-serif; letter-spacing: .06em; text-transform: uppercase;
  background: var(--paper, #efefea); color: var(--ink, #111315); border: 2px solid var(--paper, #efefea);
}
.cc-btn:hover { background: var(--acid, #d9ff3f); border-color: var(--acid, #d9ff3f); }
.cc-btn-text { background: transparent; color: var(--paper, #efefea); border-color: var(--line-strong, rgba(239, 239, 234, .32)); }
.cc-btn-text:hover { background: transparent; color: var(--acid, #d9ff3f); border-color: var(--acid, #d9ff3f); }
.cc :focus-visible { outline: 2px solid var(--acid, #d9ff3f); outline-offset: 3px; }

/* ---------- diálogo de preferências ---------- */
.cc-modal { position: fixed; inset: 0; z-index: 110; display: grid; place-items: center; padding: var(--s-4, 16px); }
.cc-backdrop { position: absolute; inset: 0; background: rgba(17, 19, 21, .72); }
.cc-box {
  position: relative; width: min(640px, 100%); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow-y: auto;
  padding: var(--s-6, 32px); border-radius: 28px;
  background: var(--ink-2, #181b1e); color: var(--paper, #efefea); border: 1px solid var(--line-strong, rgba(239, 239, 234, .32));
}
.cc-h { margin: 0 0 var(--s-3, 12px); font: 900 clamp(1.4rem, 4vw, 1.9rem)/1.05 Arial, Helvetica, sans-serif; text-transform: uppercase; letter-spacing: -.02em; }
.cc-h:focus { outline: none; }
.cc-list { list-style: none; margin: var(--s-5, 24px) 0; padding: 0; display: grid; gap: var(--s-3, 12px); }
.cc-row { padding: var(--s-4, 16px); border-radius: 12px; border: 1px solid var(--line, rgba(239, 239, 234, .16)); background: var(--ink, #111315); }
.cc-label { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3, 12px); min-height: 44px; cursor: pointer; }
.cc-check { appearance: none; -webkit-appearance: none; flex: none; width: 44px; height: 26px; margin: 0; border-radius: 999px; position: relative; cursor: pointer;
  background: transparent; border: 2px solid var(--line-strong, rgba(239, 239, 234, .32)); }
.cc-check::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--paper, #efefea); }
.cc-check:checked { background: var(--acid, #d9ff3f); border-color: var(--acid, #d9ff3f); }
.cc-check:checked::after { left: 21px; background: var(--ink, #111315); }
.cc-check:disabled { cursor: not-allowed; opacity: .75; }
.cc-name { font: 900 var(--fs-small, .875rem)/1.2 Arial, Helvetica, sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.cc-use { margin-left: auto; font-size: var(--fs-label, .75rem); color: var(--text-faint, rgba(239, 239, 234, .55)); }
.cc-rowdesc { margin: var(--s-2, 8px) 0 0; font-size: var(--fs-small, .875rem); line-height: 1.55; color: var(--text-muted, rgba(239, 239, 234, .72)); }
.cc-box .cc-actions { justify-content: flex-end; }
html.cc-open { overflow: hidden; }

@media (prefers-reduced-motion: no-preference) {
  .cc-banner { animation: cc-in 250ms cubic-bezier(.16, 1, .3, 1); }
  .cc-box { animation: cc-in 250ms cubic-bezier(.16, 1, .3, 1); }
  .cc-check::after { transition: left 150ms; }
  @keyframes cc-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
}
@media (forced-colors: active) {
  .cc-banner, .cc-box, .cc-row { border: 2px solid CanvasText; }
  .cc-check:checked { forced-color-adjust: none; background: Highlight; }
}
@media (max-width: 560px) {
  .cc-banner { left: var(--s-2, 8px); right: var(--s-2, 8px); bottom: var(--s-2, 8px); padding: var(--s-3, 12px) var(--s-4, 16px); gap: var(--s-2, 8px); font-size: 14px; line-height: 1.4; }
  .cc-banner .cc-title { display: none; }
  .cc-actions .cc-btn { min-height: 44px; }
  .cc-actions { width: 100%; }
  .cc-actions .cc-btn { flex: 1 1 auto; padding: 0 var(--s-4, 16px); }
  .cc-box { padding: var(--s-5, 24px) var(--s-4, 16px); }
  .cc-use { margin-left: 0; flex-basis: 100%; }
}

/* ---------- rodapé legal ---------- */
.wim-foot__nav { display: flex; flex-wrap: wrap; gap: 0 var(--s-5, 24px); justify-content: center; }
.wim-foot__nav a, .wim-foot__nav button {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0; background: none; border: 0; cursor: pointer;
  font: inherit; color: inherit; text-decoration: none;
}
.wim-foot__nav a:hover, .wim-foot__nav button:hover { color: var(--acid, #d9ff3f); }
.wim-foot__co { flex-basis: 100%; margin: 0; text-align: center; font-size: var(--fs-label, .75rem); line-height: 1.6; color: var(--text-faint, rgba(239, 239, 234, .55)); overflow-wrap: anywhere; }
.wim-foot__co a { color: inherit; }
footer.wim-foot-wrap { padding: var(--s-5, 24px) var(--gutter, 16px); display: flex; flex-wrap: wrap; gap: var(--s-2, 8px) var(--s-5, 24px); justify-content: center; font-size: var(--fs-small, .875rem); color: var(--text-faint, rgba(239, 239, 234, .55)); border-top: 1px solid var(--line, rgba(239, 239, 234, .16)); }
.site-footer .wim-foot__nav { justify-content: flex-start; }
.site-footer .wim-foot__co { text-align: left; }
