legal promise that a defendant will appear in court, and if they fail to appear, that the person signing the bond will pay the bail to the court