trata legal