/* Shared styles for the standalone legal pages (privacy policy, terms, refunds).
   These pages are opened from inside the apps as well as from the web, so they
   stay self-contained and follow the reader's light/dark preference. */
:root {
    color-scheme: light dark;
    --lg-bg: #ffffff;
    --lg-text: #1f2d41;
    --lg-muted: #6b7280;
    --lg-rule: #e5e7eb;
    --lg-link: #2563eb;
}
@media (prefers-color-scheme: dark) {
    :root {
        --lg-bg: #0f1115;
        --lg-text: #e6e8ec;
        --lg-muted: #9aa1ac;
        --lg-rule: #2a2f38;
        --lg-link: #7aa7ff;
    }
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.65;
    background: var(--lg-bg);
    color: var(--lg-text);
    max-width: 46rem;
    margin: 0 auto;
    padding: 2.5em 1.25em 4em;
    -webkit-text-size-adjust: 100%;
}

h1 { font-size: 1.8rem; line-height: 1.2; margin: 0 0 0.1em; }
.subtitle { color: var(--lg-muted); margin: 0 0 2em; font-size: 1.05rem; }
h2 { font-size: 1.15rem; margin: 2.25em 0 0.6em; }
h3 { font-size: 1rem; margin: 1.5em 0 0.4em; }
p { margin: 0 0 1em; }
ul { padding-left: 1.35em; }
li { margin-bottom: 0.5em; }
a { color: var(--lg-link); }

.note {
    border-left: 3px solid var(--lg-rule);
    padding: 0.25em 0 0.25em 1em;
    margin: 1.5em 0;
    color: var(--lg-muted);
}
.updated {
    color: var(--lg-muted);
    font-size: 0.9rem;
    margin-top: 3em;
    border-top: 1px solid var(--lg-rule);
    padding-top: 1.25em;
}
.related { font-size: 0.9rem; margin-top: 0.75em; }
