Dark meat safe to eat at 165 but because it has more connective tissue, it is more toothsome when cooked to 175 or even 180, final temp.
But, as Andy points out importantly, the meat will continue to cook even after it’s off the heat. This is called “carry over.” So, again, like Andy suggested, take legs and thighs off at 168-170. Then let them rest.