Clear guidelines can keep romances from sparking lawsuits.