the legal rules can be found here