Clergy can be members of political parties. I am. My boundaries are: I don't say anything party political from the pulpit or equivalent, and I don't do public-facing canvassing. But some clergy do, and some are elected to political roles eg. local councillors. It's open to interpretation!