Working with a nearshore IT team is very similar to working with an onshore team when it comes to data security and compliance, as both countries are likely to share a similar legal framework.
Similarly to on-shore teams, establishing a Non-Disclosure Agreement is an excellent practice towards establishing data security and compliance.
As it's always the case, defining clear privacy and data security policies and regular audit and monitoring can help you further in that regard.