I'm so sorry to hear this! What a shock for you.

It will be hard but you can do this. As others said, get a lawyer and formalise everything. And don't forget to look after yourself as your energy can be focused on your DD at this time and sometimes your own needs get pushed to the side.