/* Shared by every page of talemo.app. Plain static files on Cloudflare Pages
   (project talemo-site), not the product's React: Meta's reviewer and its
   crawler must get real HTML on a cold request. The source lives in the stub
   repository, site/; how to publish is in its README. */

/* Light only, deliberately. logo-light.svg draws the "Talemo" wordmark with a
   hardcoded fill="#000000" and only the tile in brand amber, so on a dark
   ground the name vanishes and the mark floats alone. There is no dark variant
   of the file. A legal page that must survive a reviewer's screenshot is the
   wrong place to gamble on that, and single-look legal pages are unremarkable.
   color-scheme pins scrollbars and controls to light too. */
:root {
    color-scheme: light;
    --accent: #b44900; /* primary-text of the product theme: amber that holds AA as text (242) */
    --fg: #16161a;
    --fg-muted: #55555f;
    --bg: #ffffff;
    --bg-soft: #f7f7fa;
    --rule: #e4e4ec;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--fg);
    font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

header.site {
    border-bottom: 1px solid var(--rule);
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

header.site a { display: inline-flex; align-items: center; }
header.site img { height: 30px; width: auto; }

/* Language of the site (TAL-287): a plain <details>, links inside, no script. The markup is printed by
   landing/src/legal.ts between the talemo:legal-header marks. Same look as the language in the landing's top bar:
   a link, not a button. Own language is marked and is not a link; a language this page does not exist in leads to
   its home page and says so under its name. */
header.site .lang { position: relative; font-size: 14.5px; }
header.site .lang > summary {
    display: flex;
    align-items: center;
    gap: 5px;
    list-style: none;
    cursor: pointer;
    white-space: nowrap;
    color: var(--fg);
    border-radius: 6px;
}
header.site .lang > summary::-webkit-details-marker { display: none; }
header.site .lang svg { flex-shrink: 0; }
header.site .pop {
    position: absolute;
    top: 34px;
    right: -12px;
    z-index: 5;
    min-width: 200px;
    padding: 6px;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    border: 1px solid var(--rule);
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(22, 22, 26, 0.14);
    font-size: 15px;
}
header.site .pop > * {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--fg);
    text-decoration: none;
}
header.site .pop a:hover { background: var(--bg-soft); }
header.site .pop .sel { background: var(--bg-soft); font-weight: 600; }
header.site .pop a > span { display: flex; flex-direction: column; }
header.site .pop i {
    font-style: normal;
    font-size: 12.5px;
    line-height: 1.35;
    color: var(--fg-muted);
    max-width: 210px;
    margin-top: 2px;
}

main {
    max-width: 760px;
    margin: 0 auto;
    padding: 48px 24px 72px;
}

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

h1 + .updated {
    color: var(--fg-muted);
    font-size: 14px;
    margin: 0 0 40px;
}

h2 {
    font-size: 22px;
    letter-spacing: -0.01em;
    margin: 44px 0 12px;
    padding-top: 20px;
    border-top: 1px solid var(--rule);
}

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

p, li { color: var(--fg); }
ul { padding-left: 22px; }
li { margin: 6px 0; }

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

strong { font-weight: 600; }

.note {
    background: var(--bg-soft);
    border-left: 3px solid var(--accent);
    padding: 14px 18px;
    margin: 22px 0;
    border-radius: 0 6px 6px 0;
}

.note p { margin: 0; }

dl.entity {
    background: var(--bg-soft);
    border: 1px solid var(--rule);
    border-radius: 8px;
    padding: 18px 20px;
    margin: 22px 0;
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 6px 20px;
}

dl.entity dt { color: var(--fg-muted); font-size: 14px; }
dl.entity dd { margin: 0; }

/* The table of purposes and legal bases in the Privacy Policy (TAL-81). */
table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--rule); }
th { color: var(--fg-muted); font-weight: 600; font-size: 14px; }
td:first-child { width: 62%; }

code { font-size: 14px; background: var(--bg-soft); padding: 1px 5px; border-radius: 4px; }

footer.site {
    border-top: 1px solid var(--rule);
    padding: 28px 24px 48px;
    color: var(--fg-muted);
    font-size: 14px;
}

footer.site div { max-width: 760px; margin: 0 auto; }
footer.site nav { margin-top: 10px; display: flex; gap: 18px; flex-wrap: wrap; }

@media (max-width: 560px) {
    h1 { font-size: 28px; }
    dl.entity { grid-template-columns: 1fr; gap: 2px; }
    dl.entity dt { margin-top: 10px; }
    th, td { padding: 8px 6px; }
    td:first-child { width: auto; }
}
