When in foster care who handle legal affairs?

Most likely the state and the social worker might help with it if needed. but it is the Legal Guardian that takes care of it.