legal definition of citizenship