/* ============================================= */
/*          VARIÁVEIS GLOBAIS E BASE             */
/* ============================================= */
:root {
  --primary-color: #0d6efd;
  --primary-hover: #0b5ed7;
  --bg-color: #f4f6f9;
  --card-bg-color: #ffffff;
  --header-bg-color: #ffffff;
  --text-color: #212529;
  --text-color-light: #6c757d;
  --accent-color: #0056b3;
  --border-color: #dee2e6;
  --border-color-light: #f1f3f5;
  --sidebar-bg: #1e2a3b;
  --sidebar-text: #adb5bd;
  --sidebar-text-hover: #ffffff;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --header-height: 60px;
}

html.dark {
  --primary-color: #4dabf7;
  --primary-hover: #74c0fc;
  --bg-color: #121212;
  --card-bg-color: #1e1e1e;
  --header-bg-color: #1e1e1e;
  --text-color: #e9ecef;
  --text-color-light: #b0b3b8;
  --accent-color: #4dabf7;
  --border-color: #495057;
  --border-color-light: #2c2e33;
  --sidebar-bg: #1c1f24;
  --sidebar-text: #868e96;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  margin: 0;
  background-color: var(--bg-color);
  color: var(--text-color);
  transition: background-color .3s, color .3s;
}

/* ============================================= */
/*             CONTEÚDO PRINCIPAL                */
/* ============================================= */
.main-content {
  padding: 1.5rem;
  margin-top: 2rem;
}

.page-container {
  background-color: var(--card-bg-color);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
  max-width: 900px;
  margin: 2rem auto;
}

.page-container h1 {
  font-size: 2rem;
  text-align: center;
  color: var(--text-color);
  margin-top: 0;
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 1rem;
}

.page-container h2 {
  font-size: 1.5rem;
  color: var(--text-color);
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
}

.page-container p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-color-light);
  margin-bottom: 1rem;
}

.page-container.loading {
  opacity: 0.5;
}

/* ============================================= */
/*             SEÇÃO DE FAQ                      */
/* ============================================= */
.faq-item {
  border-bottom: 1px solid var(--border-color);
}

.faq-item:last-of-type {
  border-bottom: none;
}

.faq-item summary {
  font-weight: 600;
  padding: 1.25rem 0.5rem;
  cursor: pointer;
  outline: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary h2 {
  margin: 0;
  padding: 0;
  border: none;
  font-size: 1.1rem;
  display: flex;
  align-items: baseline;
}

h2 .numero {
  margin-right: 12px;
  color: var(--text-color-light);
  flex-shrink: 0;
  width: 1.5em;
}

.faq-item summary::after {
  content: '\f078';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  font-size: 1rem;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--accent-color);
}

.faq-item[open] summary::after {
  transform: rotate(180deg);
}

.faq-content {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-content p {
  padding: 0 0.5rem 1.5rem 2.9rem;
  line-height: 1.7;
  margin: 0;
}

.faq-item[open] .faq-content {
  max-height: 20rem;
  opacity: 1;
}

/* ============================================= */
/*             PRELOADER E SPINNER               */
/* ============================================= */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-color);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .5s ease;
}

.spinner {
  border: 4px solid var(--border-color);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border-left-color: var(--accent-color);
  animation: spin 1s ease infinite;
}

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