California can write that statute, but what bearing can it possibly have on, say, a transaction a California resident enters into in Texas, under Texas law???? California does NOT have the right to attach legal restrictions like that to its citzens elsewhere in the United States. If the transaction is conducted in Texas and is legal under Texas law there is nothing to adjudicate in California.