/* =============================================================================
   Standalone pages — /about/, /editorial-policy/, /support/, /privacyPolicy/,
   /terms/ and the 404. Copied to docs/pages.css by tools/pages/build.mjs.
   =============================================================================
   Running text on the home's warm paper, under the site's shared header and
   footer (/chrome.css). The class names are the ones these hand-written pages
   already use; only how they look lives here. */

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; scroll-padding-top: 96px; }
body {
    font-family: var(--font-body);
    background: #FCFAF7;
    color: var(--ink);
    line-height: 1.7;
    overflow-x: clip;
}
:focus-visible { outline: 2.5px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

.container { max-width: 720px; margin: 0 auto; padding: 132px 1.5rem 5.5rem; }
.back { display: none; }

.container h1 {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5.2vw, 3.3rem);
    font-weight: 800; letter-spacing: -0.045em; line-height: 1.04;
    margin-bottom: .7rem; text-wrap: balance;
}
.subtitle, .updated { color: var(--ink-3); font-size: 1rem; margin-bottom: 2.4rem; }
.updated { font-size: .9rem; }
.lede { color: var(--ink-2); font-size: 1.1rem; line-height: 1.7; margin-bottom: 2rem; }

.container h2 {
    font-family: var(--font-display);
    font-size: 1.4rem; font-weight: 750; letter-spacing: -0.025em; line-height: 1.25;
    margin: 2.6rem 0 .8rem; color: var(--ink);
    scroll-margin-top: 110px;
}
.container h2 .num { color: var(--ink-3); font-weight: 600; margin-inline-end: .45rem; }
.container h3 { font-size: 1.05rem; font-weight: 650; margin: 1.6rem 0 .5rem; color: var(--ink); }
.container p { color: var(--ink-2); font-size: 1rem; margin-bottom: 1rem; }
.container ul, .container ol { color: var(--ink-2); font-size: 1rem; padding-inline-start: 1.25rem; margin-bottom: 1rem; }
.container li { margin-bottom: .45rem; }
.container strong { color: var(--ink); font-weight: 650; }
.container a { color: var(--brand-ink); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; overflow-wrap: anywhere; }
.container a:hover { color: var(--ink); }
.caps { color: var(--ink-2); font-size: .95rem; letter-spacing: .01em; }
:lang(ar) .container h1, :lang(ja) .container h1, :lang(zh-Hans) .container h1, :lang(ko) .container h1 { letter-spacing: 0; }

.divider { height: 1px; background: var(--line-2); margin: 2.4rem 0; }

/* Cards: a white tile on paper, as everywhere else on the site */
.note, .callout, .not-collected, .toc, .store-card, .contact-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 18px;
}
.note { padding: 1.15rem 1.3rem; margin: 2rem 0; border-inline-start: 3px solid #FF9E1F; }
.note p:last-child, .callout p:last-child { margin-bottom: 0; }
.callout, .not-collected { padding: 1.2rem 1.4rem; margin-bottom: 1rem; }
.not-collected ul { margin-bottom: 0; padding-inline-start: 1rem; }
.not-collected li { margin-bottom: .35rem; }
.not-collected li::marker { color: #E8433F; }

/* At a glance — the plain-language summary */
.glance {
    background: #E7F7EC; border: 1px solid rgba(28, 135, 67, .18);
    border-radius: 20px; padding: 1.5rem 1.7rem; margin-bottom: 2.4rem;
}
.glance-title { font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #1C8743; margin-bottom: 1rem; }
.glance-items { display: flex; flex-direction: column; gap: .6rem; }
/* A line of running text with its tick hung in the margin — not a flex row,
   which turns every link inside the line into a column of its own. */
.glance-item { position: relative; padding-inline-start: 1.6rem; color: var(--ink); font-size: .97rem; }
.glance-item .check { position: absolute; inset-inline-start: 0; top: 0; color: #1C8743; font-weight: 700; }
.glance-note { color: var(--ink-2); font-size: .85rem; margin-top: 1rem; }

/* The medical warning on the terms: first thing on the page, styled to look it */
.warning {
    background: #FFF0EF; border: 1px solid rgba(232, 67, 63, .28);
    border-radius: 20px; padding: 1.5rem 1.7rem; margin-bottom: 2rem;
}
.warning-title { font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #C8262B; margin-bottom: .9rem; }
.warning p { color: var(--ink); margin-bottom: .75rem; }
.warning p:last-child { margin-bottom: 0; }

/* Table of contents */
.toc { padding: 1.3rem 1.5rem; margin-bottom: 2.4rem; }
.toc-title { font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: .85rem; }
.toc ol { list-style: none; counter-reset: toc; columns: 2; column-gap: 1.5rem; padding: 0; margin: 0; }
.toc li { counter-increment: toc; break-inside: avoid; margin-bottom: .3rem; font-size: .9rem; }
.toc li::before { content: counter(toc) "."; color: var(--ink-3); margin-inline-end: .4rem; }
.toc a { color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--brand-ink); text-decoration: underline; }
@media (max-width: 560px) { .toc ol { columns: 1; } }

/* Tables */
.table-wrap { overflow-x: auto; margin-bottom: 1.25rem; background: var(--card); border: 1px solid var(--line); border-radius: 16px; }
table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: .9rem; }
th, td { text-align: start; padding: .75rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--ink-3); font-weight: 700; font-size: .74rem; letter-spacing: .04em; text-transform: uppercase; background: #FBF8F4; }
td { color: var(--ink-2); }
tr:last-child td { border-bottom: none; }

/* Platform tags — the same tints as the home's chips */
.tag { display: inline-block; padding: .12rem .5rem; border-radius: 6px; font-size: .7rem; font-weight: 700; letter-spacing: .02em; vertical-align: middle; margin-inline-end: .3rem; }
.tag-ios { background: #E1ECFF; color: #1460D2; }
.tag-android { background: #DDF2E4; color: #1C8743; }
.tag-web { background: #FCE9DC; color: #C4520C; }

/* Store cards on the privacy policy */
.store-row { display: flex; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.store-card { flex: 1; min-width: 200px; padding: 1.1rem 1.25rem; }
.store-card-title { font-size: .82rem; font-weight: 700; color: var(--ink); margin-bottom: .45rem; }
.store-card p { font-size: .9rem; margin-bottom: 0; }

/* Support: contact card and FAQ */
.contact-card {
    padding: 1.6rem 1.75rem; margin-bottom: 3rem;
    display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
    box-shadow: 0 24px 50px -36px rgba(70, 30, 10, .35);
}
.contact-card-text h2 { font-size: 1.2rem; margin: 0 0 .3rem; }
.contact-card-text p { margin: 0; font-size: .95rem; }
a.email-btn {
    display: inline-flex; align-items: center; gap: .5rem;
    height: 46px; padding: 0 1.3rem; border-radius: 999px;
    background: var(--ink); color: #fff; text-decoration: none;
    font-weight: 650; font-size: .95rem; white-space: nowrap;
    transition: transform .2s var(--ease);
}
a.email-btn:hover { color: #fff; transform: translateY(-1px); }
.faq-section-title { font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin: 2.2rem 0 .6rem; }
.faq-section-title:first-of-type { margin-top: 0; }
.faq-item { border-bottom: 1px solid var(--line); padding: 1.05rem 0; }
.faq-item:last-child { border-bottom: none; }
.faq-q {
    font-size: 1rem; font-weight: 650; color: var(--ink); cursor: pointer;
    display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem;
    -webkit-user-select: none; user-select: none;
}
.faq-q:hover { color: var(--brand-ink); }
.faq-q .chevron { color: var(--ink-3); font-size: .8rem; flex-shrink: 0; margin-top: .25rem; transition: transform .25s var(--ease); }
.faq-item.open .chevron { transform: rotate(180deg); }
.faq-a { display: none; padding-top: .65rem; color: var(--ink-2); font-size: .97rem; line-height: 1.7; }
.faq-item.open .faq-a { display: block; }

/* About / editorial policy: links to the neighbouring pages */
.page-nav { display: flex; flex-wrap: wrap; gap: 1.25rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line-2); font-size: .95rem; }

/* 404 */
.not-found { text-align: center; padding-top: 160px; }
.not-found .code {
    font-family: var(--font-display); font-weight: 800; font-size: clamp(6rem, 18vw, 10rem); line-height: .9; letter-spacing: -0.06em;
    background: linear-gradient(100deg, #EE3F1C 0%, #F6652C 42%, #FF9E1F 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}
.not-found p { margin-bottom: 2rem; }
.not-found img { width: 120px; height: auto; margin: 0 auto 1.2rem; display: block; }
.links { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; }
a.btn-primary, a.btn-secondary {
    display: inline-flex; align-items: center; height: 46px; padding: 0 1.3rem; border-radius: 999px;
    font-weight: 650; font-size: .95rem; text-decoration: none;
}
a.btn-primary { background: var(--ink); color: #fff; }
a.btn-primary:hover { color: #fff; }
a.btn-secondary { background: var(--card); color: var(--ink); border: 1px solid var(--line-2); }

@media (max-width: 480px) {
    .container { padding-top: 116px; overflow-wrap: break-word; }
    .contact-card { flex-direction: column; align-items: flex-start; }
}
