Composting toilets are legal in most places, but it's important to check with local authorities to make sure they comply with any regulations or restrictions.