/* =============================================
   MantovaniTec Trust Center — main.css
   Sistema de fontes: apenas fontes do sistema
   ============================================= */

/* === TOKENS ============================================================ */
:root {
  --c-bg:        #ffffff;
  --c-bg-2:      #f7f7f5;
  --c-text:      #1a1a1a;
  --c-muted:     #5f5f5a;
  --c-border:    rgba(0, 0, 0, 0.1);
  --c-accent:    #0f6e56;
  --c-accent-h:  #085041;
  --c-ok:        #097969;
  --c-warn:      #b97a0f;
  --c-info:      #185fa5;
  --c-danger:    #a32d2d;
  --r:           10px;
  --shadow:      0 1px 2px rgba(0, 0, 0, 0.04);
  --font:        -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;
  --mono:        "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --max-w:       960px;
  --gap:         clamp(16px, 4vw, 24px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --c-bg:     #0e0e0c;
    --c-bg-2:   #1a1a18;
    --c-text:   #f0f0ec;
    --c-muted:  #9c9a92;
    --c-border: rgba(255, 255, 255, 0.1);
  }
}

/* === RESET ============================================================= */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
ul, ol { list-style: none; }

/* === ACESSIBILIDADE ==================================================== */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -999px; top: auto;
  background: var(--c-accent); color: #fff;
  padding: 8px 16px; border-radius: var(--r);
  text-decoration: none; font-size: 0.875rem;
  z-index: 9999;
}
.skip-link:focus {
  position: fixed; left: 16px; top: 16px;
}
:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 2px;
}

/* === LAYOUT ============================================================ */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gap);
}
section {
  padding: clamp(48px, 8vw, 80px) 0;
}
section + section {
  border-top: 1px solid var(--c-border);
}

/* === NAVEGAÇÃO ========================================================= */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--c-bg);
  border-bottom: 1px solid var(--c-border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px; gap: 16px;
}
.nav-logo {
  display: flex; align-items: center; gap: 8px;
  text-decoration: none; flex-shrink: 0;
}
.nav-logo-icon {
  width: 30px; height: 30px;
  background: var(--c-accent);
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.nav-logo-text {
  font-size: 0.9375rem; font-weight: 600; color: var(--c-text);
  line-height: 1.2;
}
.nav-logo-text span {
  display: block; font-size: 0.6875rem; font-weight: 400;
  color: var(--c-muted); letter-spacing: 0.04em;
}
.nav-menu {
  display: flex; align-items: center; gap: 2px;
}
.nav-menu a {
  display: block; padding: 6px 10px;
  color: var(--c-muted); text-decoration: none;
  font-size: 0.8125rem; border-radius: 6px;
  white-space: nowrap;
  transition: color 0.15s, background 0.15s;
}
.nav-menu a:hover { color: var(--c-text); background: var(--c-bg-2); }
.nav-menu .nav-cta {
  color: var(--c-accent); border: 1.5px solid var(--c-accent);
  padding: 5px 12px; border-radius: 7px; font-weight: 500;
}
.nav-menu .nav-cta:hover { background: rgba(15,110,86,0.07); }
.nav-toggle {
  display: none; padding: 8px; border: none; background: none;
  cursor: pointer; color: var(--c-text); border-radius: 6px;
}
.nav-toggle:hover { background: var(--c-bg-2); }

@media (max-width: 780px) {
  .nav-toggle { display: flex; align-items: center; }
  .nav-menu {
    display: none; position: absolute;
    top: 60px; left: 0; right: 0;
    background: var(--c-bg); border-bottom: 1px solid var(--c-border);
    flex-direction: column; align-items: stretch;
    padding: 12px var(--gap) 20px;
    gap: 2px; box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }
  .nav-menu.open { display: flex; }
  .nav-menu a { padding: 10px 12px; }
  .nav-menu .nav-cta { margin-top: 8px; text-align: center; }
}

/* === HERO ============================================================== */
.hero {
  padding: clamp(64px, 12vw, 108px) 0 clamp(48px, 8vw, 80px);
  text-align: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  margin-bottom: 20px; padding: 5px 14px; border-radius: 999px;
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--c-accent);
  background: rgba(15, 110, 86, 0.08);
  border: 1px solid rgba(15, 110, 86, 0.2);
}
.hero h1 {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 700; line-height: 1.15;
  letter-spacing: -0.02em; margin-bottom: 16px;
}
.hero-lead {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--c-muted); max-width: 600px;
  margin: 0 auto 20px;
}
.hero-meta {
  font-size: 0.8125rem; color: var(--c-muted);
  margin-bottom: 36px;
}
.hero-actions {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
}

/* === BOTÕES ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px; border-radius: var(--r);
  font-size: 0.875rem; font-weight: 500;
  text-decoration: none; cursor: pointer;
  border: none; transition: all 0.15s;
  line-height: 1;
}
.btn-primary { background: var(--c-accent); color: #fff; }
.btn-primary:hover { background: var(--c-accent-h); }
.btn-outline {
  background: transparent; color: var(--c-accent);
  border: 1.5px solid var(--c-accent);
}
.btn-outline:hover { background: rgba(15, 110, 86, 0.07); }

/* === CABEÇALHO DE SEÇÃO =============================================== */
.section-header { margin-bottom: 36px; }
.section-header h2 {
  font-size: clamp(20px, 4vw, 26px);
  font-weight: 600; margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.section-header p { color: var(--c-muted); font-size: 0.9375rem; }

/* === CARDS ============================================================= */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
  gap: 14px;
}
.card {
  padding: 22px; border-radius: var(--r);
  border: 1px solid var(--c-border);
  background: var(--c-bg-2);
}
.card-icon {
  width: 38px; height: 38px; border-radius: 8px;
  background: rgba(15, 110, 86, 0.1);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px; color: var(--c-accent);
  flex-shrink: 0;
}
.card-icon svg { width: 20px; height: 20px; }
.card h3 {
  font-size: 0.9375rem; font-weight: 600;
  margin-bottom: 6px;
}
.card p {
  font-size: 0.8125rem; color: var(--c-muted); line-height: 1.6;
}
.card-status {
  display: flex; align-items: center; gap: 6px;
  margin-top: 12px; font-size: 0.75rem; color: var(--c-muted);
}

/* === BADGES ============================================================ */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px; border-radius: 999px;
  font-size: 0.75rem; font-weight: 500;
  white-space: nowrap;
}
.badge-green  { background: rgba(9,121,105,0.1);  color: var(--c-ok);   }
.badge-blue   { background: rgba(24,95,165,0.1);  color: var(--c-info); }
.badge-gray   { background: var(--c-bg-2);        color: var(--c-muted);}
.badge-warn   { background: rgba(185,122,15,0.1); color: var(--c-warn); }
.badge-danger { background: rgba(163,45,45,0.1);  color: var(--c-danger);}

/* === TABELAS =========================================================== */
.table-wrap {
  overflow-x: auto; border-radius: var(--r);
  border: 1px solid var(--c-border);
}
table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
thead tr { background: var(--c-bg-2); }
th {
  padding: 11px 16px; text-align: left;
  font-size: 0.6875rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--c-muted); border-bottom: 1px solid var(--c-border);
  white-space: nowrap;
}
td { padding: 13px 16px; vertical-align: middle; border-bottom: 1px solid var(--c-border); }
tr:last-child td { border-bottom: none; }
td a { color: var(--c-accent); text-decoration: none; font-size: 0.8125rem; }
td a:hover { text-decoration: underline; }
@media (max-width: 640px) {
  th, td { padding: 10px 12px; }
}

/* === BLOCO DE DISCLOSURE =============================================== */
.disclosure-block {
  border: 1px solid var(--c-border); border-radius: var(--r);
  padding: clamp(24px, 5vw, 36px); background: var(--c-bg-2);
}
.disclosure-block > p { margin-bottom: 14px; color: var(--c-muted); font-size: 0.9375rem; }
.disclosure-block blockquote {
  border-left: 3px solid var(--c-accent);
  padding-left: 18px; margin: 20px 0;
  color: var(--c-muted); font-size: 0.9375rem;
}
.commitment-list { margin: 20px 0; }
.commitment-list li {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 10px 0; border-bottom: 1px solid var(--c-border);
  font-size: 0.875rem;
}
.commitment-list li:last-child { border-bottom: none; }
.commitment-list .icon { color: var(--c-ok); flex-shrink: 0; margin-top: 2px; }
.scope-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 24px;
}
@media (max-width: 600px) { .scope-grid { grid-template-columns: 1fr; } }
.scope-box {
  padding: 16px; border-radius: 8px; border: 1px solid var(--c-border);
}
.scope-box.allowed {
  border-color: rgba(9,121,105,0.25); background: rgba(9,121,105,0.04);
}
.scope-box.denied {
  border-color: rgba(163,45,45,0.25); background: rgba(163,45,45,0.04);
}
.scope-box h4 {
  font-size: 0.8125rem; font-weight: 600; margin-bottom: 8px;
}
.scope-box h4.ok { color: var(--c-ok); }
.scope-box h4.danger { color: var(--c-danger); }
.scope-box ul { padding-left: 14px; list-style: disc; }
.scope-box li { font-size: 0.8125rem; color: var(--c-muted); margin-bottom: 4px; }

/* === PRIVACIDADE LGPD ================================================= */
.privacy-list li {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 0; border-bottom: 1px solid var(--c-border);
  font-size: 0.9375rem;
}
.privacy-list li:last-child { border-bottom: none; }
.privacy-list .check-icon { color: var(--c-ok); flex-shrink: 0; font-size: 1rem; }

/* === STATUS ============================================================ */
.status-placeholder {
  padding: 48px 24px; text-align: center;
  border: 1px dashed var(--c-border); border-radius: var(--r);
  color: var(--c-muted);
}
.status-placeholder .status-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--c-ok); display: inline-block; margin-right: 6px;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* === BLOCO DE CONTATO ================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.contact-card {
  padding: 20px; border-radius: var(--r);
  border: 1px solid var(--c-border); background: var(--c-bg-2);
}
.contact-card .label {
  font-size: 0.6875rem; color: var(--c-muted);
  text-transform: uppercase; letter-spacing: 0.07em;
  margin-bottom: 8px; font-weight: 600;
}
.contact-card .value { font-size: 0.875rem; font-weight: 500; }
.contact-card a { color: var(--c-accent); text-decoration: none; }
.contact-card a:hover { text-decoration: underline; }
.contact-card .desc {
  font-size: 0.75rem; color: var(--c-muted); margin-top: 4px;
}

/* === RODAPÉ ============================================================ */
footer {
  background: var(--c-bg-2);
  border-top: 1px solid var(--c-border);
  padding: clamp(36px, 6vw, 60px) 0;
}
.footer-grid {
  display: grid; grid-template-columns: 1fr auto;
  gap: 32px; align-items: start;
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-brand { font-size: 0.8125rem; color: var(--c-muted); }
.footer-brand strong { display: block; color: var(--c-text); margin-bottom: 4px; font-weight: 600; }
.footer-brand .cnpj { font-family: var(--mono); font-size: 0.75rem; }
.footer-links {
  display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center;
}
.footer-links a {
  font-size: 0.8125rem; color: var(--c-muted);
  text-decoration: none; white-space: nowrap;
}
.footer-links a:hover { color: var(--c-text); }
.footer-sep { color: var(--c-border); font-size: 0.75rem; }
.footer-bottom {
  margin-top: 28px; padding-top: 20px;
  border-top: 1px solid var(--c-border);
  font-size: 0.75rem; color: var(--c-muted);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
}

/* === PÁGINA DE POLÍTICAS =============================================== */
.policy-header {
  padding: clamp(32px, 5vw, 48px) 0 28px;
  border-bottom: 1px solid var(--c-border);
}
.breadcrumb {
  font-size: 0.8125rem; color: var(--c-muted); margin-bottom: 12px;
}
.breadcrumb a { color: var(--c-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--c-text); }
.breadcrumb span { margin: 0 6px; }
.policy-header h1 {
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 600; letter-spacing: -0.01em;
}
.policy-header .meta {
  font-size: 0.8125rem; color: var(--c-muted); margin-top: 8px;
}
.policy-body { padding: clamp(36px, 6vw, 56px) 0; }
.policy-layout {
  display: grid; grid-template-columns: 1fr 240px; gap: 48px; align-items: start;
}
@media (max-width: 720px) {
  .policy-layout { grid-template-columns: 1fr; }
  .policy-toc { display: none; }
}
.policy-content h2 {
  font-size: 1.1875rem; font-weight: 600;
  margin: 36px 0 12px; padding-top: 36px;
  border-top: 1px solid var(--c-border);
}
.policy-content h2:first-child { border-top: none; padding-top: 0; margin-top: 0; }
.policy-content h3 { font-size: 0.9375rem; font-weight: 600; margin: 22px 0 8px; }
.policy-content p { margin-bottom: 14px; }
.policy-content ul, .policy-content ol {
  padding-left: 20px; margin-bottom: 14px;
  list-style: disc;
}
.policy-content ol { list-style: decimal; }
.policy-content li { margin-bottom: 6px; font-size: 0.9375rem; }
.policy-content a { color: var(--c-accent); }
.policy-content strong { font-weight: 600; }
.policy-content .note {
  padding: 14px 18px; background: var(--c-bg-2);
  border-radius: var(--r); border: 1px solid var(--c-border);
  font-size: 0.875rem; color: var(--c-muted); margin: 16px 0;
}
.draft-notice {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 14px 18px; border-radius: var(--r);
  background: rgba(185,122,15,0.08);
  border: 1px solid rgba(185,122,15,0.3);
  font-size: 0.875rem; color: var(--c-warn);
  font-weight: 500; margin-bottom: 32px;
}

/* TOC lateral */
.policy-toc {
  position: sticky; top: 76px;
  font-size: 0.8125rem;
}
.policy-toc h4 {
  font-size: 0.6875rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.07em; color: var(--c-muted); margin-bottom: 10px;
}
.policy-toc a {
  display: block; color: var(--c-muted); text-decoration: none;
  padding: 5px 0; border-left: 2px solid var(--c-border);
  padding-left: 12px; margin-bottom: 2px;
  transition: color 0.15s, border-color 0.15s;
}
.policy-toc a:hover {
  color: var(--c-text); border-color: var(--c-accent);
}

/* Tabela de histórico de versões */
.change-history { margin-top: 40px; }
.change-history h3 {
  font-size: 0.875rem; font-weight: 600; margin-bottom: 12px;
}

/* === HALL OF FAME ====================================================== */
.hof-placeholder {
  padding: 32px; text-align: center;
  border: 1px dashed var(--c-border); border-radius: var(--r);
  color: var(--c-muted); font-size: 0.875rem;
}

/* === UTILITÁRIOS ======================================================= */
.text-muted  { color: var(--c-muted); }
.text-sm     { font-size: 0.875rem; }
.text-xs     { font-size: 0.75rem; }
.text-mono   { font-family: var(--mono); }
.mt-2  { margin-top: 8px; }
.mt-4  { margin-top: 16px; }
.mt-6  { margin-top: 24px; }
.mt-8  { margin-top: 32px; }
.mt-12 { margin-top: 48px; }
