Is an office romance illegal?

Office romance, the subject of many movies and TV shows, is common in the United States. But is it legal? Or could you run into sexual harassment claims if you express interest in a coworker and ask them out?  First and foremost, companies can create policies about...