Apartheid is when, in a given geographic area, there are two separate legal systems for two ethnic, religious, or racial groups (eg. Jews vs Arabs).
When some sanctions (eg. indefinite detention without trial, also known as administrative detention) are only used against one group, it is, by definition, apartheid.