mortgage a legal document ( another term for describing an often expensive piece of paper ) that provides a transfer of rights to a piece of property commonly used as security ( or collateral ) for the payment of a loan or debt which becomes void when the debt is paid .