There are two basis of spousal support: needs based, which is you need support, and compensatory based, which is where you gave something up for the relationship.
The classic example of the basis compensatory is a mother who takes time off work to have and raise children. Presumably, the spouses would have agreed to this plan. The mother is entitled to be compensated for what she gave up to have and raise the children as agreed. But it doesn’t apply just to this scenario, compensatory support can come up in may different cases; like refusing promotions to moving for your spouse.
That being said, just because you were in a relationship doesn’t mean you are entitled to support. Our legal team has experience litigating and negotiating complex spousal support issues.