Who is the legal guardian of a child born out of wedlock?

The mother of a child born out of wedlock [...]