/* ==========================================================================
   MAVORS TECH - LEGAL & COMPLIANCE PAGES STYLESHEET
   ========================================================================== */

:root {
  --bg-deep: #070709;
  --bg-card: rgba(18, 20, 29, 0.65);
  --gold-primary: #D4AF37;
  --gold-light: #FFD700;
  --gold-border: rgba(212, 175, 55, 0.25);
  --gold-gradient: linear-gradient(135deg, #FFF099 0%, #D4AF37 50%, #997A15 100%);
  --text-white: #FFFFFF;
  --text-main: #E2E8F0;
  --text-muted: #94A3B8;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --font-sans: 'Outfit', 'Inter', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(212, 175, 55, 0.08), transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(212, 175, 55, 0.03), transparent 40%);
  background-attachment: fixed;
  padding-bottom: 80px;
}

/* Header & Language Switcher Navbar */
.legal-navbar {
  max-width: 860px;
  margin: 0 auto;
  padding: 32px 24px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.legal-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.legal-brand-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-light);
  font-weight: 800;
  font-size: 0.95rem;
}

.legal-brand-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-white);
  letter-spacing: -0.01em;
}

.legal-brand-app {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold-primary);
  display: block;
}

/* i18n Language Switcher Buttons */
.lang-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  background: rgba(255, 255, 255, 0.03);
  padding: 4px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  justify-content: center;
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 6px 10px;
  border-radius: 7px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-mono);
}

.lang-btn:hover {
  color: var(--text-white);
  background: rgba(255, 255, 255, 0.06);
}

.lang-btn.active {
  background: var(--gold-gradient);
  color: #070709;
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.3);
}

/* Legal Container & Glass Card */
main.legal-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 20px 24px;
}

.legal-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  padding: 48px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}

.legal-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
}

/* Content Elements */
.lang-content {
  display: none;
}

h1 {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 24px;
  line-height: 1.25;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 20px;
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-white);
  margin-top: 36px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

h3::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 18px;
  background: var(--gold-gradient);
  border-radius: 2px;
}

p {
  margin-bottom: 20px;
  color: var(--text-main);
  font-size: 0.98rem;
}

ul {
  margin-bottom: 24px;
  padding-left: 20px;
}

li {
  margin-bottom: 10px;
  font-size: 0.95rem;
  color: var(--text-main);
}

strong {
  color: var(--text-white);
  font-weight: 600;
}

.update-date {
  font-style: italic;
  color: var(--text-muted);
  margin-top: 40px;
  font-size: 0.85rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 20px;
}

/* Footer Link back */
.legal-footer-nav {
  margin-top: 32px;
  text-align: center;
}

.back-to-home {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.2s ease;
}

.back-to-home:hover {
  color: var(--gold-primary);
}

@media (max-width: 640px) {
  .legal-navbar {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 16px 12px;
  }
  
  main.legal-container {
    padding: 12px 16px;
  }
  
  .legal-card {
    padding: 24px 18px;
    border-radius: 16px;
  }
  
  .lang-btn {
    padding: 6px 8px;
    font-size: 0.72rem;
  }
  
  h1 {
    font-size: 1.35rem;
  }
  
  h3 {
    font-size: 1.05rem;
  }
}

@media print {
  body {
    background: #fff;
    color: #000;
  }
  .legal-card {
    border: none;
    box-shadow: none;
    padding: 0;
    background: none;
  }
  .lang-switcher, .legal-footer-nav {
    display: none;
  }
}

/* ==========================================================================
   Elementos introduzidos pela Política de Privacidade do Dual Cam Visio
   (29/08/2026): seções h2, caixa de destaque, tabela de permissões e rodapé
   do documento.
   ========================================================================== */

.lang-content h2 {
  font-family: var(--font-sans, 'Outfit', sans-serif);
  font-size: 1.45rem;
  font-weight: 700;
  color: #fff;
  margin: 44px 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.22);
  letter-spacing: -0.01em;
}

.lang-content h2:first-of-type {
  margin-top: 36px;
}

/* Caixa de destaque do topo — o resumo em linguagem direta */
.legal-callout {
  background: rgba(212, 175, 55, 0.06);
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-left: 3px solid #D4AF37;
  border-radius: 14px;
  padding: 24px 26px;
  margin: 28px 0 8px;
}

.legal-callout p {
  margin-bottom: 14px;
}

.legal-callout p:last-child {
  margin-bottom: 0;
}

/* Tabela de permissões. Rola sozinha no celular em vez de estourar a tela. */
.legal-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 22px 0 26px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
}

.legal-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 0.94rem;
}

.legal-table th {
  background: rgba(212, 175, 55, 0.09);
  color: #D4AF37;
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: left;
  padding: 13px 18px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.22);
  white-space: nowrap;
}

.legal-table td {
  padding: 16px 18px;
  vertical-align: top;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  line-height: 1.6;
}

.legal-table tr:last-child td {
  border-bottom: none;
}

.legal-table td:first-child {
  color: #fff;
  font-weight: 600;
}

/* Proporcao das colunas: a permissao e curta, a consequencia e o texto longo.
   Sem isso, a coluna do meio fica espremida e quebra em muitas linhas. */
.legal-table th:nth-child(1),
.legal-table td:nth-child(1) { width: 19%; }

.legal-table th:nth-child(2),
.legal-table td:nth-child(2) { width: 34%; }

.legal-table th:nth-child(3),
.legal-table td:nth-child(3) { width: 47%; }

/* Rodapé interno do documento */
.legal-doc-footer {
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 0.9rem;
  line-height: 1.7;
}

@media (max-width: 600px) {
  .lang-content h2 {
    font-size: 1.25rem;
    margin: 34px 0 14px;
  }

  .legal-callout {
    padding: 18px 18px;
    border-radius: 12px;
  }

  .legal-table {
    font-size: 0.88rem;
  }
}

/* Linha de "última atualização" no TOPO do documento.
   A .update-date existente tem borda superior e margem grande porque foi
   desenhada para o fim da página; aqui precisamos de algo discreto. */
.legal-updated-top {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: -6px;
  margin-bottom: 4px;
}
