/********** Guarabyte — customizações sobre o template AI.Tech **********/

:root {
    --gb-radius: 14px;
    --gb-shadow: 0 10px 30px rgba(20, 24, 62, .08);
}

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }

.skip-link {
    position: absolute; left: -9999px; top: 0; z-index: 100000;
    background: #fff; color: var(--primary); padding: .75rem 1rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.text-white-75 { color: rgba(255, 255, 255, .8) !important; }
.lead-hero { font-size: 1.125rem; }
.section-anchor { scroll-margin-top: 80px; }
[id] { scroll-margin-top: 90px; }

/*** Marca ***/
/* Logos são PNG transparentes (prata) — sempre sobre fundo azul/escuro; ver partial `logo`. */
.brand-logo { display: block; max-width: 100%; height: auto; user-select: none; }
.brand-link .brand-logo { flex-shrink: 0; max-width: none; }
.brand-link { gap: .7rem; }
.brand-link .brand-logo-mark { filter: drop-shadow(0 2px 8px rgba(20, 24, 62, .35)); }
.footer-brand { line-height: 0; }
.footer-brand .brand-logo { filter: drop-shadow(0 4px 14px rgba(21, 172, 225, .25)); }
@media (max-width: 380px) {
    .brand-link { gap: .5rem; }
    .brand-link .brand-logo-wordmark { width: 118px; }
}

/*** Navbar ***/
.navbar-brand { padding: 0; margin-right: 1rem; }
.navbar .dropdown-menu {
    border-radius: 12px; box-shadow: var(--gb-shadow); padding: .5rem;
    min-width: 230px;
}
.navbar .dropdown-item { border-radius: 8px; padding: .55rem .9rem; font-weight: 500; }
.navbar .dropdown-item:hover,
.navbar .dropdown-item.active { background: var(--light); color: var(--primary); }
.navbar .nav-link:focus-visible,
.navbar .btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 6px; }
.nav-cta { font-weight: 600; color: var(--primary); }

@media (min-width: 992px) {
    .navbar .nav-item:focus-within .dropdown-menu {
        top: 100%; visibility: visible; opacity: 1;
    }
    .navbar .nav-item .dropdown-menu { top: 120%; }
    .navbar .dropdown-toggle::after { display: none; }
}

@media (max-width: 991.98px) {
    /* Menu expandido empurra o conteúdo: o header precisa ter fundo próprio */
    header.sticky-top { background: var(--primary); }
    .navbar { height: auto; min-height: 75px; }
    .navbar-collapse { padding-bottom: .5rem; }
    .navbar .navbar-nav { border-radius: 0 0 12px 12px; }
    .navbar .dropdown-menu { position: static; background: transparent; box-shadow: none; padding: 0 0 .5rem 1rem; }
    .navbar .dropdown-menu.show { display: block; }
    .navbar .dropdown-item { color: rgba(255, 255, 255, .8); padding: .5rem 0; }
    .navbar .dropdown-item:hover, .navbar .dropdown-item.active { background: transparent; color: #fff; }
    .navbar .dropdown-toggle::after { float: right; }
    .nav-cta { display: block; text-align: center; margin: 1rem 15px !important; }
}

/*** Hero ***/
.hero-header { position: relative; overflow: hidden; }
.hero-header.inner-hero { margin-bottom: 0; }
.hero-header::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(180deg, rgba(20, 24, 62, .18), rgba(20, 24, 62, 0) 40%);
}
.hero-header > .container { position: relative; z-index: 1; }
.hero-header h1 { text-wrap: balance; }

.hero-icon {
    width: 190px; height: 190px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 4.5rem; color: #fff;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .25);
    box-shadow: 0 0 0 18px rgba(255, 255, 255, .05), 0 0 0 40px rgba(255, 255, 255, .03);
}

/*** Ilustração NOC (hero da home) ***/
.noc-visual {
    position: relative; width: 100%; max-width: 480px; aspect-ratio: 1 / 1; margin: 0 auto;
}
.noc-ring { position: absolute; border-radius: 50%; border: 1px dashed rgba(255, 255, 255, .25); }
.noc-ring-1 { inset: 13%; }
.noc-ring-2 { inset: 0; opacity: .5; }
.noc-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.noc-lines line { stroke: rgba(255, 255, 255, .35); stroke-width: 1.5; stroke-dasharray: 4 5; }
.noc-packet,
.noc-packet-static { fill: #7fe3ff; filter: drop-shadow(0 0 3px #7fe3ff); }
.noc-packet-static { display: none; }
.noc-core {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
    width: 27%; aspect-ratio: 1; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .4);
    box-shadow: 0 0 0 10px rgba(255, 255, 255, .06), 0 0 60px rgba(21, 172, 225, .55);
    animation: noc-pulse 3.5s ease-in-out infinite;
}
.noc-core .brand-logo { width: auto; height: 66%; filter: drop-shadow(0 4px 12px rgba(20, 24, 62, .4)); }
.noc-node {
    position: absolute; transform: translate(-50%, -50%);
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    width: 26%; text-align: center;
}
.noc-node-icon {
    width: 54px; height: 54px; border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    background: #fff; color: var(--primary); font-size: 1.25rem;
    box-shadow: 0 8px 24px rgba(20, 24, 62, .3);
}
.noc-node-label {
    font-size: .72rem; font-weight: 600; color: #fff; line-height: 1.2;
    text-shadow: 0 1px 6px rgba(20, 24, 62, .5);
}
@keyframes noc-pulse {
    0%, 100% { box-shadow: 0 0 0 10px rgba(255, 255, 255, .06), 0 0 50px rgba(21, 172, 225, .45); }
    50%      { box-shadow: 0 0 0 18px rgba(255, 255, 255, .03), 0 0 80px rgba(21, 172, 225, .7); }
}
@media (max-width: 575.98px) {
    .noc-node-icon { width: 42px; height: 42px; font-size: 1rem; border-radius: 12px; }
    .noc-node-label { font-size: .62rem; }
}
@media (prefers-reduced-motion: reduce) {
    .noc-core { animation: none; }
    .noc-packet { display: none; }
    .noc-packet-static { display: inline; }
    html { scroll-behavior: auto; }
}

/*** Números ***/
.stats-strip { margin-top: -2.75rem; position: relative; z-index: 2; }
.stats-card {
    background: #fff; border-radius: var(--gb-radius); box-shadow: var(--gb-shadow); overflow: hidden;
}
.stat-cell { padding: 1.6rem 1rem; border-right: 1px solid #eef1f8; }
.stat-cell:last-child { border-right: 0; }
.stat-value { font-family: 'Ubuntu', sans-serif; font-weight: 700; font-size: 2rem; color: var(--primary); line-height: 1.1; }
.stat-label { font-size: .9rem; color: #6b7280; margin-top: .25rem; }
@media (max-width: 991.98px) {
    .stat-cell:nth-child(2) { border-right: 0; }
    .stat-cell:nth-child(-n+2) { border-bottom: 1px solid #eef1f8; }
}
@media (max-width: 575.98px) { .stat-value { font-size: 1.5rem; } }

/*** Painel de pilares (Quem somos) ***/
.pillars-panel {
    background: linear-gradient(145deg, var(--primary), var(--dark)); border-radius: var(--gb-radius);
    padding: 2rem; color: rgba(255, 255, 255, .8); position: relative; overflow: hidden;
}
.pillars-panel::before {
    content: ""; position: absolute; width: 320px; height: 320px; right: -110px; top: -110px;
    border-radius: 50%; background: radial-gradient(circle, rgba(21, 172, 225, .45), transparent 65%);
}
.pillars-badge { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; position: relative; }
.pillars-badge-number { font-family: 'Ubuntu', sans-serif; font-weight: 700; font-size: 4rem; line-height: 1; color: #fff; }
.pillars-badge-text { font-size: .95rem; line-height: 1.35; color: rgba(255, 255, 255, .85); }
.pillar-item {
    background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 12px; padding: 1.1rem; position: relative;
}
.pillar-item i { color: #7fe3ff; font-size: 1.3rem; margin-bottom: .6rem; display: block; }
.pillar-item small { color: rgba(255, 255, 255, .72); display: block; line-height: 1.45; }

/*** Serviços (cards) ***/
.service-item { box-shadow: var(--gb-shadow); border: 1px solid #eef1f8; }
.service-item .service-icon { flex-shrink: 0; }
.service-item p { font-size: .95rem; }
.service-item:hover { border-color: var(--primary); }
.service-item h5 { text-wrap: balance; }

.service-icon-lg {
    width: 84px; height: 84px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--primary); background: var(--light);
    box-shadow: 0 0 0 8px rgba(19, 99, 198, .06);
}

/*** Etapas ***/
.step-item {
    position: relative; background: #fff; border: 1px solid #eef1f8; border-radius: var(--gb-radius);
    padding: 2.4rem 1.6rem 1.6rem; box-shadow: var(--gb-shadow);
}
.step-number {
    position: absolute; top: -22px; left: 1.6rem;
    width: 44px; height: 44px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Ubuntu', sans-serif; font-weight: 700; font-size: 1.15rem;
    color: #fff; background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 6px 16px rgba(19, 99, 198, .35);
}

/*** Públicos ***/
.audience-item {
    background: #fff; border-radius: var(--gb-radius); padding: 2rem 1.6rem; box-shadow: var(--gb-shadow);
}
.audience-icon {
    width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 1.2rem;
    display: flex; align-items: center; justify-content: center;
    color: #fff; background: linear-gradient(135deg, var(--primary), var(--secondary));
}

/*** FAQ ***/
.accordion-item { border-radius: 12px !important; overflow: hidden; margin-bottom: .75rem; border: 1px solid #eef1f8; }
.accordion-button { font-weight: 600; font-size: 1.05rem; }
.accordion-button:not(.collapsed) { color: var(--primary); background: var(--light); box-shadow: none; }
.accordion-button:focus { box-shadow: 0 0 0 .2rem rgba(19, 99, 198, .2); }

/*** Princípios ***/
.principle-item {
    display: flex; gap: 1rem; align-items: flex-start;
    background: #fff; border-radius: var(--gb-radius); padding: 1.3rem; box-shadow: var(--gb-shadow);
}
.principle-icon {
    flex: 0 0 48px; height: 48px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    background: var(--light); color: var(--primary);
}
.principle-item p { font-size: .92rem; }

/*** Página de serviço ***/
.feature-item {
    display: flex; gap: .85rem; align-items: flex-start;
    background: #fff; border: 1px solid #eef1f8; border-radius: 12px; padding: 1.1rem 1.2rem;
    box-shadow: 0 4px 14px rgba(20, 24, 62, .05);
}
.bg-light .feature-item { border-color: transparent; }
.feature-item > i { margin-top: .2rem; font-size: 1.05rem; }
.feature-item p { font-size: .92rem; color: #5b6172; }

.model-item {
    background: linear-gradient(145deg, var(--primary), var(--dark)); color: rgba(255, 255, 255, .8);
    border-radius: var(--gb-radius); padding: 1.6rem;
}
.level-item {
    background: #fff; border: 1px solid #eef1f8; border-radius: var(--gb-radius); padding: 1.6rem; box-shadow: var(--gb-shadow);
}
.level-tag {
    display: inline-block; font-family: 'Ubuntu', sans-serif; font-weight: 700;
    color: #fff; background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 10px; padding: .25rem .8rem; margin-bottom: .8rem;
}
.glossary-item {
    background: #fff; border-left: 4px solid var(--secondary); border-radius: 8px; padding: 1rem 1.2rem;
    box-shadow: 0 4px 14px rgba(20, 24, 62, .05);
}
.glossary-item strong { color: var(--primary); font-family: 'Ubuntu', sans-serif; font-size: 1.1rem; }
.glossary-item p { font-size: .9rem; color: #5b6172; }

/*** CTA ***/
.cta-band {
    background: linear-gradient(120deg, rgba(19, 99, 198, .95), rgba(20, 24, 62, .96)), url(../img/bg-hero.png) center / cover no-repeat;
}

/*** Contato ***/
.form-control, .form-select { border-radius: 10px; }
.form-control.is-invalid, .form-select.is-invalid { background-image: none; }
.form-check-input.is-invalid ~ .form-check-label { color: inherit; }
.contact-card {
    background: linear-gradient(145deg, var(--primary), var(--dark)); color: rgba(255, 255, 255, .82);
    border-radius: var(--gb-radius); padding: 2rem;
}
.contact-card a { color: #fff; }
.contact-line { display: flex; gap: 1rem; margin-bottom: 1.4rem; }
.contact-line > i {
    flex: 0 0 42px; height: 42px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, .12); color: #7fe3ff;
}

/*** Chat de suporte (Chatwoot em modal) — partial support-chat + support-chat.js ***/
.support-cta {
    margin-top: 1.5rem; padding: 1.6rem;
    background: #fff; border: 1px solid #eef1f8; border-radius: var(--gb-radius); box-shadow: var(--gb-shadow);
}
.support-cta-head { display: flex; align-items: center; gap: 1rem; margin-bottom: .9rem; }
.support-cta-icon {
    flex: 0 0 46px; height: 46px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: rgba(19, 99, 198, .1); color: var(--primary); font-size: 1.15rem;
}
.support-cta p { margin-bottom: 1.2rem; }
.support-status { display: inline-flex; align-items: center; gap: .45rem; font-size: .85rem; font-weight: 600; color: #1a9a5b; }
.support-status::before {
    content: ""; width: 8px; height: 8px; border-radius: 50%; background: #1fc46f;
    box-shadow: 0 0 0 0 rgba(31, 196, 111, .6); animation: support-pulse 2s infinite;
}
@keyframes support-pulse {
    70%  { box-shadow: 0 0 0 8px rgba(31, 196, 111, 0); }
    100% { box-shadow: 0 0 0 0 rgba(31, 196, 111, 0); }
}
/* Backdrop próprio (o Chatwoot não tem um); abaixo do banner de cookies (z-index 2147483645) */
.support-backdrop {
    position: fixed; inset: 0; z-index: 2147483000;
    background: rgba(8, 11, 32, .72); backdrop-filter: blur(4px);
    opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s ease;
}
.support-backdrop.is-open { opacity: 1; visibility: visible; }
/* O SDK injeta o iframe fixo no canto inferior direito; aqui vira modal centralizado.
   !important + prefixo "body" porque o SDK aplica estilos próprios/inline no holder. */
body .woot-widget-holder {
    position: fixed !important; top: 50% !important; left: 50% !important; right: auto !important; bottom: auto !important;
    transform: translate(-50%, -50%) !important;
    width: min(460px, calc(100vw - 32px)) !important; height: min(660px, calc(100vh - 80px)) !important; max-height: none !important;
    border-radius: 16px !important; border: 1px solid rgba(21, 172, 225, .4) !important;
    box-shadow: 0 28px 70px rgba(0, 0, 0, .5) !important; overflow: hidden !important;
    z-index: 2147483001 !important;
}
body .woot-widget-holder.woot--hide { display: none !important; }
body .woot-widget-bubble, body .woot--bubble-holder { display: none !important; }
@media (max-width: 575.98px) {
    body .woot-widget-holder { width: 100vw !important; height: 100dvh !important; border-radius: 0 !important; border: 0 !important; }
    /* Chat em tela cheia: a aba de cookies (acima de tudo) cobriria o rodapé do widget */
    body:has(.support-backdrop.is-open) .gb-consent-reopen { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .support-status::before { animation: none; }
    .support-backdrop { transition: none; }
}

.map-wrap { position: relative; height: 380px; box-shadow: var(--gb-shadow); background: var(--light); }
.map-wrap iframe { width: 100%; height: 100%; border: 0; }

/*** Dados institucionais ***/
.company-data { background: #fff; border-radius: var(--gb-radius); box-shadow: var(--gb-shadow); overflow: hidden; }
.company-data dt, .company-data dd { padding: .9rem 1.25rem; margin: 0; border-bottom: 1px solid #eef1f8; }
.company-data dt { font-weight: 600; color: var(--dark); background: #fafbff; }
.company-data dt:nth-last-of-type(1), .company-data dd:last-of-type { border-bottom: 0; }
@media (max-width: 575.98px) { .company-data dd { padding-top: 0; } .company-data dt { border-bottom: 0; padding-bottom: .2rem; } }

/*** Páginas jurídicas (Política de Privacidade / Termos) ***/
.legal-intro { margin-bottom: 1.5rem; padding-bottom: 1.75rem; border-bottom: 1px solid #e6eaf5; }
.legal-kicker {
    display: inline-flex; gap: .5rem; align-items: center; margin-bottom: 1rem; padding: .3rem .9rem;
    font-weight: 600; font-size: .9rem; color: var(--primary); background: var(--light); border-radius: 50px;
}
.legal-intro h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 1rem; text-wrap: balance; }
.legal-update { margin: 1rem 0 0; font-size: .92rem; color: #6b7280; }
.legal-section { padding: 1.5rem 0 .5rem; scroll-margin-top: 100px; }
.legal-number { display: block; margin-bottom: .2rem; font-family: 'Ubuntu', sans-serif; font-weight: 700; font-size: .95rem; letter-spacing: .06em; color: var(--secondary); }
.legal-section h3 { font-size: 1.4rem; margin-bottom: .9rem; }
.legal-section p, .legal-section li { color: #4b5263; line-height: 1.75; }
.legal-section a { color: var(--primary); text-decoration: underline; }
.legal-list { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .6rem; }
.legal-list li { display: flex; gap: .75rem; align-items: flex-start; }
.legal-list li > i {
    flex: 0 0 22px; height: 22px; margin-top: .25rem; font-size: .68rem;
    display: flex; align-items: center; justify-content: center; border-radius: 50%; color: var(--primary); background: var(--light);
}
@media (min-width: 768px) { .legal-list--columns { grid-template-columns: 1fr 1fr; column-gap: 1.5rem; } }
.legal-note { display: flex; gap: .9rem; margin: 1rem 0; padding: 1rem 1.2rem; background: var(--light); border-left: 4px solid var(--secondary); border-radius: 10px; }
.legal-note > i { margin-top: .35rem; color: var(--primary); }
.legal-note p { margin: 0; }
.legal-table-wrap { overflow-x: auto; margin: 1rem 0 1.25rem; border: 1px solid #e6eaf5; border-radius: 12px; }
.legal-table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: .92rem; }
.legal-table th { padding: .75rem 1rem; text-align: left; font-weight: 600; color: var(--dark); background: var(--light); }
.legal-table td { padding: .85rem 1rem; vertical-align: top; color: #4b5263; border-top: 1px solid #e6eaf5; }
.legal-table code { padding: .1rem .4rem; font-size: .85em; color: var(--primary); background: var(--light); border-radius: 6px; word-break: break-all; }
.legal-section a.legal-email { display: inline-flex; gap: .6rem; align-items: center; margin: .25rem 0 1rem; font-weight: 600; font-size: 1.1rem; text-decoration: none; }
.legal-contact { margin-top: 1.5rem; padding: 1.6rem 1.5rem; background: var(--light); border-radius: 14px; }

.legal-sidebar { position: sticky; top: 100px; display: grid; gap: 1.25rem; }
.legal-toc { padding: 1.4rem; background: #fff; border: 1px solid #e6eaf5; border-radius: 14px; box-shadow: var(--gb-shadow); }
.legal-toc-title { margin-bottom: .8rem; font-size: 1.1rem; }
.legal-toc ul { list-style: none; margin: 0; padding: 0; }
.legal-toc a { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .55rem .25rem; font-size: .94rem; color: #4b5263; text-decoration: none; border-bottom: 1px solid #eef1f8; }
.legal-toc li:last-child a { border-bottom: 0; }
.legal-toc a i { font-size: .7rem; opacity: .5; transition: transform .2s, opacity .2s; }
.legal-toc a:hover { color: var(--primary); }
.legal-toc a:hover i { transform: translateX(3px); opacity: 1; }
.legal-help { padding: 1.5rem; color: rgba(255, 255, 255, .82); background: linear-gradient(145deg, var(--primary), var(--dark)); border-radius: 14px; }
.legal-help h3 { margin-bottom: .5rem; font-size: 1.2rem; color: #fff; }
.legal-help-icon { width: 48px; height: 48px; margin-bottom: 1rem; display: flex; align-items: center; justify-content: center; border-radius: 50%; color: #7fe3ff; background: rgba(255, 255, 255, .14); }
.legal-help a { font-weight: 600; color: #fff; text-decoration: none; }
.legal-help a:hover { color: #7fe3ff; }
.legal-help-action { padding: 0; font-weight: 600; color: #fff; background: none; border: 0; }
.legal-help-action:hover { color: #7fe3ff; }
.dpo-card { border: 1px solid #dfe5f2; }
.dpo-eyebrow { display: block; margin-bottom: .75rem; color: var(--primary); font-size: .82rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.dpo-card h3 { margin-bottom: 1rem; }

body.lgpd-modal-open { overflow: hidden; }
.lgpd-modal-overlay {
    position: fixed; inset: 0; z-index: 2147483600; padding: 1rem;
    display: none; align-items: center; justify-content: center;
    background: rgba(8, 11, 32, .78); backdrop-filter: blur(5px);
}
.lgpd-modal-overlay.is-open { display: flex; }
.lgpd-modal {
    width: min(920px, 100%); max-height: calc(100dvh - 2rem); overflow: auto;
    background: #fff; border-radius: 16px; box-shadow: 0 28px 80px rgba(0, 0, 0, .42);
}
.lgpd-modal-head { display: flex; justify-content: space-between; gap: 1rem; padding: 1.4rem 1.6rem; color: #fff; background: linear-gradient(145deg, var(--primary), var(--dark)); }
.lgpd-modal-head span { display: block; margin-bottom: .25rem; color: #8de8ff; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.lgpd-modal-head h2 { margin: 0; color: #fff; font-size: 1.5rem; }
.lgpd-modal-close { align-self: flex-start; width: 40px; height: 40px; color: #fff; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.3); border-radius: 50%; }
.lgpd-modal-close:hover { background: rgba(255,255,255,.22); }
.lgpd-modal-body { padding: 1.6rem; }
.lgpd-form-actions { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid #e6eaf5; }
.lgpd-form-actions p { max-width: 520px; margin: 0; color: #626a7e; font-size: .9rem; }
@media (max-width: 575.98px) {
    .lgpd-modal-overlay { padding: 0; }
    .lgpd-modal { max-height: 100dvh; min-height: 100dvh; border-radius: 0; }
    .lgpd-modal-head, .lgpd-modal-body { padding: 1.2rem; }
    .lgpd-form-actions { align-items: stretch; flex-direction: column; }
}
@media (max-width: 991.98px) { .legal-sidebar { position: static; } }
@media (max-width: 575.98px) { .legal-section h3 { font-size: 1.25rem; } .legal-contact { padding: 1.25rem 1rem; } }

/*** Mapa com consentimento ***/
.map-placeholder {
    position: absolute; inset: 0; padding: 1.5rem; text-align: center;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    color: #4b5263; background: repeating-linear-gradient(135deg, var(--light), var(--light) 14px, rgba(19, 99, 198, .05) 14px, rgba(19, 99, 198, .05) 28px);
}
.map-placeholder i { color: var(--primary); }
.map-placeholder p { max-width: 460px; }
.map-placeholder[hidden], .map-wrap iframe[hidden] { display: none !important; }

/*** Rodapé / botões flutuantes ***/
.footer-link { color: rgba(255, 255, 255, .5); text-decoration: none; }
.footer-link:hover { color: #fff; }
.footer .btn-link { text-decoration: none; }
/* folga inferior para o botão fixo "voltar ao topo" não cobrir o selo/links */
.footer .copyright { padding-bottom: 80px; border-top: 1px dashed rgba(255, 255, 255, .22); }
.footer .footer-menu a { display: inline-block; }

/* Barra inferior: "©Copyright ANO Empresa, CNPJ | Design by Q.A.I." + links legais */
.footer .copyright-text { color: rgba(255, 255, 255, .55); font-size: .95rem; line-height: 1.7; }
.footer .copyright-text strong { color: #fff; font-weight: 600; }
.footer .copyright-text .sep { margin: 0 .35rem; opacity: .6; }
.footer .copyright a.qai-credit { color: #fff; font-weight: 600; text-decoration: none; }
.footer .copyright a.qai-credit:hover { color: var(--secondary); }
.footer .copyright .footer-menu a { color: rgba(255, 255, 255, .6); }
.footer .copyright .footer-menu a:hover { color: #fff; }
/* Selo (coluna da marca) e redes sociais (coluna Contato) encostam no fim das colunas, ficando na mesma linha */
.footer-seal { margin-top: auto; align-self: flex-start; }
.footer-social { margin-top: auto; padding-top: 1.5rem; }

/* Selo Quanthum QAI: variante clara por padrão, escura no tema escuro (mesmo mecanismo do canal de compliance) */
.quanthum-seal { display: inline-flex; flex: none; line-height: 0; border-radius: 8px; }
.quanthum-seal img { display: block; width: 190px; height: auto; }
.quanthum-seal-dark { display: none !important; }
.quanthum-seal:focus-visible { outline: 3px solid var(--secondary); outline-offset: 4px; }
html[data-theme="dark"] .quanthum-seal-light { display: none !important; }
html[data-theme="dark"] .quanthum-seal-dark { display: block !important; }
@media (max-width: 575.98px) { .quanthum-seal img { width: 160px; } }
.footer-line { display: flex; gap: 1rem; align-items: flex-start; }
.footer-line > i { flex: 0 0 1rem; margin-top: .3rem; text-align: center; }
.footer-line a { overflow-wrap: anywhere; }
.back-to-top {
    z-index: 99; right: 24px; bottom: 24px; display: flex !important;
    opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s, background .3s;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; }
.whatsapp-fab {
    position: fixed; right: 24px; bottom: 88px; z-index: 99; /* lado esquerdo é da aba de cookies */
    width: 56px; height: 56px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: #25d366; color: #fff; font-size: 1.8rem; text-decoration: none;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .25);
}
.whatsapp-fab:hover { color: #fff; transform: scale(1.06); }

/*** Responsividade geral ***/
img, svg, iframe { max-width: 100%; }
@media (max-width: 767.98px) {
    .display-4 { font-size: 2.1rem; }
    .display-5 { font-size: 1.9rem; }
    .display-6 { font-size: 1.6rem; }
    .pillars-panel { padding: 1.4rem; }
    .pillars-badge-number { font-size: 3.2rem; }
    .cta-band h2 { font-size: 1.5rem; }
    .map-wrap { height: 300px; }
}

/*** Botão de tema ***/
.theme-toggle {
    align-items: center; justify-content: center; flex: none;
    width: 40px; height: 40px; padding: 0; cursor: pointer;
    color: #fff; background: transparent; border: 1px solid rgba(255, 255, 255, .45); border-radius: 50%;
    transition: background-color .2s, transform .2s;
}
.theme-toggle { display: inline-flex; }
.theme-toggle:hover { background: rgba(255, 255, 255, .16); transform: translateY(-1px); }
.theme-toggle:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.theme-icon-sun { display: none; }
html[data-theme="dark"] .theme-icon-moon { display: none; }
html[data-theme="dark"] .theme-icon-sun { display: block; }

/*** Tema escuro ***/
html { color-scheme: light; }
html[data-theme="dark"] {
    color-scheme: dark;
    --light: #171c3b;
    --gb-bg: #0d1124;
    --gb-bg-alt: #121733;
    --gb-surface: #181d3d;
    --gb-surface-2: #222959;
    --gb-border: #2a3162;
    --gb-text: #b9c0da;
    --gb-heading: #f3f5ff;
    --gb-link: #7db8ff;
    --gb-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}
html[data-theme="dark"] body { background: var(--gb-bg); color: var(--gb-text); }
html[data-theme="dark"] #spinner { background: var(--gb-bg) !important; }
html[data-theme="dark"] h1, html[data-theme="dark"] h2, html[data-theme="dark"] h3,
html[data-theme="dark"] h4, html[data-theme="dark"] h5, html[data-theme="dark"] h6 { color: var(--gb-heading); }
html[data-theme="dark"] .bg-light { background-color: var(--gb-bg-alt) !important; }
html[data-theme="dark"] .text-primary { color: var(--gb-link) !important; }
html[data-theme="dark"] .text-muted { color: #8f98bd !important; }
html[data-theme="dark"] .border { border-color: var(--gb-border) !important; }
html[data-theme="dark"] .btn-outline-primary { color: var(--gb-link); border-color: #3d6bb5; }
html[data-theme="dark"] .btn-outline-primary:hover { color: #fff; background: var(--primary); border-color: var(--primary); }
html[data-theme="dark"] .legal-section a, html[data-theme="dark"] .company-data a,
html[data-theme="dark"] .accordion-body a, html[data-theme="dark"] .form-check-label a { color: var(--gb-link); }

/* superfícies */
html[data-theme="dark"] .service-item,
html[data-theme="dark"] .stats-card,
html[data-theme="dark"] .step-item,
html[data-theme="dark"] .audience-item,
html[data-theme="dark"] .principle-item,
html[data-theme="dark"] .feature-item,
html[data-theme="dark"] .level-item,
html[data-theme="dark"] .glossary-item,
html[data-theme="dark"] .support-cta,
html[data-theme="dark"] .company-data { background: var(--gb-surface); border-color: var(--gb-border); box-shadow: var(--gb-shadow); }
html[data-theme="dark"] .support-cta-icon { background: var(--gb-surface-2); color: var(--gb-link); }
html[data-theme="dark"] .support-status { color: #4fd58f; }
html[data-theme="dark"] .bg-light .feature-item { border-color: var(--gb-border); }
html[data-theme="dark"] .service-item:hover { background: var(--primary); border-color: var(--primary); }
html[data-theme="dark"] .service-icon, html[data-theme="dark"] .principle-icon, html[data-theme="dark"] .service-icon-lg { background: var(--gb-surface-2); color: var(--gb-link); }
html[data-theme="dark"] .service-item:hover .service-icon { background: #fff; color: var(--primary); }
html[data-theme="dark"] .service-item a.btn { color: var(--gb-link); }
html[data-theme="dark"] .service-item a.btn::before { background: var(--gb-surface-2); }
html[data-theme="dark"] .service-item:hover a.btn { color: var(--primary); }
html[data-theme="dark"] .service-item:hover a.btn::before { background: #fff; }
html[data-theme="dark"] .stat-cell { border-color: var(--gb-border); }
html[data-theme="dark"] .stat-value { color: var(--gb-link); }
html[data-theme="dark"] .stat-label,
html[data-theme="dark"] .feature-item p,
html[data-theme="dark"] .glossary-item p,
html[data-theme="dark"] .legal-section p, html[data-theme="dark"] .legal-section li,
html[data-theme="dark"] .legal-table td, html[data-theme="dark"] .legal-toc a, html[data-theme="dark"] .map-placeholder { color: var(--gb-text); }
html[data-theme="dark"] .glossary-item strong { color: var(--gb-link); }
html[data-theme="dark"] .company-data dt { background: #1c2247; color: var(--gb-heading); }
html[data-theme="dark"] .company-data dt, html[data-theme="dark"] .company-data dd { border-color: var(--gb-border); }
html[data-theme="dark"] .legal-section h3 { color: var(--gb-heading); }
html[data-theme="dark"] .legal-section a.legal-email { color: var(--gb-link); }
html[data-theme="dark"] .legal-intro { border-color: var(--gb-border); }
html[data-theme="dark"] .legal-kicker { color: var(--gb-link); background: var(--gb-surface-2); }
html[data-theme="dark"] .legal-update { color: #8f98bd; }
html[data-theme="dark"] .legal-list li > i, html[data-theme="dark"] .legal-table code { color: var(--gb-link); background: var(--gb-surface-2); }
html[data-theme="dark"] .legal-note, html[data-theme="dark"] .legal-contact, html[data-theme="dark"] .lgpd-modal { background: var(--gb-surface); }
html[data-theme="dark"] .dpo-card, html[data-theme="dark"] .lgpd-form-actions { border-color: var(--gb-border); }
html[data-theme="dark"] .dpo-eyebrow { color: var(--gb-link); }
html[data-theme="dark"] .lgpd-form-actions p, html[data-theme="dark"] .lgpd-modal .form-text { color: var(--gb-text); }
html[data-theme="dark"] .legal-table-wrap, html[data-theme="dark"] .legal-table td { border-color: var(--gb-border); }
html[data-theme="dark"] .legal-table th { color: var(--gb-heading); background: var(--gb-surface-2); }
html[data-theme="dark"] .legal-toc { background: var(--gb-surface); border-color: var(--gb-border); }
html[data-theme="dark"] .legal-toc a { border-color: var(--gb-border); }
html[data-theme="dark"] .legal-toc a:hover { color: var(--gb-link); }
html[data-theme="dark"] .map-placeholder { background: repeating-linear-gradient(135deg, #12172f, #12172f 14px, rgba(125, 184, 255, .05) 14px, rgba(125, 184, 255, .05) 28px); }
html[data-theme="dark"] .map-placeholder i { color: var(--gb-link); }
html[data-theme="dark"] .map-wrap { background: var(--gb-surface); }
html[data-theme="dark"] .map-wrap iframe { filter: invert(.9) hue-rotate(180deg) brightness(.95) contrast(.9); }

/* menu suspenso (desktop) */
@media (min-width: 992px) {
    html[data-theme="dark"] .navbar .dropdown-menu { background: var(--gb-surface); border: 1px solid var(--gb-border); }
    html[data-theme="dark"] .navbar .dropdown-item { color: #d5dbf3; }
    html[data-theme="dark"] .navbar .dropdown-item:hover,
    html[data-theme="dark"] .navbar .dropdown-item.active { background: var(--gb-surface-2); color: #fff; }
}

/* FAQ */
html[data-theme="dark"] .accordion-item { background: var(--gb-surface); border-color: var(--gb-border); }
html[data-theme="dark"] .accordion-button { background: var(--gb-surface); color: var(--gb-heading); }
html[data-theme="dark"] .accordion-button:not(.collapsed) { background: var(--gb-surface-2); color: var(--gb-link); }
html[data-theme="dark"] .accordion-button.collapsed::after { filter: invert(1) brightness(1.6); }
html[data-theme="dark"] .accordion-button:not(.collapsed)::after { filter: brightness(2.2); }
html[data-theme="dark"] .accordion-body { color: var(--gb-text); }

/* formulário */
html[data-theme="dark"] .form-control,
html[data-theme="dark"] .form-select { background-color: #12172f; color: #eef1ff; border-color: #36407a; }
html[data-theme="dark"] .form-control:focus,
html[data-theme="dark"] .form-select:focus { background-color: #12172f; color: #fff; border-color: var(--secondary); box-shadow: 0 0 0 .2rem rgba(21, 172, 225, .25); }
html[data-theme="dark"] .form-floating > label { color: #98a1c8; }
html[data-theme="dark"] .form-select { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23b9c0da' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e"); }
html[data-theme="dark"] .form-select option { background: #12172f; color: #eef1ff; }
html[data-theme="dark"] .form-check-input { background-color: #12172f; border-color: #5a66a8; }
html[data-theme="dark"] .form-check-input:checked { background-color: var(--primary); border-color: var(--primary); }
html[data-theme="dark"] .invalid-feedback { color: #ff9b9b; }
html[data-theme="dark"] .alert-success { background: #12352a; color: #a8e6c4; border-color: #1f5c46; }
html[data-theme="dark"] .alert-danger { background: #3b2020; color: #ffb4b4; border-color: #6b3333; }

/* rodapé: mais escuro que o fundo da página para manter a separação */
html[data-theme="dark"] .footer { background-color: #090c1c !important; }
html[data-theme="dark"] .skip-link { background: var(--gb-surface); color: var(--gb-link); }
