/* PÁGINAS LEGAIS - CSS COMPLETO */

/* Layout base — todas as páginas legais */
.pagina-legal {
  min-height: calc(100vh - 64px);
  background: #f8f7ff;
  padding: clamp(48px, 8vw, 80px) clamp(20px, 5vw, 48px);
}

.legal-inner {
  max-width: 780px;
  margin: 0 auto;
  background: white;
  border-radius: 20px;
  padding: clamp(32px, 5vw, 56px);
  box-shadow: 0 4px 24px rgba(91,79,232,0.08);
  border: 1px solid #e5e7eb;
}

/* Cabeçalho */
.legal-header {
  border-bottom: 2px solid #f3f4f6;
  padding-bottom: 28px;
  margin-bottom: 36px;
}

.legal-breadcrumb {
  font-size: 0.8rem;
  color: #9ca3af;
  margin-bottom: 12px;
  display: flex;
  gap: 6px;
  align-items: center;
}

.legal-breadcrumb a {
  color: #5b4fe8;
  text-decoration: none;
}

.legal-header h1 {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  color: #0f0e17;
  margin-bottom: 8px;
}

.legal-subtitulo {
  color: #6b7280;
  font-size: 1rem;
  margin-bottom: 12px;
}

.legal-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.legal-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #f0fdf4;
  color: #166534;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
}

/* Seções */
.legal-secao {
  margin-bottom: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid #f3f4f6;
}

.legal-secao:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.legal-secao h2 {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: #0f0e17;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.legal-secao h2::before {
  content: '';
  display: block;
  width: 4px;
  height: 20px;
  background: #5b4fe8;
  border-radius: 2px;
  flex-shrink: 0;
}

.legal-secao h3 {
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: #374151;
  margin: 20px 0 10px;
}

.legal-secao p,
.legal-secao li {
  color: #4b5563;
  line-height: 1.8;
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.legal-secao ul {
  padding-left: 20px;
  margin-top: 8px;
}

.legal-secao li {
  margin-bottom: 6px;
}

.legal-secao strong {
  color: #0f0e17;
  font-weight: 600;
}

/* Tabela */
.legal-tabela {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  margin: 16px 0;
}

.legal-tabela th {
  background: #f8f7ff;
  color: #374151;
  font-weight: 700;
  padding: 10px 14px;
  text-align: left;
  border: 1px solid #e5e7eb;
}

.legal-tabela td {
  padding: 10px 14px;
  color: #4b5563;
  border: 1px solid #e5e7eb;
  vertical-align: top;
}

.legal-tabela tr:nth-child(even) td {
  background: #fafafa;
}

/* Destaque vermelho para PROIBIDO */
.legal-proibido {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 10px;
  padding: 16px 20px;
  margin: 12px 0;
}

.legal-proibido strong {
  color: #dc2626;
}

/* Destaque verde para PERMITIDO */
.legal-permitido {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  padding: 16px 20px;
  margin: 12px 0;
}

/* Box de aviso importante */
.legal-aviso {
  background: #fffbeb;
  border: 1.5px solid #fde68a;
  border-radius: 12px;
  padding: 16px 20px;
  margin: 20px 0;
  font-size: 0.88rem;
  color: #92400e;
  line-height: 1.7;
}

/* Índice de navegação */
.legal-indice {
  background: #f8f7ff;
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 32px;
}

.legal-indice h3 {
  font-size: 0.85rem;
  font-weight: 700;
  color: #374151;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.legal-indice ol {
  padding-left: 18px;
}

.legal-indice li {
  margin-bottom: 6px;
}

.legal-indice a {
  color: #5b4fe8;
  font-size: 0.88rem;
  text-decoration: none;
}

.legal-indice a:hover {
  text-decoration: underline;
}

/* Modal de consentimento */
.modal-consent-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 14, 23, 0.85);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 20px;
  animation: fadeIn 0.3s ease-out;
}

.modal-consent-overlay.show {
  display: flex;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { 
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to { 
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.modal-consent-box {
  background: white;
  border-radius: 24px;
  padding: 40px;
  max-width: 580px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 32px 96px rgba(0,0,0,0.4), 0 0 0 1px rgba(91,79,232,0.1);
  animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.modal-consent-logo {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: #5b4fe8;
  margin-bottom: 16px;
}

.modal-consent-titulo {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: #0f0e17;
}

.modal-consent-intro {
  color: #6b7280;
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 24px;
}

.modal-consent-itens {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.consent-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  background: #f8f7ff;
  border-radius: 10px;
}

.consent-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.consent-item strong {
  display: block;
  font-size: 0.88rem;
  color: #0f0e17;
  margin-bottom: 4px;
}

.consent-item p {
  font-size: 0.82rem;
  color: #6b7280;
  line-height: 1.5;
  margin: 0;
}

.consent-checkboxes {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
  padding: 16px;
  background: #f0fdf4;
  border-radius: 10px;
  border: 1px solid #bbf7d0;
}

.consent-check-label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.88rem;
  color: #374151;
  cursor: pointer;
  line-height: 1.5;
}

.consent-check-label input {
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: #5b4fe8;
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.consent-btn {
  width: 100%;
  background: #5b4fe8;
  color: white;
  border: none;
  padding: 14px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'DM Sans', sans-serif;
}

.consent-btn:disabled {
  background: #d1d5db;
  cursor: not-allowed;
  transform: none;
}

.consent-btn:not(:disabled):hover {
  background: #4338ca;
  transform: translateY(-1px);
}

.consent-rodape {
  font-size: 0.75rem;
  color: #9ca3af;
  text-align: center;
  margin-top: 14px;
  line-height: 1.5;
}

/* Formulário de contato */
.contato-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #374151;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 14px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #5b4fe8;
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.contato-canais {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 24px 0;
}

.canal-card {
  background: #f8f7ff;
  border-radius: 12px;
  padding: 20px;
  border: 1px solid #e5e7eb;
}

.canal-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f0e17;
  margin-bottom: 8px;
}

.canal-card a {
  color: #5b4fe8;
  text-decoration: none;
  font-weight: 600;
}

.canal-card a:hover {
  text-decoration: underline;
}

.canal-card p {
  font-size: 0.85rem;
  color: #6b7280;
  margin: 4px 0 0;
}

/* Botão de recusar */
.consent-btn-recusar {
  width: 100%;
  background: transparent;
  color: #6b7280;
  border: 1.5px solid #e5e7eb;
  padding: 14px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'DM Sans', sans-serif;
  margin-top: 12px;
}

.consent-btn-recusar:hover {
  background: #f9fafb;
  border-color: #d1d5db;
  color: #374151;
}

.consent-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Mobile */
@media (max-width: 640px) {
  .legal-inner {
    padding: 24px 20px;
    border-radius: 16px;
  }
  
  .modal-consent-box {
    padding: 28px 24px;
    border-radius: 20px;
    max-height: 95vh;
  }
  
  .modal-consent-titulo {
    font-size: 1.3rem;
  }
  
  .consent-item {
    padding: 12px;
  }
  
  .legal-tabela {
    font-size: 0.78rem;
  }
  
  .legal-tabela th,
  .legal-tabela td {
    padding: 8px 10px;
  }
}
