:root {
  --wf-legal-bg: #0b1220;
  --wf-legal-surface: #111c30;
  --wf-legal-surface-2: #17243a;
  --wf-legal-text: #f4f7fb;
  --wf-legal-muted: #a8b4c7;
  --wf-legal-border: rgba(148,163,184,.16);
  --wf-legal-primary: #0055ff;
  --wf-legal-accent: #00e5ff;
  --wf-legal-focus: #7dd3fc;
}
html.light {
  --wf-legal-bg: #f7f9ff;
  --wf-legal-surface: #ffffff;
  --wf-legal-surface-2: #f0f4ff;
  --wf-legal-text: #0a1020;
  --wf-legal-muted: #586174;
  --wf-legal-border: rgba(12,28,64,.15);
  --wf-legal-focus: #003ac5;
}
.wf-cookie-banner,
.wf-legal-modal,
.wf-floating-actions,
.wf-legal-links,
.wf-aux-legal-footer { box-sizing: border-box; font-family: inherit; }
.wf-cookie-banner * , .wf-legal-modal * , .wf-floating-actions * , .wf-legal-links * , .wf-aux-legal-footer * { box-sizing: border-box; }

.wf-cookie-banner {
  position: fixed; inset: auto 16px 16px 16px; z-index: 10020;
  max-width: 760px; margin: 0 auto; padding: 18px;
  color: var(--wf-legal-text); background: color-mix(in srgb, var(--wf-legal-surface) 96%, transparent);
  border: 1px solid var(--wf-legal-border); border-radius: 20px;
  box-shadow: 0 22px 70px rgba(0,0,0,.34); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
.wf-cookie-banner[hidden] { display:none !important; }
.wf-cookie-banner__head { display:flex; gap:14px; align-items:flex-start; }
.wf-cookie-banner__icon { width:42px; height:42px; border-radius:14px; display:grid; place-items:center; flex:0 0 auto; background:linear-gradient(135deg,var(--wf-legal-primary),var(--wf-legal-accent)); color:#fff; }
.wf-cookie-banner h2 { margin:0 0 6px; color:var(--wf-legal-text); font-size:1rem; line-height:1.3; font-weight:800; }
.wf-cookie-banner p { margin:0; color:var(--wf-legal-muted); font-size:.875rem; line-height:1.6; }
.wf-cookie-banner__links { display:flex; flex-wrap:wrap; gap:10px 16px; margin-top:10px; }
.wf-cookie-banner__links button { border:0; background:transparent; padding:0; color:var(--wf-legal-accent); text-decoration:underline; text-underline-offset:3px; cursor:pointer; font:inherit; font-size:.78rem; }
.wf-cookie-banner__actions { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin-top:16px; }
.wf-btn { min-height:42px; border-radius:999px; padding:10px 14px; font:inherit; font-size:.8rem; font-weight:800; cursor:pointer; border:1px solid var(--wf-legal-border); transition:transform .18s ease, border-color .18s ease, background .18s ease, color .18s ease; }
.wf-btn:hover { transform:translateY(-1px); }
.wf-btn:focus-visible, .wf-cookie-banner button:focus-visible, .wf-legal-modal button:focus-visible, .wf-legal-links button:focus-visible, .wf-floating-action:focus-visible { outline:3px solid var(--wf-legal-focus); outline-offset:3px; }
.wf-btn--secondary { color:var(--wf-legal-text); background:transparent; }
.wf-btn--secondary:hover { border-color:color-mix(in srgb,var(--wf-legal-accent) 55%,var(--wf-legal-border)); }
.wf-btn--primary { color:#fff; border-color:transparent; background:linear-gradient(135deg,var(--wf-legal-primary),#254dff); }
.wf-btn--primary:hover { background:linear-gradient(135deg,#0649d8,var(--wf-legal-primary)); }
.wf-btn--accent { color:#061019; border-color:transparent; background:var(--wf-legal-accent); }

.wf-legal-modal { position:fixed; inset:0; z-index:10030; display:none; align-items:center; justify-content:center; padding:20px; background:rgba(0,0,0,.68); backdrop-filter:blur(8px); -webkit-backdrop-filter:blur(8px); }
.wf-legal-modal.is-open { display:flex; }
.wf-legal-modal__dialog { width:min(820px,100%); max-height:min(86vh,900px); display:flex; flex-direction:column; overflow:hidden; color:var(--wf-legal-text); background:var(--wf-legal-surface); border:1px solid var(--wf-legal-border); border-radius:22px; box-shadow:0 28px 100px rgba(0,0,0,.46); }
.wf-legal-modal__header { display:flex; justify-content:space-between; align-items:center; gap:16px; padding:18px 20px; border-bottom:1px solid var(--wf-legal-border); }
.wf-legal-modal__header small { display:block; color:var(--wf-legal-accent); font-size:.7rem; font-weight:800; text-transform:uppercase; letter-spacing:.12em; margin-bottom:4px; }
.wf-legal-modal__header h2 { color:var(--wf-legal-text); font-size:1.15rem; line-height:1.35; margin:0; font-weight:800; }
.wf-legal-modal__close { width:40px; height:40px; border-radius:50%; border:1px solid var(--wf-legal-border); display:grid; place-items:center; color:var(--wf-legal-muted); background:transparent; cursor:pointer; font-size:1.3rem; }
.wf-legal-modal__close:hover { color:var(--wf-legal-text); border-color:var(--wf-legal-accent); }
.wf-legal-modal__body { overflow:auto; padding:20px; color:var(--wf-legal-muted); font-size:.9rem; line-height:1.72; scrollbar-width:thin; }
.wf-legal-modal__body h3 { color:var(--wf-legal-text); font-size:1rem; margin:20px 0 6px; font-weight:800; }
.wf-legal-modal__body h3:first-child { margin-top:0; }
.wf-legal-modal__body p { margin:0 0 10px; }
.wf-legal-modal__body ul { margin:8px 0 12px 20px; padding:0; }
.wf-legal-modal__body li { margin:5px 0; }
.wf-legal-modal__body a { color:var(--wf-legal-accent); }
.wf-legal-meta { margin-top:22px; padding:12px 14px; border:1px solid var(--wf-legal-border); border-radius:12px; background:var(--wf-legal-surface-2); color:var(--wf-legal-muted); font-size:.76rem; }

.wf-cookie-category { display:grid; grid-template-columns:1fr auto; gap:14px; align-items:center; padding:14px 0; border-bottom:1px solid var(--wf-legal-border); }
.wf-cookie-category:last-of-type { border-bottom:0; }
.wf-cookie-category strong { display:block; color:var(--wf-legal-text); margin-bottom:3px; }
.wf-cookie-category p { margin:0; font-size:.82rem; }
.wf-cookie-required { display:inline-block; padding:5px 9px; border-radius:999px; background:var(--wf-legal-surface-2); color:var(--wf-legal-muted); font-size:.7rem; font-weight:800; }
.wf-switch { position:relative; display:inline-flex; width:48px; height:28px; flex:0 0 auto; }
.wf-switch input { position:absolute; opacity:0; pointer-events:none; }
.wf-switch span { width:100%; height:100%; border-radius:999px; background:#555b68; transition:.2s; cursor:pointer; border:1px solid var(--wf-legal-border); }
.wf-switch span::after { content:''; position:absolute; width:20px; height:20px; top:4px; left:4px; border-radius:50%; background:#fff; transition:.2s; box-shadow:0 2px 8px rgba(0,0,0,.25); }
.wf-switch input:checked + span { background:var(--wf-legal-primary); }
.wf-switch input:checked + span::after { transform:translateX(20px); }
.wf-switch input:focus-visible + span { outline:3px solid var(--wf-legal-focus); outline-offset:3px; }
.wf-preferences-actions { display:flex; flex-wrap:wrap; gap:10px; margin-top:18px; }

.wf-legal-links { margin-top:18px; padding-top:18px; border-top:1px solid var(--wf-legal-border); }
.wf-legal-links__title { display:block; color:var(--wf-legal-text); font-size:.75rem; font-weight:800; text-transform:uppercase; letter-spacing:.09em; margin-bottom:10px; }
.wf-legal-links__items { display:flex; flex-wrap:wrap; gap:8px 18px; }
.wf-legal-links button { padding:0; border:0; background:transparent; color:var(--wf-legal-muted); cursor:pointer; font:inherit; font-size:.78rem; text-align:left; }
.wf-legal-links button:hover { color:var(--wf-legal-accent); }
.wf-webfusion-credit { width:100%; margin-top:12px; padding-top:12px; border-top:1px solid var(--wf-legal-border); color:var(--wf-legal-muted); font-size:.76rem; text-align:center; }
.wf-webfusion-credit a { color:var(--wf-legal-text); text-decoration:none; font-weight:700; }
.wf-webfusion-credit a:hover { color:var(--wf-legal-accent); }

.wf-aux-legal-footer { width:min(900px,calc(100% - 32px)); margin:28px auto 0; padding:18px 0 4px; color:var(--wf-legal-muted); }
.wf-aux-legal-footer .wf-legal-links { text-align:center; }
.wf-aux-legal-footer .wf-legal-links__items { justify-content:center; }

.wf-floating-actions { position:fixed; right:20px; bottom:18px; z-index:10010; display:flex; flex-direction:column; align-items:center; gap:12px; }
.wf-floating-action { width:56px; height:56px; border-radius:50%; display:grid; place-items:center; border:0; cursor:pointer; text-decoration:none; transition:transform .18s ease, box-shadow .18s ease, opacity .18s ease; box-shadow:0 10px 28px rgba(0,0,0,.28); }
.wf-floating-action svg { width:27px; height:27px; }
.wf-floating-action:hover { transform:translateY(-2px); }
.wf-floating-action--top { color:var(--wf-legal-text); background:var(--wf-legal-surface); border:1px solid var(--wf-legal-border); opacity:0; visibility:hidden; transform:translateY(8px); }
.wf-floating-action--top.is-visible { opacity:1; visibility:visible; transform:translateY(0); }
.wf-floating-action--wa { color:#fff; background:#25D366; animation:wfWhatsappPulse 2.2s ease-in-out infinite; }
.wf-floating-action--wa:hover { background:#1fbd59; box-shadow:0 12px 34px rgba(37,211,102,.34); }
@keyframes wfWhatsappPulse { 0%,100%{box-shadow:0 0 0 0 rgba(37,211,102,.28),0 10px 28px rgba(0,0,0,.28)} 50%{box-shadow:0 0 0 11px rgba(37,211,102,0),0 10px 28px rgba(0,0,0,.28)} }

@media(max-width:720px){
  .wf-cookie-banner { inset:auto 10px 10px 10px; padding:15px; border-radius:17px; }
  .wf-cookie-banner__actions { grid-template-columns:1fr; }
  .wf-legal-modal { padding:10px; align-items:flex-end; }
  .wf-legal-modal__dialog { max-height:91vh; border-radius:20px 20px 14px 14px; }
  .wf-floating-actions { right:14px; bottom:18px; gap:8px; }
  .wf-floating-action { width:52px; height:52px; }
  .wf-floating-action svg { width:25px; height:25px; }
}
@media(prefers-reduced-motion:reduce){
  .wf-floating-action--wa { animation:none; }
  .wf-floating-action, .wf-btn, .wf-switch span, .wf-switch span::after { transition:none; }
}
footer .wf-legal-links { grid-column: 1 / -1; }
footer > .wf-webfusion-credit { max-width:80rem; margin-left:auto; margin-right:auto; padding-left:24px; padding-right:24px; }


/* Voltar ao topo: discreto; WhatsApp continua como ação principal */
.wf-floating-action--top{
  width:40px!important;height:40px!important;
  box-shadow:0 6px 16px rgba(0,0,0,.14)!important;
  background:color-mix(in srgb,var(--wf-legal-surface) 84%,transparent)!important;
  border-color:color-mix(in srgb,var(--wf-legal-border) 82%,transparent)!important;
}
.wf-floating-action--top svg{width:17px!important;height:17px!important;stroke-width:1.7!important;}
.wf-floating-action--top:hover{transform:translateY(-1px)!important;box-shadow:0 8px 18px rgba(0,0,0,.18)!important;}
@media(max-width:768px){.wf-floating-action--top{width:38px!important;height:38px!important}.wf-floating-action--top svg{width:16px!important;height:16px!important}}

/* ===== R4.6.4 — Interações consistentes em cookies e modais ===== */
.wf-btn,.wf-legal-modal__close,.wf-cookie-banner__links button,.wf-legal-links button{
  transition:transform .24s ease,box-shadow .24s ease,border-color .24s ease,background .24s ease,color .24s ease!important;
}
@media(hover:hover){
  .wf-btn--primary:hover,.wf-btn--accent:hover{
    transform:translateY(-2px)!important;
    color:#061019!important;
    border-color:#00e5ff!important;
    background:#00e5ff!important;
    box-shadow:0 14px 32px rgba(0,229,255,.18),0 6px 16px rgba(0,0,0,.16)!important;
  }
  .wf-btn--secondary:hover{
    transform:translateY(-2px)!important;
    color:var(--wf-legal-text)!important;
    background:color-mix(in srgb,var(--wf-legal-accent) 9%,var(--wf-legal-surface))!important;
    border-color:color-mix(in srgb,var(--wf-legal-accent) 55%,var(--wf-legal-border))!important;
  }
  .wf-legal-modal__close:hover{transform:translateY(-1px);background:color-mix(in srgb,var(--wf-legal-accent) 8%,var(--wf-legal-surface));box-shadow:0 8px 20px rgba(0,229,255,.08);}
  .wf-cookie-banner__links button:hover,.wf-legal-links button:hover{transform:translateY(-1px);}
}
.wf-btn:active,.wf-legal-modal__close:active,.wf-cookie-banner__links button:active,.wf-legal-links button:active{transform:translateY(0) scale(.98)!important;transition-duration:.08s!important;}
.wf-btn:disabled,.wf-btn[aria-disabled="true"]{opacity:.55!important;cursor:not-allowed!important;transform:none!important;box-shadow:none!important;pointer-events:none;}
