investment legal meaning