/* Founday legal pages — one stylesheet for every document, both languages.
   Colors are the app's own tokens (android/.../designsystem/Color.kt):
   canvas #0A0B0A / #F4F3EE, ink #ECEDEA / #1A1B17, accent amber #D99A3C.
   No fonts, scripts or images are fetched: the pages must open fast on a
   phone from a Play Store link, and a legal page has no business tracking
   anyone. That is also why there is no analytics and no cookies here. */

:root {
    --canvas: #f4f3ee;
    --surface: #fbfaf6;
    --ink: #1a1b17;
    --accent: #b8781f;
    --border: rgba(26, 27, 23, 0.12);
}

@media (prefers-color-scheme: dark) {
    :root {
        --canvas: #0a0b0a;
        --surface: #121412;
        --ink: #ecedea;
        --accent: #d99a3c;
        --border: rgba(236, 237, 234, 0.12);
    }
}

* { box-sizing: border-box; }

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

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

header.site {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 28px 0 22px;
    border-bottom: 1px solid var(--border);
}

.wordmark {
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -0.01em;
    text-decoration: none;
    color: var(--ink);
}

.wordmark span { color: var(--accent); }

nav.lang a {
    font-size: 13px;
    color: var(--ink);
    opacity: 0.55;
    text-decoration: none;
    border-bottom: 1px solid var(--border);
}

nav.lang a:hover { opacity: 1; }

h1 {
    font-size: 30px;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin: 36px 0 6px;
}

h2 {
    font-size: 19px;
    line-height: 1.3;
    margin: 38px 0 10px;
    letter-spacing: -0.01em;
}

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

.meta {
    font-size: 13px;
    opacity: 0.5;
    margin: 0 0 8px;
}

p, li { font-size: 15.5px; }

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

ul, ol { padding-left: 22px; }

li { margin: 6px 0; }

/* The short human summary that opens every document. The long version below it
   is the one that governs; this box exists so a player who will not read four
   screens of clauses still leaves knowing the substance. */
.summary {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 18px 20px;
    margin: 24px 0 8px;
}

.summary h2 { margin: 0 0 8px; font-size: 15px; text-transform: uppercase; letter-spacing: 0.12em; opacity: 0.55; }

.summary ul { margin: 0; }

table {
    width: 100%;
    border-collapse: collapse;
    margin: 14px 0;
    font-size: 14.5px;
    display: block;
    overflow-x: auto;
}

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

th { font-weight: 600; opacity: 0.75; }

.cards { list-style: none; padding: 0; margin: 26px 0 0; }

.cards li {
    margin: 0 0 12px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface);
}

.cards a {
    display: block;
    padding: 16px 18px;
    text-decoration: none;
    color: var(--ink);
}

.cards strong { display: block; font-size: 16.5px; }

.cards span { display: block; font-size: 14px; opacity: 0.6; margin-top: 2px; }

footer {
    margin-top: 56px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    font-size: 13px;
    opacity: 0.55;
}

footer a { color: inherit; }
