What should not be legal is not teaching the standard curriculum (incl. evolution), whether you do it at home or not.