Iran says seizure of ship a legal matter