If you do want Subnet C to communicate with Subnets A and B, then you will need to make a policy match rule for that to allow it.
Something like:
set pbr table SubnetC_to_A static-route default nexthop gateway address A.1.1.1 priority 1
set pbr table SubnetC_to_B static-route default nexthop gateway address B.1.1.1 priority 1
set pbr table SubnetC_default static-route default nexthop gateway address Z.1.1.1 priority 1
set pbr rule priority 1 match from C.1.1.0/24 to A.1.1.0/24 interface ethC
set pbr rule priority 1 action table SubnetC_to_A
set pbr rule priority 2 match from C.1.1.0/24 to B.1.1.0/24 interface ethC
set pbr rule priority 2 action table SubnetC_to_B
set pbr rule priority 3 match interface ethC
set pbr rule priority 3 action table SubnetC_default