(a)legalestablished by or founded upon law or official or accepted rules