Legal strategies for managing and optimizing corporate finance