/* css/kees-pages.css — one scale for the reading pages built on top of css/style.css: how-to-play, subscribe, 404.
   Values taken from the site's own pages: body 16px / line 1.8 and a 20px gutter (terms.php), 20px card corners and
   padding (dashboard cards), section titles 22px (terms h2 24px on a wide screen), notes 14px (terms dates, help texts). */
:root {
    --k-gutter: 20px;        /* page side margin */
    --k-pad: 20px;           /* card padding */
    --k-radius: 20px;        /* card corners */
    --k-gap: 16px;           /* space between cards / blocks */
    --k-title: 28px;         /* page title (h1) */
    --k-h2: 22px;            /* section title */
    --k-body: 16px;          /* body text */
    --k-small: 14px;         /* notes, descriptions, chips */
    --k-lh: 1.8;             /* body line height */
    --k-lh-small: 1.7;       /* note line height */
}
/* k11: the same scale one step up on the tablet and the desktop (gutter 16 / 32 / 48 as css/style.css) */
:root { --k-gutter: 16px; }
@media (min-width: 768px) {
    :root { --k-gutter: 32px; --k-pad: 24px; --k-gap: 20px; --k-title: 32px; --k-h2: 24px; --k-body: 17px; }
}
@media (min-width: 1100px) {
    :root { --k-gutter: 48px; --k-pad: 28px; --k-gap: 24px; --k-title: 36px; --k-h2: 26px; }
}
body.kp { margin: 0; background: var(--background); color: var(--text); }
.kp-wrap { max-width: 760px; margin: 0 auto; padding: 16px var(--k-gutter) 40px; }

/* header row: logo + the language switch (here it scrolls away with the page instead of floating over the text) */
.kp-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: var(--k-gap); }
.kp-top .lang-toggle { position: static; flex: none; }
.kp-logo { display: block; flex: none; }
.kp-logo img { display: block; width: 56px; height: 56px; }

.kp-title { margin: 0 0 8px; font-size: var(--k-title); font-weight: 800; line-height: 1.4; color: var(--secondary); }
.kp-lead { margin: 0 0 12px; font-size: var(--k-body); line-height: var(--k-lh); }
.kp-card { margin-top: var(--k-gap); padding: var(--k-pad); border-radius: var(--k-radius); background: white; box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06); scroll-margin-top: 16px; }
.kp-card h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: var(--k-h2); font-weight: 800; line-height: 1.4; color: var(--secondary); }
.kp-card h2 .ki { margin: 0; color: var(--primary); }
.kp-card p { margin: 0 0 12px; font-size: var(--k-body); line-height: var(--k-lh); }
.kp-card p:last-child { margin-bottom: 0; }
.kp-small, .kp-card p.kp-small { font-size: var(--k-small); line-height: var(--k-lh-small); opacity: .8; }

/* one quiet link style: the link is the short action, never a whole sentence */
.k-link { color: var(--primary); font-weight: 700; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.k-link:hover { color: var(--secondary); }
.kp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin-top: 12px; font-size: var(--k-body); line-height: var(--k-lh); }
.kp-actions .k-link { display: inline-flex; align-items: center; min-height: 44px; }

/* buttons in the site's look (same as the home page / dashboard buttons) */
.k-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 50px; background: var(--primary); color: white; font-size: var(--k-body); font-weight: 800; text-decoration: none; }
.k-btn.alt { background: white; color: var(--secondary); border: 2px solid var(--secondary); }
.k-btn .ki { margin: 0; }

.kp-foot { padding: 24px var(--k-gutter) 32px; text-align: center; font-size: var(--k-small); opacity: .7; }
.kp-foot a { color: inherit; }
