You should probably look into organisations that can help you out in terms of housing if you need it and steel up for a battle over custody in court. As the saying goes, get your ducks in a row. I don't have any experience with this sort of thing so hopefully someone will be able to point you in the right direction and be more specific around support for you and DD.