legal documentation process