/* ============================================
   BASE.CSS — Reset, Tipografia e Utilitários
   ============================================ */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-secondary);
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-heading);
}

h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ============================================
   CONTAINER
   ============================================ */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ============================================
   TIPOGRAFIA UTILITÁRIA
   ============================================ */
.text-center { text-align: center; }
.text-muted { color: var(--color-muted); }
.font-bold { font-weight: 700; }

/* ============================================
   LISTAS ESTILIZADAS
   ============================================ */
.styled-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 1.5rem 0;
}

.styled-list li {
  padding: 0.45rem 0 0.45rem 1.8rem;
  position: relative;
  border-bottom: 1px solid var(--color-border);
}

.styled-list li:last-child {
  border-bottom: none;
}

.styled-list li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-size: 0.9rem;
  top: 0.5rem;
}

/* ============================================
   TABELA DE INFORMAÇÕES
   ============================================ */
.info-table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}

.info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
}

.info-table thead tr {
  background: var(--color-primary);
  color: #fff;
}

.info-table th {
  padding: 0.85rem 1rem;
  text-align: left;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.info-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}

.info-table tbody tr:nth-child(even) {
  background: var(--color-surface);
}

.info-table tbody tr:hover {
  background: var(--color-hover);
}

/* ============================================
   GLOSSÁRIO
   ============================================ */
.glossary {
  font-size: 0.9rem;
}

.glossary dt {
  font-weight: 700;
  color: var(--color-primary);
  margin-top: 0.75rem;
  font-size: 0.95rem;
}

.glossary dd {
  color: var(--color-text-light);
  padding-left: 0.75rem;
  border-left: 2px solid var(--color-accent);
  margin-left: 0;
  margin-bottom: 0.25rem;
}

/* ============================================
   RESPONSIVIDADE — MOBILE FIRST
   ============================================ */
@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }

  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.3rem; }
  h3 { font-size: 1.1rem; }
}
