In keeping with Imreadonly2's suggestions, here's an idea that I've been able to find time (and expand the idea to a full plot) is The Contagious Diseases Acts.
That's that?
https://en.wikipedia.org/wiki/Contagious_Diseases_Acts has all the details, but basically in Victorian England they wanted to halt the spread of VD. This law allowed the authorities to "inspect" suspected prostitutes.
to quote:
The legislation allowed police officers to arrest women suspected of being prostitutes in certain ports and army towns. The women were then subjected to compulsory checks for venereal disease. If a woman was declared to be infected, she would be confined in what was known as a lock hospital until she recovered or her sentence finished. The original act only applied to a few selected naval ports and army towns, but by 1869 the acts had been extended to cover eighteen "subjected districts".
The Act of 1864 stated that women found to be infected could be interned in locked hospitals for up to three months, a period gradually extended to one year with the 1869 Act. These measures were justified by medical and military officials as the most effective method to shield men from venereal disease. Because military men were often unmarried and homosexuality was criminal, prostitution was considered a necessary evil. However, no provision was made for the examination of prostitutes' clientele, which became one of the many points of contention in a campaign to repeal the Acts.
-----------
If a single woman (that is, one without a male escort) stopped a hotel she could be suspected of being a prostitute and subject to "inspection" by male officials. Nor was there any system to appeal.
When I saw that I started thinking of a woman of quality travelling alone (perhaps her maid is ill?) and running afoul of this law. Maybe there's an inheritance involved? A wicked cousin or brother-in-law behind the scenes? And once the woman is confined, well the reformatory side practically writes itself.
I've been thinking about this plot line on and for about a decade and haven't found a story - and I'd love to see someone write it.