/* Aviso de cookies e preferências de privacidade. Fonte do sistema de propósito: legível e sem carregar nada de fora. */
.eqc, .eqc-modal, .ft-priv a {
  --eqc-ink: #212A3E; --eqc-text: #3A4455; --eqc-line: #D2D6DA; --eqc-bg: #FFFFFF; --eqc-soft: #F2F3F4; --eqc-accent: #E8981C;
}
.eqc, .eqc-modal {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px; line-height: 1.55; color: var(--eqc-text); box-sizing: border-box;
}
.eqc *, .eqc-modal * { box-sizing: border-box; }
.eqc[hidden], .eqc-modal[hidden] { display: none; }

/* Faixa inferior. Não bloqueia a página: dá para navegar sem decidir. */
.eqc {
  position: fixed; z-index: 2147483000; left: 0; right: 0; bottom: 0;
  padding: 16px 16px max(16px, env(safe-area-inset-bottom));
  background: var(--eqc-bg); border-top: 1px solid var(--eqc-line);
  box-shadow: 0 -12px 32px -12px rgba(33, 42, 62, .22);
  max-height: 85vh; overflow-y: auto;
}
.eqc__in { max-width: 1200px; margin: 0 auto; display: grid; gap: 14px; }
.eqc__title { margin: 0 0 4px; font-size: 16px; font-weight: 700; color: var(--eqc-ink); }
.eqc__text { margin: 0; }
.eqc a, .eqc-modal a { color: var(--eqc-ink); text-decoration: underline; text-underline-offset: 2px; }
.eqc a:hover, .eqc-modal a:hover { color: #000; }

/* Os três botões têm o mesmo tamanho e a mesma facilidade de acesso; só "Personalizar" muda o preenchimento. */
.eqc__actions { display: grid; gap: 10px; }
.eqc-btn {
  appearance: none; font: inherit; font-weight: 600; cursor: pointer; text-align: center;
  min-height: 46px; padding: 10px 18px; border-radius: 12px; border: 2px solid var(--eqc-ink);
  background: var(--eqc-ink); color: #fff;
}
.eqc-btn:hover { background: #151B29; border-color: #151B29; }
.eqc-btn--line { background: transparent; color: var(--eqc-ink); }
.eqc-btn--line:hover { background: var(--eqc-soft); border-color: var(--eqc-ink); }
.eqc-btn:focus-visible, .eqc-switch input:focus-visible + span, .eqc-modal__close:focus-visible, .ft-priv a:focus-visible {
  outline: 3px solid var(--eqc-accent); outline-offset: 2px;
}

@media (min-width: 760px) {
  .eqc__in { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 28px; }
  .eqc__actions { grid-template-columns: repeat(3, 1fr); min-width: 520px; }
}

/* Painel de preferências */
.eqc-modal { position: fixed; inset: 0; z-index: 2147483001; display: flex; align-items: flex-end; justify-content: center; background: rgba(23, 30, 44, .55); }
.eqc-modal__box {
  width: 100%; max-width: 640px; max-height: 92vh; display: flex; flex-direction: column;
  background: var(--eqc-bg); border-radius: 20px 20px 0 0; box-shadow: 0 -20px 60px -20px rgba(0, 0, 0, .4);
}
.eqc-modal__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 20px 20px 8px; }
.eqc-modal__head h2 { margin: 0; font-size: 18px; color: var(--eqc-ink); }
.eqc-modal__close { appearance: none; background: none; border: 0; cursor: pointer; font-size: 26px; line-height: 1; padding: 4px 10px; color: var(--eqc-ink); border-radius: 8px; }
.eqc-modal__body { padding: 0 20px 12px; overflow-y: auto; }
.eqc-modal__body > p { margin: 0 0 14px; }
.eqc-cat { border: 1px solid var(--eqc-line); border-radius: 14px; padding: 14px 16px; margin-bottom: 12px; background: var(--eqc-soft); }
.eqc-cat__top { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.eqc-cat__top h3 { margin: 0; font-size: 15px; color: var(--eqc-ink); }
.eqc-cat p { margin: 6px 0 0; font-size: 14px; }
.eqc-always { font-size: 13px; font-weight: 600; color: var(--eqc-ink); white-space: nowrap; }
.eqc-cat details { margin-top: 8px; font-size: 13px; }
.eqc-cat summary { cursor: pointer; font-weight: 600; color: var(--eqc-ink); padding: 4px 0; }
.eqc-table { width: 100%; border-collapse: collapse; margin-top: 6px; display: block; overflow-x: auto; }
.eqc-table th, .eqc-table td { text-align: left; vertical-align: top; padding: 6px 8px; border-top: 1px solid var(--eqc-line); font-size: 12.5px; min-width: 90px; }
.eqc-table th { color: var(--eqc-ink); }

.eqc-switch { position: relative; display: inline-block; width: 52px; height: 30px; flex: none; }
.eqc-switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.eqc-switch span { position: absolute; inset: 0; border-radius: 30px; background: #8A93A3; transition: background .2s; pointer-events: none; }
.eqc-switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .2s; }
.eqc-switch input:checked + span { background: var(--eqc-ink); }
.eqc-switch input:checked + span::after { transform: translateX(22px); }

.eqc-modal__foot { display: grid; gap: 10px; padding: 14px 20px max(18px, env(safe-area-inset-bottom)); border-top: 1px solid var(--eqc-line); }
@media (min-width: 640px) {
  .eqc-modal { align-items: center; }
  .eqc-modal__box { border-radius: 20px; }
  .eqc-modal__foot { grid-template-columns: repeat(3, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .eqc-switch span, .eqc-switch span::after { transition: none; } }

/* Link "Configurações de privacidade" no rodapé: ocupa o meio da barra, entre o copyright e o crédito. */
.ft-bar .wrap > .ft-priv { order: 1; }
.ft-bar .wrap > span:nth-child(2) { order: 2; }
.ft-priv a { color: #A9B4C6; text-decoration: underline; text-underline-offset: 3px; }
.ft-priv a:hover { color: #fff; }
