What are my rights during a tarmac delay?

After 3 hours on the tarmac, the airline must offer you the option to deplane (if feasible and safe). During the wait, they must provide working ventilation, food, drink, and working lavatories.