/* history.css — history-policies.html and pdpa.html */
.timeline { list-style: none; padding: 0; display: grid; gap: var(--s2); }
.timeline li { max-width: none; position: relative; overflow: hidden; display: grid; gap: var(--s3) var(--col-gap); background: var(--card); border-radius: var(--r-md); box-shadow: var(--shadow); padding: var(--pad) var(--pad) var(--pad) calc(var(--pad) + 6px); }
.timeline li::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 6px; background: var(--brand-red); }
@media (min-width: 900px) { .timeline li { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: baseline; } .timeline__year { grid-column: 1 / span 5; } .timeline li > div { grid-column: 7 / -1; } }
.timeline__year { font-family: var(--font-display); font-size: var(--t-xl); color: var(--accent); line-height: 1; }
.timeline h3 { font-size: var(--t-md); line-height: 1.25; }
.timeline p { margin-top: var(--s2); color: var(--ink-soft); }

.motto { font-family: var(--font-display); margin-inline: auto; font-size: var(--t-lg); font-weight: 400; line-height: 1.3; max-width: 26ch; }
.motto p { max-width: none; }
.motto footer { margin-top: var(--s4); font-size: var(--t-xs); color: var(--ink-soft); }
.values { display: grid; gap: var(--s2); }
@media (min-width: 600px) { .values { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .values { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.values div { background: var(--card); border-radius: var(--r-md); box-shadow: var(--shadow); padding: var(--pad); }
.values h3 { font-size: var(--t-md); line-height: 1.25; }
.values p { margin-top: var(--s3); color: var(--ink-soft); }
.motto + .values { margin-top: var(--s7); }

@media (min-width: 900px) { .split-5-7 > :first-child { grid-column: 1 / span 5; } .split-5-7 > :last-child { grid-column: 7 / -1; } }
.policies-aside p + p { margin-top: var(--s4); }

/* Legal text */
.prose { max-width: 72ch; }
.prose h2 { font-size: var(--t-lg); margin-top: var(--s8); }
.prose > h2:first-child { margin-top: 0; }
.prose p, .prose ul, .prose .table-wrap { margin-top: var(--s4); }
.prose h2 + p { margin-top: var(--s5); }
.prose ul { padding-left: var(--s5); }
.prose li + li { margin-top: var(--s2); }
.table-wrap { overflow-x: auto; }
.prose table { width: 100%; min-width: 34rem; border-collapse: collapse; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: var(--s3) var(--s4) var(--s3) 0; border-bottom: 2px solid var(--surface-2); }
.prose th { font-weight: 500; }
.toc ol { padding-left: var(--s5); }
.toc li + li { margin-top: var(--s1); }
@media (min-width: 900px) { .toc { position: sticky; top: 7rem; align-self: start; } }

/* Good to know (infographics) and partner logos */
.facts { list-style: none; padding: 0; display: grid; gap: var(--s5) var(--s4); }
@media (min-width: 600px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 64rem; margin-inline: auto; } }
.facts li { max-width: none; }
.facts a { display: block; overflow: hidden; border-radius: var(--r-md); box-shadow: var(--shadow); }
.facts img { width: 100%; height: auto; transition: transform var(--slow) ease; }
.facts a:hover img { transform: scale(1.03); }
.facts figcaption { margin-top: var(--s3); font-weight: 500; text-align: center; }
.partners { list-style: none; padding: 0; display: grid; gap: var(--s2); grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); max-width: 56rem; margin-inline: auto; }
.partners li { max-width: none; display: grid; place-items: center; height: 8rem; padding: var(--s5); background: #fff; border-radius: var(--r-md); box-shadow: var(--shadow); }
.partners img { max-width: 100%; max-height: 4.5rem; width: auto; height: auto; object-fit: contain; }
@media (prefers-reduced-motion: reduce) { .facts img { transition: none; } .facts a:hover img { transform: none; } }

/* Client logo wall (data/clients.json): logos sit on white tiles in both themes */
.clients__group + .clients__group { margin-top: var(--s7); }
.clients__title { display: flex; align-items: baseline; gap: var(--s3); margin-bottom: var(--s4); padding-bottom: var(--s3); border-bottom: 1px solid var(--ink); font-size: var(--t-md); font-weight: 500; }
.clients__title span { font-size: var(--t-xs); font-weight: 400; color: var(--ink-soft); }
.clients { list-style: none; padding: 0; display: grid; gap: var(--s3); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 600px) { .clients { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .clients { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.clients li { max-width: none; }
.clients figure { display: flex; flex-direction: column; height: 100%; margin: 0; }
.clients img { box-sizing: border-box; width: 100%; height: 6.5rem; padding: var(--s4); object-fit: contain; background: #fff; border: 1px solid var(--surface); border-radius: var(--r-md); transition: border-color var(--fast), transform var(--med); }
.clients figure:hover img { border-color: var(--ink); }
.clients figcaption { margin-top: var(--s2); font-size: .75rem; line-height: 1.35; color: var(--ink); }
.clients figcaption span { display: block; color: var(--ink-soft); }

/* Privacy notice: a narrow sticky contents panel beside a readable column, centred as a pair */
.banner__meta { margin: var(--s4) auto 0; font-size: var(--t-xs); color: var(--ink-soft); }
.legal { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s6); }
.legal .prose { max-width: 70ch; }
@media (min-width: 900px) {
  .legal { grid-template-columns: minmax(14rem, 17rem) minmax(0, 70ch); justify-content: center; gap: var(--s8); }
  .legal .toc { padding: var(--s5); }
}
.legal .toc a { text-decoration-color: transparent; }
.legal .toc a:hover { text-decoration-color: currentColor; }
