You can’t sign away actual rights, but you can agree to pretty much anything else. It’s been well established that companies can fire you for any off-duty behavior they deem inappropriate, as long as the reason doesn’t conflict with a protected class. This is the same mechanism that allows people to be fired for being a Nazi or participating in the Jan 6th insurrection, even before being charged with a crime.