Legal foundations of compulsory school attendance