Legal duties in education