/* One stylesheet for all three pages. Deliberately small and dependency-free:
   this site exists so App Review can click a link and read a policy, and a
   CDN font or framework is one more thing that can be blocked or go down. */

:root {
    --bg: #ffffff;
    --surface: #f6f7f8;
    --text: #17181a;
    --muted: #5c6166;
    --border: #e2e5e8;
    --accent: #2f6670;
    --accent-ink: #ffffff;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #16181a;
        --surface: #1e2124;
        --text: #ecedee;
        --muted: #9ba1a6;
        --border: #2c3033;
        --accent: #7fb3bd;
        --accent-ink: #10262b;
    }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
        "Hiragino Sans GB", "Microsoft YaHei", Roboto, Helvetica, Arial, sans-serif;
}

.wrap {
    max-width: 720px;
    margin: 0 auto;
    padding: 40px 20px 80px;
}

header.site {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 28px;
    margin-bottom: 28px;
    border-bottom: 1px solid var(--border);
}

header.site img { width: 48px; height: 48px; border-radius: 11px; }

header.site .name { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }

header.site .tag { color: var(--muted); font-size: 14px; }

nav.top { margin-left: auto; display: flex; gap: 16px; font-size: 14px; }

nav.top a { color: var(--muted); text-decoration: none; }

nav.top a:hover { color: var(--accent); }

h1 { font-size: 30px; line-height: 1.25; letter-spacing: -0.02em; margin: 0 0 8px; }

h2 {
    font-size: 19px;
    letter-spacing: -0.01em;
    margin: 36px 0 10px;
    padding-top: 4px;
}

h3 { font-size: 16px; margin: 24px 0 6px; }

p, li { color: var(--text); }

.lede { color: var(--muted); font-size: 17px; margin: 0 0 4px; }

.updated { color: var(--muted); font-size: 14px; margin: 0 0 8px; }

ul { padding-left: 22px; }

li { margin: 6px 0; }

a { color: var(--accent); }

code {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 1px 5px;
    font-size: 0.9em;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.callout {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px 18px;
    margin: 20px 0;
}

.callout p:first-child { margin-top: 0; }
.callout p:last-child { margin-bottom: 0; }

table { border-collapse: collapse; width: 100%; margin: 16px 0; font-size: 15px; }

th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }

th { color: var(--muted); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; }

footer.site {
    margin-top: 56px;
    padding-top: 22px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
}

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

/* The language toggle swaps which of the two blocks is displayed. Both are in
   the markup so the page needs no JavaScript to be readable and no server-side
   negotiation to be correct. */
.lang-switch {
    display: inline-flex;
    border: 1px solid var(--border);
    border-radius: 7px;
    overflow: hidden;
    font-size: 13px;
}

.lang-switch button {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--muted);
    padding: 5px 12px;
    cursor: pointer;
    font: inherit;
}

.lang-switch button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }

[data-lang] { display: none; }
[data-lang].active { display: block; }

.email { white-space: nowrap; }
