The application is legal to use if you receive the apps that are made by developers only, that have allowed sharing it on AC Market app. If you attempt to install any restricted app then it will be considered as illegal because some of the application requires a payment which AC market allows for free.