Thanks, good to know!
There is no doubt the grounds for impeachment included actions which might not be illegal:
https://www.lawliberty.org/2018/08/15/alexander-hamilton-the-federalist-and-the-power-of-impeachment/