/*
 * Native Store-review document shell.
 *
 * The class is added in <head> before first paint only on /app-* document
 * routes. Canonical Browser pages never receive it and retain the full
 * marketing navigation.
 * Maintenance contract: docs/LEGAL_DOCUMENT_SURFACES.md.
 */
html.gid-native-app-document .main-nav,
html.gid-native-app-document .main-footer,
html.gid-native-app-document .back-link {
    display: none !important;
}

html.gid-native-app-document body {
    min-height: 100vh;
}

html.gid-native-app-document .legal-body {
    min-height: 100vh;
    padding-top: max(24px, env(safe-area-inset-top)) !important;
    padding-bottom: max(24px, env(safe-area-inset-bottom)) !important;
}

/*
 * Fail closed while the policy script initializes: ordinary Gid-owned links
 * cannot become a path to pricing or checkout. The script explicitly enables
 * fragments, contact actions, external references, and other app documents.
 */
html.gid-native-app-document body a {
    pointer-events: none;
}

html.gid-native-app-document body a[href^="#"],
html.gid-native-app-document body a[href^="mailto:"],
html.gid-native-app-document body a[href^="tel:"],
html.gid-native-app-document body a[href^="sms:"],
html.gid-native-app-document body a.gid-native-app-document__allowed-link {
    pointer-events: auto;
}

html.gid-native-app-document
    body
    a.gid-native-app-document__blocked-link {
    color: inherit;
    cursor: default;
    text-decoration: none;
}

@media (max-width: 640px) {
    html.gid-native-app-document .legal-body {
        padding-top: max(12px, env(safe-area-inset-top)) !important;
    }

    html.gid-native-app-document .legal-container {
        margin-top: 0;
    }
}
