/* =============================
   RESET BÁSICO E FONTES
   ============================= */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: #0F0F1A; /* fundo quase preto */
  color: #E0E0E0;            /* texto claro */
  line-height: 1.6;
}

/* LINKS */
a {
  text-decoration: none;
  color: inherit;
}

/* BOTÕES GERAIS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.2rem;
  border-radius: 0.5rem;
  font-weight: 500;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.btn-nebula-primary {
  background-color: #E63946;
  color: #FFFFFF;
  border: none;
}
.btn-nebula-primary:hover {
  background-color: #C02939;
}

.btn-nebula-secondary {
  background-color: transparent;
  color: #FFFFFF;
  border: 2px solid rgba(255, 255, 255, 0.8);
}
.btn-nebula-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* =======================
   NAVBAR (CABEÇALHO)
   ======================= */
.nebula-navbar {
  background-color: #1A0A0D;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nebula-navbar .nav-inner {
  display: flex;
  align-items: center;
  padding: 0 1rem;
}

/* Logo à esquerda */
.logo {
  display: flex;
  align-items: center;
  margin-right: 2rem;
}

.logo img {
  height: 32px;
  width: 32px;
}

.logo span {
  font-size: 1.25rem;
  font-weight: 600;
  color: #FFFFFF;
}

/* Nav-links */
.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  font-size: 0.95rem;
  color: #FFFFFF;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: #0F0F1A;
}

/* Agrupa ações à direita */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: auto;
}

/* BOTÃO PILL DE IDIOMA */
.dropdown-lang {
  position: relative;
}

.lang-btn-pill {
  background-color: transparent;
  color: #FFFFFF;
  border: none;
  border-radius: 999px;
  padding: 0.8rem 1.2rem;
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.lang-btn-pill:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.lang-btn-pill i {
  font-size: 1.3rem;
  transition: transform 0.2s ease;
}

.lang-btn-pill.active i {
  transform: rotate(180deg);
}

/* Lista de idiomas (dropdown) */
.lang-menu-pill {
  position: absolute;
  top: 120%;
  right: 0;
  background-color: #1A0A0D;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  list-style: none;
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 10;
  min-width: 140px;
}

.lang-menu-pill.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-menu-pill li a {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.95rem;
  color: #CCCCCC;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.lang-menu-pill li a:hover {
  background-color: rgba(255, 255, 255, 0.05);
  color: #FFFFFF;
}

/* BOTÃO “BAIXAR” */
.btn-nebula-primary.nav-download {
  background-color: #E63946;
  color: #FFFFFF;
  padding: 0.65rem 1.2rem;
  border-radius: 0.5rem;
}
.btn-nebula-primary.nav-download:hover {
  background-color: #C02939;
}

/* =======================
   DOCUMENTAÇÃO (DOC-CONTAINER)
   ======================= */
.doc-container {
  max-width: 900px;
  margin: 2rem auto;
  padding: 0 1rem;
}

/* Cabeçalho da doc: título + subtítulo */
.doc-header {
  text-align: left;
  margin-bottom: 2rem;
}

.doc-title {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #FFFFFF;
}

.doc-subtitle {
  font-size: 1rem;
  color: #CCCCCC;
  line-height: 1.5;
}

/* Cada seção de termo */
.doc-section {
  padding: 2rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.doc-section:last-of-type {
  border-bottom: none;
}

.doc-section.alternate-bg {
  background-color: #131116;
}

.doc-section h2 {
  font-size: 1.75rem;
  color: #E63946;
  margin-bottom: 1rem;
}

.section-content {
  margin-left: 1rem;
}

.section-content p,
.section-content ul li {
  font-size: 0.95rem;
  color: #DDDDDD;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.section-content p strong {
  color: #FFFFFF;
}

/* Estiliza lista dentro de seção */
.section-content ul {
  list-style: none;
  padding-left: 1rem;
}

.section-content ul li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.section-content ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #E63946;
  font-size: 1.2rem;
  line-height: 1;
}

/* Lista de contato */
.contact-list {
  list-style: none;
  padding-left: 0;
  margin-top: 0.5rem;
}

.contact-list li {
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  color: #DDDDDD;
}

.contact-list li span {
  font-weight: 600;
  color: #FFFFFF;
  margin-right: 0.5rem;
}

/* RODAPÉ DA DOCUMENTAÇÃO */
.doc-footer {
  text-align: center;
  padding: 2rem 0;
  margin-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.doc-footer p {
  font-size: 0.85rem;
  color: #777777;
  line-height: 1.4;
}

/* =======================
   RESPONSIVIDADE
   ======================= */
@media (max-width: 768px) {
  .doc-container {
    margin: 1.5rem auto;
    padding: 0 1rem;
  }

  .doc-title {
    font-size: 2rem;
  }

  .doc-section {
    padding: 1.5rem 0;
  }

  .doc-section h2 {
    font-size: 1.5rem;
  }

  .section-content p,
  .section-content ul li {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .nav-links {
    display: none; /* possível menu mobile */
  }

  .doc-title {
    font-size: 1.75rem;
  }
}
