Dolphins, whales and porpoises in Scottish territorial waters are protected by law.