ripeness and mootness doctrines — Legal Definition, Examples & Cases