Ecological and legal regulation of relations in the oil and gas complex of Russia