/* Página "Status do sistema": banner de topo, cartão sobreposto e animações de carregamento. */

/* ---------- banner de topo ---------- */
body.nx-legal .entry-content > .nxs-hero {
  position: relative; overflow: hidden; text-align: center; color: #cbd5e1;
  padding: 84px 24px 132px; margin-top: 0 !important; margin-bottom: 0 !important;
  background-color: #071327;
  background-image:
    radial-gradient(560px 280px at 85% -10%, rgba(56,189,248,.30), transparent 70%),
    radial-gradient(620px 320px at 8% 110%, rgba(37,99,235,.38), transparent 70%),
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px),
    var(--nx-papelD),
    linear-gradient(135deg, #071327 0%, #0a1a33 45%, #0f2e63 100%);
  background-size: auto, auto, 56px 56px, 56px 56px, 220px 220px, 600px 600px, auto;
  background-repeat: no-repeat, no-repeat, repeat, repeat, repeat, repeat, no-repeat;
}
body.nx-legal .entry-content > .nxs-hero::before { display: none !important; }
.nxs-hero h1 { color: #fff; margin: 0 0 14px; font-size: clamp(2.3rem, 5.2vw, 3.6rem); line-height: 1.1; }
.nxs-hero .nxs-sub { margin: 0 auto; max-width: 640px; font-size: 1.1rem; color: #cbd5e1; }
.nxs-hero .nxs-eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 20px; padding: 6px 16px 6px 14px;
  border: 1px solid rgba(125,211,252,.35); border-radius: 999px; background: rgba(125,211,252,.08);
  color: #7dd3fc; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}
.nxs-hero .nxs-eyebrow::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor;
  animation: nxsEco 2.2s ease-out infinite;
}
@keyframes nxsEco { 0% { box-shadow: 0 0 0 0 rgba(125,211,252,.55); } 100% { box-shadow: 0 0 0 10px rgba(125,211,252,0); } }

/* ---------- fundo da página e cartão sobreposto ao banner ---------- */
body.nx-legal main { background: linear-gradient(#f3f7fd, #fff 520px); }
body.nx-legal .entry-content { padding-bottom: 72px; }
body.nx-legal .nuxsta { position: relative; z-index: 2; margin-top: -68px !important; }
body.nx-legal .nuxsta-topo { padding: 22px 26px; gap: 18px; border-color: #dbe3ef; box-shadow: 0 22px 44px rgba(15,23,42,.16); animation: nxsEntra .6s cubic-bezier(.22,.9,.3,1) both; }
body.nx-legal .nuxsta-bloco { border-color: #e3e9f2; box-shadow: 0 10px 26px rgba(15,23,42,.06); }
body.nx-legal .nuxsta-manchete { font-size: 1.3em; }
@keyframes nxsEntra { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- ponto principal: entra com um "pop" e pulsa com o estado ---------- */
body.nx-legal .nuxsta-ponto { position: relative; flex-basis: 22px; width: 22px; height: 22px; animation: nxsPop .7s cubic-bezier(.3,1.6,.5,1) .15s both; }
body.nx-legal .nuxsta-ponto::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; pointer-events: none;
  animation: nxsPonto 2.2s ease-out 1s infinite;
}
body.nx-legal .nuxsta-ponto[data-e=laranja]::after { animation-duration: 1.6s; }
body.nx-legal .nuxsta-ponto[data-e=vermelho]::after { animation-duration: 1.1s; }
@keyframes nxsPop { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes nxsPonto { 0% { transform: scale(1); opacity: .55; } 70%, 100% { transform: scale(2.8); opacity: 0; } }

/* ---------- barras: sobem uma a uma, da esquerda para a direita, e uma luz passa por cima ---------- */
.nuxsta-barra { position: relative; overflow: hidden; }
.nxs-js .nuxsta-barra:not(.nxs-vai):not(.nxs-pronto) .nuxsta-q { opacity: 0; transform: scaleY(.08); }
.nuxsta-barra.nxs-vai:not(.nxs-pronto) .nuxsta-q {
  transform-origin: bottom;
  animation: nxsBarra .55s cubic-bezier(.22,.9,.3,1) both;
  animation-delay: calc(var(--i, 0) * 11ms + .1s);
}
.nuxsta-barra.nxs-vai:not(.nxs-pronto)::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 16%; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.6), transparent);
  animation: nxsVarre 1.3s ease-in-out 1.05s 1 both;
}
@keyframes nxsBarra { 0% { opacity: 0; transform: scaleY(.08); } 55% { opacity: 1; } 100% { opacity: 1; transform: scaleY(1); } }
@keyframes nxsVarre { from { transform: translateX(-110%); } to { transform: translateX(700%); } }
.nuxsta-q { transform-origin: bottom; transition: transform .15s ease; }
.nuxsta-barra.nxs-pronto .nuxsta-q:hover { transform: scaleY(1.1); }
/* a faixa "agora" respira devagar */
.nuxsta-barra.nxs-pronto .nuxsta-q:last-child { animation: nxsAgora 1.8s ease-in-out infinite; }
@keyframes nxsAgora { 0%, 100% { opacity: 1; } 50% { opacity: .5; } }

@media (max-width: 700px) {
  body.nx-legal .entry-content > .nxs-hero { padding: 56px 20px 112px; }
  body.nx-legal .nuxsta { margin-top: -56px !important; }
}
@media (prefers-reduced-motion: reduce) {
  .nxs-hero .nxs-eyebrow::before, body.nx-legal .nuxsta-topo, body.nx-legal .nuxsta-ponto, body.nx-legal .nuxsta-ponto::after,
  .nuxsta-barra .nuxsta-q, .nuxsta-barra::after { animation: none !important; }
  .nxs-js .nuxsta-barra .nuxsta-q { opacity: 1 !important; transform: none !important; }
}