.cookie-consent-banner {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 2147483000;
  width: min(720px, calc(100vw - 28px));
  box-sizing: border-box;
  padding: 18px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 22px;
  background: rgba(18,18,20,.97);
  color: #fff;
  box-shadow: 0 18px 55px rgba(0,0,0,.35);
  font-family: Manrope, system-ui, sans-serif;
}

.cookie-consent-banner[hidden] { display: none !important; }
.cookie-consent-banner p { margin: 0; line-height: 1.5; font-size: 14px; }
.cookie-consent-banner strong { font-weight: 800; }
.cookie-consent-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.cookie-consent-actions button,
.privacy-dialog button {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  font: 700 13px/1 Manrope, system-ui, sans-serif;
  cursor: pointer;
}
.cookie-consent-actions .primary {
  background: #fff;
  color: #111;
  border-color: #fff;
}
.cookie-consent-actions .secondary {
  background: transparent;
  color: #fff;
}
.cookie-consent-actions .textual {
  background: transparent;
  color: rgba(255,255,255,.78);
  border-color: transparent;
  padding-inline: 8px;
}

.privacy-footer-link {
  display: flex;
  justify-content: center;
  padding: 14px 16px 96px;
}
.privacy-footer-link button {
  border: 0;
  background: transparent;
  color: inherit;
  opacity: .7;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  font: 600 12px/1.4 Manrope, system-ui, sans-serif;
}

/* Desktop: o link encerra cada view como uma faixa curta que continua o papel
   visual imediatamente acima, em vez de parecer um bloco independente. */
@media (min-width: 1100px) {
  .privacy-footer-link {
    min-height: 36px;
    align-items: center;
    padding: 8px 16px 10px !important;
  }

  body:has(.site-view--home:not([hidden])) .privacy-footer-link {
    background: #141414 !important;
    color: rgba(255,255,255,.66) !important;
  }

  body:has(.site-view--products:not([hidden])) .privacy-footer-link {
    background: #ffffff !important;
    color: rgba(17,17,17,.62) !important;
  }

  body:has(.site-view--services:not([hidden])) .privacy-footer-link,
  body:has(.site-view--human:not([hidden])) .privacy-footer-link {
    background: #141414 !important;
    color: rgba(255,255,255,.66) !important;
  }
}

.privacy-dialog {
  width: min(680px, calc(100vw - 28px));
  max-height: min(82vh, 760px);
  box-sizing: border-box;
  overflow: auto;
  padding: 0;
  border: 0;
  border-radius: 24px;
  background: #fff;
  color: #171719;
  box-shadow: 0 24px 80px rgba(0,0,0,.42);
  font-family: Manrope, system-ui, sans-serif;
}
.privacy-dialog::backdrop { background: rgba(0,0,0,.58); backdrop-filter: blur(3px); }
.privacy-dialog-inner { padding: 22px 24px; }
.privacy-dialog h2 { margin: 0 0 10px; font: 800 24px/1.15 Fraunces, Georgia, serif; }
.privacy-dialog p { margin: 0 0 10px; font-size: 14px; line-height: 1.52; }
.privacy-dialog a { color: inherit; }
.privacy-dialog-status {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 14px;
  background: #f1f1f3;
  font-size: 13px;
  font-weight: 800;
}
.privacy-dialog-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.privacy-dialog .primary { background: #151517; color: #fff; border-color: #151517; }
.privacy-dialog .secondary { background: #fff; color: #151517; border-color: #cfcfd4; }

@media (max-width: 640px) {
  .cookie-consent-banner { bottom: 86px; padding: 16px; border-radius: 20px; }
  .cookie-consent-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .cookie-consent-actions .textual { grid-column: 1 / -1; }
  .privacy-dialog-inner { padding: 18px; }
  .privacy-dialog p { margin-bottom: 8px; line-height: 1.48; }
}
