/*
 * Documentación de la API (/docs/api — resources/views/docs/api.blade.php).
 * Se apoya en legal.css para el chasis (header compacto, contenedor
 * oscuro, secciones); acá solo lo que las páginas legales no tienen:
 * bloques de código, tablas de campos, índice y subtítulos h4.
 */

main.docs .container {
  max-width: 1000px;
}

main.docs .docs-toc {
  margin: 10px 0 30px;
  padding: 15px 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

main.docs .docs-toc ul {
  margin: 0;
  padding-left: 18px;
}

main.docs .docs-toc li + li {
  margin-top: 4px;
}

main.docs .legal-section h4 {
  font-size: 16px;
  font-weight: 600;
  font-family: "Poppins", sans-serif;
  color: #fff;
  margin: 22px 0 10px;
}

main.docs code {
  font-size: 13.5px;
  color: #18d26e;
  background: rgba(255, 255, 255, 0.06);
  padding: 1px 5px;
  border-radius: 3px;
  word-break: break-all;
}

main.docs pre {
  margin: 12px 0 18px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow-x: auto;
}

main.docs pre code {
  display: block;
  padding: 0;
  background: none;
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  line-height: 1.6;
  white-space: pre;
  word-break: normal;
}

main.docs .docs-table {
  width: 100%;
  margin: 10px 0 18px;
  border-collapse: collapse;
  font-size: 14px;
}

main.docs .docs-table-narrow {
  max-width: 480px;
}

main.docs .docs-table th,
main.docs .docs-table td {
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  vertical-align: top;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
}

main.docs .docs-table th {
  color: #fff;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.04);
  text-align: left;
}

main.docs .docs-table td:first-child {
  white-space: nowrap;
}

main.docs .docs-contact {
  margin-top: 35px;
  color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 768px) {
  main.docs .docs-table {
    display: block;
    overflow-x: auto;
  }

  main.docs .docs-table td:first-child {
    white-space: normal;
  }
}
