It might be legal in some areas but not others. Off the top of my head I can't think of any examples in Gridania or Ishgard so it may not be legal there. Even where prostitution and slavery are legal there seem to be laws regulating the practice. It's seems illegal to kidnap people and sell them, but proving that someone was kidnapped and not forcibly sold to pay their or their parent's debts may be difficult.