In legal language, it's usual to speak of "custas legais", feminine noun, instead of the usual and all encompassing "custos", masculine. No lawyer would write "custos" in his legal petition.
"Custas" is, however, limited to law activities. You won't find it anywhere else.