Legalism does not concern itself with familial matters. In addition, Legalism only focused on family members in their capacity as citizens. On the other hand, Confucianism consisted of roles that were to be assumed by family members in an ideal society. Hope this helped!