/* Reset e configurações básicas */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: #ffffff;
  background-color: #000000;
  font-size: 16px;
}

/* Container principal */
.container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.header {
  background-color: #000000;
  padding: 2rem 0;
  border-bottom: 1px solid #333333;
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.logo {
  height: 40px;
  width: auto;
}

.header h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  text-balance: balance;
}

/* Updated layout structure to use main-wrapper instead of main-content */
/* Layout principal */
.main-content,
.main-wrapper {
  flex: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3rem;
}

/* Sidebar */
.sidebar {
  background-color: #111111;
  padding: 2rem;
  border-radius: 8px;
  height: fit-content;
  position: sticky;
  top: 2rem;
}

.nav-menu h3 {
  color: #fb0023;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #fb0023;
}

.nav-menu ul {
  list-style: none;
}

.nav-menu li {
  margin-bottom: 0.5rem;
}

.nav-menu a {
  color: #cccccc;
  text-decoration: none;
  padding: 0.75rem 1rem;
  display: block;
  border-radius: 6px;
  transition: all 0.2s ease;
  font-weight: 500;
}

.nav-menu a:hover {
  background-color: #222222;
  color: #ffffff;
}

.nav-menu a.active {
  background-color: #fb0023;
  color: #ffffff;
}

/* Conteúdo principal */
.content {
  background-color: #111111;
  padding: 2.5rem;
  border-radius: 8px;
}

/* Added styles for document-header and document-content */
.document-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid #fb0023;
}

.document-header h1 {
  color: #fb0023;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.document-intro {
  color: #e0e0e0;
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 0;
}

.document-content {
  color: #e0e0e0;
}

.document-info {
  background-color: #1a1a1a;
  padding: 1.5rem;
  border-radius: 6px;
  margin-bottom: 2rem;
  border-left: 4px solid #fb0023;
}

.document-info p {
  margin-bottom: 0.5rem;
  color: #cccccc;
}

.document-info p:last-child {
  margin-bottom: 0;
}

/* Added styles for definition-list and definition-item */
.definition-list {
  margin: 1rem 0;
}

.definition-item {
  background-color: #1a1a1a;
  padding: 1.5rem;
  border-radius: 6px;
  margin-bottom: 1rem;
  border-left: 3px solid #fb0023;
}

.definition-item strong {
  color: #fb0023;
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

/* Seções */
.section {
  margin-bottom: 3rem;
}

.section:last-child {
  margin-bottom: 0;
}

.section h2 {
  color: #fb0023;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #333333;
}

.section h3 {
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 600;
  margin: 2rem 0 1rem 0;
}

.section h4 {
  color: #fb0023;
  font-size: 1.1rem;
  font-weight: 600;
  margin: 1.5rem 0 0.75rem 0;
}

.section p {
  margin-bottom: 1rem;
  color: #e0e0e0;
  text-align: justify;
  line-height: 1.7;
}

.section ul,
.section ol {
  margin: 1rem 0 1rem 2rem;
  color: #e0e0e0;
}

.section li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

/* Definições e princípios */
.definition,
.principle,
.phase {
  background-color: #1a1a1a;
  padding: 1.5rem;
  border-radius: 6px;
  margin-bottom: 1rem;
  border-left: 3px solid #fb0023;
}

.definition h4,
.principle h4,
.phase h4 {
  color: #fb0023;
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.definition p,
.principle p,
.phase p {
  margin-bottom: 0;
  color: #e0e0e0;
}

/* Cookies de terceiros */
.third-party-cookie {
  background-color: #1a1a1a;
  padding: 1.5rem;
  border-radius: 6px;
  margin-bottom: 1rem;
  border-left: 3px solid #fb0023;
}

.third-party-cookie h4 {
  color: #fb0023;
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.third-party-cookie p {
  margin-bottom: 0.5rem;
  color: #e0e0e0;
}

.third-party-cookie p:last-child {
  margin-bottom: 0;
}

/* Tabela de histórico */
.history-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  background-color: #1a1a1a;
  border-radius: 6px;
  overflow: hidden;
}

.history-table th {
  background-color: #fb0023;
  color: #ffffff;
  padding: 1rem;
  text-align: left;
  font-weight: 600;
}

.history-table td {
  padding: 1rem;
  border-bottom: 1px solid #333333;
  color: #e0e0e0;
}

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

/* Links */
a {
  color: #fb0023;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Added document-footer styles */
.document-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #333333;
  text-align: center;
}

.footer-logo {
  margin-bottom: 1rem;
}

.footer-symbol {
  height: 32px;
  width: auto;
}

.document-footer p {
  color: #cccccc;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.document-footer p:last-child {
  margin-bottom: 0;
}

/* Footer */
.footer {
  background-color: #000000;
  border-top: 1px solid #333333;
  padding: 2rem 0;
  margin-top: auto;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: center;
  text-align: center;
}

.footer-logo {
  height: 24px;
  width: auto;
}

.footer p {
  color: #cccccc;
  font-size: 0.9rem;
  margin: 0;
}

/* Responsividade */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .header h1 {
    font-size: 1.5rem;
  }

  .main-content,
  .main-wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 1rem;
  }

  .sidebar {
    position: static;
    order: 2;
  }

  .content {
    padding: 1.5rem;
    order: 1;
  }

  .nav-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .nav-menu h3 {
    width: 100%;
    margin-bottom: 1rem;
  }

  .nav-menu ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    width: 100%;
  }

  .nav-menu li {
    margin-bottom: 0;
  }

  .nav-menu a {
    padding: 0.5rem 1rem;
    white-space: nowrap;
  }

  .footer-content {
    flex-direction: column;
    gap: 0.5rem;
  }
}

@media (max-width: 480px) {
  .header-content {
    padding: 0 1rem;
  }

  .header h1 {
    font-size: 1.25rem;
  }

  .content {
    padding: 1rem;
  }

  .section h2 {
    font-size: 1.25rem;
  }

  .section h3 {
    font-size: 1.1rem;
  }

  .history-table {
    font-size: 0.9rem;
  }

  .history-table th,
  .history-table td {
    padding: 0.75rem;
  }
}

/* Melhorias de acessibilidade */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus states para acessibilidade */
a:focus,
.nav-menu a:focus {
  outline: 2px solid #fb0023;
  outline-offset: 2px;
}

/* Print styles */
@media print {
  body {
    background: white;
    color: black;
  }

  .header,
  .sidebar,
  .footer {
    display: none;
  }

  .main-content,
  .main-wrapper {
    grid-template-columns: 1fr;
    max-width: none;
    margin: 0;
    padding: 0;
  }

  .content {
    background: white;
    color: black;
    padding: 0;
  }

  .section h2 {
    color: black;
    border-bottom-color: black;
  }

  .section h4 {
    color: black;
  }
}
