Tip: signing well before the wedding matters — a last-minute agreement is far easier to challenge as signed “under duress.”