In it, she said her life had been “torn apart” and she was “struggling to get it back together”.

Her pregnancy was terminated.

“These offences have had a severe and ongoing psychological impact [on the victim],” he told Legg.

“You have taken advantage of her for your own sexual gratification.”

As well as the prison sentence, the defendant will be subject to notification requirements for an indefinite period of time. He must also comply with a sexual harm prevention order until further order is made.

Judge Crabtree said he would not be ordering that Legg pay compensation.

“I cannot quantify compensation given the harm caused to this victim,” he said.

As the judge made his sentencing remarks, a court usher saw one of Legg’s friends holding aloft a mobile phone in the public gallery.

The officer in the case seized the phone and checked it to ensure it hadn’t been used to record any of the hearing.

Its sobbing owner returned to the court to be spoken to by Judge Crabtree, who told her if any recordings had been made, or were posted online in the future, she would commit a criminal offence.

“You will find yourself arrested and brought back here to be dealt with,” he said.