/* Other work - the terms pages in dark, inside the phone app only.
   terms.html and driver-terms.html open in the Driver App's own WebView. The website has no
   dark mode, so a driver in dark got a white page (user, 2026-11-29). Each page's in-app script
   adds "ow-dark" to <html> when the app's theme (ow_theme cookie / ow_theme_v1) is dark;
   colours follow the Driver App's dark (tm.driver.personal.css). */

html.ow-dark {
    color-scheme: dark;
    --ow-primary-dark: #9cc3ea;
    --ow-navy: #e5e7eb;
    --ow-text: #e5e7eb;
    --ow-muted: #94a3b8;
    --ow-bg: #0b1220;
    --ow-card: #111827;
    --ow-border: rgba(148, 163, 184, 0.28);
}

    html.ow-dark body {
        background: #0b1220;
        color: #e5e7eb;
    }

    html.ow-dark .ow-page-hero {
        background: #0b1220;
    }

        html.ow-dark .ow-page-hero::before {
            display: none;
        }

    html.ow-dark .ow-toc,
    html.ow-dark .ow-terms-card {
        background: #111827;
        border-color: rgba(148, 163, 184, 0.28);
        box-shadow: none;
    }

    html.ow-dark .ow-terms-card {
        color: #d1d5db;
    }

    html.ow-dark .ow-toc a {
        color: #cbd5e1;
    }

        html.ow-dark .ow-toc a:hover,
        html.ow-dark .ow-toc a.is-current {
            background: rgba(70, 130, 180, 0.28);
            color: #e5e7eb;
        }

    html.ow-dark .tm-warning {
        background: rgba(232, 163, 58, 0.14);
        color: #fcd9a0;
    }

    /* ".ow-in-app" too: the page's own in-app rule sits later, in <body>, and would win a tie. */
    html.ow-in-app.ow-dark .ow-app-back {
        background: #111827;
        border-bottom-color: rgba(148, 163, 184, 0.28);
    }

        html.ow-in-app.ow-dark .ow-app-back button {
            background: #17233a;
            border-color: rgba(201, 211, 230, 0.24);
            color: #e6edf7;
        }

    html.ow-dark .tm-footer {
        background: #111827;
        color: #94a3b8;
        border-top-color: rgba(148, 163, 184, 0.28);
    }

    html.ow-dark .tm-footer-col a {
        color: #cbd5e1;
    }

    html.ow-dark .tm-footer-bottom {
        color: #94a3b8;
        border-top-color: rgba(148, 163, 184, 0.28);
    }

    /* The footer logo is the dark-ink one; the top bar's light-ink one, same proportions. */
    html.ow-dark .tm-footer-brand img {
        content: url("/assets/brand/topbar-logo-registered-dark.png?v=20261010");
    }
