pre contract legal due diligence