/**
 * AION DESIGN SYSTEM — PÁGINAS LEGAIS E COMPLIANCE
 * Do Zero a Operação · AION Class
 * Estilo Sóbrio, Minimalista e Editorial (Leitura Limpa)
 */

.legal-body {
  background-color: #07090E;
  color: #E2E8F0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-family-base, sans-serif);
  -webkit-font-smoothing: antialiased;
}

/* Header Superior Minimalista */
.legal-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 0;
  padding-top: calc(18px + env(safe-area-inset-top, 0px));
  background: #07090E;
}

.legal-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.legal-header__brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.legal-header__logo {
  height: 24px;
  width: auto;
  display: block;
}

.legal-header__back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.84rem;
  color: #94A3B8;
  text-decoration: none;
  transition: color 0.15s ease;
  padding: 6px 0;
}

.legal-header__back-btn:hover {
  color: #FFFFFF;
}

/* Conteúdo Principal */
.legal-main-content {
  flex: 1;
  padding: 40px 0 64px 0;
}

.legal-document-card {
  max-width: 820px;
  margin: 0 auto;
  background: #0B0E17;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: clamp(24px, 4vw, 48px);
}

/* Cabeçalho do Documento */
.legal-doc-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 24px;
  margin-bottom: 32px;
}

.legal-doc-meta {
  font-size: 0.75rem;
  color: #64748B;
  font-family: var(--font-family-mono, monospace);
  margin-bottom: 12px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.legal-doc-title {
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: #F8FAFC;
  line-height: 1.3;
  margin-bottom: 12px;
  text-wrap: balance;
}

.legal-doc-subtitle {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #94A3B8;
  font-weight: 350;
  text-wrap: pretty;
  margin: 0;
}

/* Seções e Cláusulas */
.legal-section {
  margin-bottom: 36px;
}

.legal-section-title {
  font-size: 1.05rem;
  font-weight: 500;
  color: #F1F5F9;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.legal-text {
  font-size: 0.90625rem;
  line-height: 1.7;
  color: #CBD5E1;
  font-weight: 350;
  margin-bottom: 12px;
}

.legal-text strong {
  color: #FFFFFF;
  font-weight: 500;
}

.legal-list {
  list-style: none;
  padding-left: 0;
  margin: 12px 0 16px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.legal-list-item {
  position: relative;
  padding-left: 18px;
  font-size: 0.90625rem;
  line-height: 1.6;
  color: #CBD5E1;
  font-weight: 350;
}

.legal-list-item::before {
  content: "•";
  position: absolute;
  left: 4px;
  color: #64748B;
}

.legal-list-item strong {
  color: #FFFFFF;
  font-weight: 500;
}

/* Caixas de Alerta e Compliance */
.legal-callout {
  background: rgba(255, 255, 255, 0.03);
  border-left: 3px solid #3B82F6;
  border-radius: 0 8px 8px 0;
  padding: 14px 18px;
  margin: 20px 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: #CBD5E1;
}

.legal-callout strong {
  color: #FFFFFF;
}

.legal-callout--warning {
  border-left-color: #EF4444;
  background: rgba(239, 68, 68, 0.05);
}

.legal-callout--success {
  border-left-color: #10B981;
  background: rgba(16, 185, 129, 0.05);
}

/* Rodapé Sóbrio */
.legal-body .site-footer {
  background: #05070B;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 28px 0;
  padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px));
  margin-top: auto;
}

.legal-body .footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.8125rem;
  color: #64748B;
}

.legal-body .footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.legal-body .footer-logo {
  height: 20px;
  width: auto;
}

.legal-body .footer-links {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.legal-body .footer-links a {
  color: #64748B;
  text-decoration: none;
  transition: color 0.15s ease;
}

.legal-body .footer-links a:hover {
  color: #E2E8F0;
}

.legal-body .footer-links span {
  color: rgba(255, 255, 255, 0.12);
  user-select: none;
}

/* Responsividade Mobile */
@media (max-width: 768px) {
  .legal-document-card {
    border-radius: 12px;
    padding: 20px 16px;
  }

  .legal-doc-title {
    font-size: 1.35rem;
  }

  .legal-body .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}
