As ever Vee, the law is defined by British prurience and the need to acknowledge it goes on, however distasteful. Wikipedia gives a reasonably good summary, or you can go the whole hog and read the relevant content of the Sexual Offences Act 2003.
On a trivial note, one of my school teachers got busted for importuning back in the 1970s.