/*
 * One stylesheet for every legal page. Deliberately tiny and self-hosted: these pages are opened
 * by store reviewers on unpredictable connections and by users tapping a link inside the app, so
 * they must render instantly with no external font, no CDN and no script.
 *
 * Colours mirror the app's light palette (SutraColors.Light*) so the pages read as part of Sutra
 * rather than a stray document, and the dark block follows the reader's own system setting.
 */
:root {
    --bg: #FAF7F4;
    --surface: #FFFFFF;
    --text: #16110F;
    --muted: #6B6B6B;
    --accent: #E43366;
    --line: rgba(0, 0, 0, 0.08);
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #171523;
        --surface: #201E2E;
        --text: #F4F1EE;
        --muted: #A5A1B0;
        --accent: #F0537E;
        --line: rgba(255, 255, 255, 0.10);
    }
}

* { box-sizing: border-box; }

body {
    margin: 0;
    padding: 0 20px 80px;
    background: var(--bg);
    color: var(--text);
    font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-text-size-adjust: 100%;
}

.wrap { max-width: 720px; margin: 0 auto; }

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 28px 0 20px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 32px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 18px;
    color: var(--text);
    text-decoration: none;
}

.brand svg { width: 28px; height: 28px; display: block; }

.langs { font-size: 14px; color: var(--muted); }
.langs a { color: var(--muted); text-decoration: none; padding: 4px 8px; border-radius: 6px; }
.langs a:hover { background: var(--surface); }
.langs a[aria-current="true"] { color: var(--text); font-weight: 600; background: var(--surface); }

h1 { font-size: 30px; line-height: 1.25; margin: 0 0 6px; }
h2 { font-size: 20px; margin: 40px 0 12px; }
.updated { color: var(--muted); font-size: 14px; margin: 0 0 32px; }

a { color: var(--accent); }
ul { padding-left: 22px; }
li { margin: 8px 0; }
strong { font-weight: 600; }

footer {
    margin-top: 56px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 14px;
}

footer a { color: var(--muted); }

/* Long e-mail addresses and URLs must not push the page sideways on a narrow phone. */
p, li { overflow-wrap: anywhere; }
