Anyone knows what's going on with Upstox margin?

It seems upstox is doing strange things with margin requirement for option selling and not really considering cash eq as cash for 50 percent margin. Either you use 100 percent margin from cash eq or you keep 50 in collateral and 50 in real cash.

Just wondering if this is legal? They are openly saying this is their RMS policy.