Proximity spin-orbit and exchange coupling in ABA and ABC trilayer graphene van der Waals heterostructures