I never understood well how that works. Basically, the idea is not having a relationship between people where one works for the other. Beyond that, everything goes.
Avoiding contact at the workplace is bullshit. It only applies to supervisors/subordinates. And even then, people have affairs, but usually when that happens, one changes job to work for someone else, so there can be no conflict.