how to make a legal document