Whats illegal about a bond? Nothing I would guess. You want them to type rate you on a 777 and let you walk out the door never to return one week later?
You can argue the bond is too long and the cost is too high but most people see nothing wrong with a bond.
Personally $45,000 seems a lot and 5 years is too long. The problem is the where do you draw the line? Perhaps in 10 years airlines will do "lifetime bonds" or $100,000 buy out