Given a text, write a compressed version of it in a single sentence.

Social Security survivor benefits --and spousal benefits under other federal programs such as veterans' pensions --apply only to a legal spouse, not to an unmarried partner.
Survivor and spousal benefits under federal programs apply only to a legal spouse?