A stable union (união estável) counts the same as a marriage, and the law applies "without any discrimination", so same-sex couples are covered.