Why wouldn't being taken off 10 minutes before standby be legal? Being asked to do a standby 10 minutes before it starts may be.
Same goes for the night flight - as long as you're given the required rest beforehand, where's the problem? May be a bit of a sh*t to deal with, but it'd still be legal if you've got 11 hours to go rest.
Obviously don't try and promote this kind of thing at our place but if it's required, it happens.
RM