Rework the Cookie and Privacy Agreement
First set complete key-value pairs for "cookieAcceoted" and "dataProtectionConsent".
The App starts with both keys set to "false".
If cookies are accepted, set both keys to "true". Accepting Cookies also include accepting the data protection statement.
Then query not only the presence of a key, but also its value.
Nota bene: Both keys must have the value "true" to activate the app.