Real estate brokerage Compass announced Tuesday that is has signed an agreement to acquire Dallas-based title insurance company LegacyTexas Title Co., its latest foray into the title and escrow space.