A five-judge constitution bench of the Supreme Court Tuesday unanimously refused to accord legal recognition to same-sex marriage under the Special Marriage Act, ruling that it is within Parliament's ambit to change the law for validating such union.