/* Shared stylesheet for the legal pages (privacy, terms, refund, credits). Plain on purpose. */
html { background: #fff; color: #000; }
body {
  margin: 0 auto;
  padding: 24px 16px 64px;
  max-width: 70ch;
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: #fff;
  color: #000;
}
a { color: #0645ad; }
a:visited { color: #0645ad; }
h1 { font-size: 1.75rem; line-height: 1.25; margin: 1.5rem 0 0.25rem; }
h2 { font-size: 1.15rem; line-height: 1.3; margin: 2rem 0 0.5rem; }
p, ul, ol { margin: 0 0 0.9rem; }
ul, ol { padding-left: 1.4rem; }
li { margin-bottom: 0.35rem; }
.back { margin: 0; }
.updated { color: #555; margin-bottom: 1.5rem; }
.small { color: #555; font-size: 0.9rem; }

/* Press page (press.html): fact table and plain picture grids. */
h3 { font-size: 1rem; line-height: 1.3; margin: 1.25rem 0 0.35rem; }
.facts { border-collapse: collapse; width: 100%; margin: 0 0 0.9rem; }
.facts th, .facts td { text-align: left; vertical-align: top; padding: 0.45rem 0.75rem 0.45rem 0; border-top: 1px solid #ddd; }
.facts th { width: 8.5rem; font-weight: 600; }
.facts td { overflow-wrap: anywhere; }
.shots { list-style: none; padding: 0; margin: 0 0 0.9rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 1rem; }
.shots li { margin: 0; color: #555; font-size: 0.9rem; line-height: 1.4; }
.shots img { display: block; width: 100%; height: auto; margin-bottom: 0.35rem; }
.logos img { aspect-ratio: 3 / 2; object-fit: contain; background: #e9ebee; padding: 0.75rem; box-sizing: border-box; }
.press-photo { margin: 0 0 0.9rem; }
.press-photo img, .press-video { display: block; width: 100%; height: auto; }
.press-photo figcaption { color: #555; font-size: 0.9rem; margin-top: 0.35rem; }
@media (max-width: 480px) {
  .shots:not(.logos) { grid-template-columns: 1fr; }
  .facts th { width: 6.5rem; }
}

/* Press page, bilingual (25 Oct). Both languages are in the markup; html.l-fi shows Finnish, otherwise English
   (also without JS and in print). */
html:not(.l-fi) body [lang="fi"], html.l-fi body [lang="en"] { display: none !important; }
html:not(.js) .lang-switch, html:not(.js) .copy { display: none; }
.press-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.lang-switch { margin: 0; display: flex; align-items: center; gap: 0.15rem; color: #555; }
.lang-switch button { font: inherit; font-weight: 600; min-width: 44px; min-height: 44px; padding: 0 0.5rem; border: 0; background: none;
  color: #0645ad; text-decoration: underline; cursor: pointer; }
.lang-switch button[aria-pressed="true"] { color: #000; text-decoration: none; }
.press .lead { font-size: 1.15rem; line-height: 1.45; }
.toc { display: flex; flex-wrap: wrap; gap: 0 1rem; margin: 0 0 0.5rem; padding: 0.5rem 0; border-top: 1px solid #ddd; border-bottom: 1px solid #ddd; }
.toc a { display: inline-block; padding: 0.55rem 0; }
.btn-dl, .copy { display: inline-flex; align-items: center; min-height: 44px; box-sizing: border-box; padding: 0 1rem; border: 1px solid #0645ad;
  border-radius: 4px; background: #fff; color: #0645ad; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn-dl:hover, .copy:hover { background: #f2f5fb; }
.desc { margin: 0 0 1.25rem; padding: 0.25rem 0 0 1rem; border-left: 3px solid #ddd; }
.desc-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.desc-head h3 { margin: 0; }
.desc-text p { margin: 0.5rem 0; }
.shots li > span, .logos li > span { display: block; }
.shots li > span.small { display: inline; }
.shots .dl { display: inline-block; padding: 0.6rem 0 0.4rem; }
.press-photo .dl { display: inline-block; padding: 0.6rem 0 0.4rem; }
.press h2 { scroll-margin-top: 0.75rem; }
@media print { .lang-switch, .toc, .copy, .press-video { display: none !important; } }

/* Performance help page (help-performance.html, 31 Oct): addresses and file paths to type, a jump list. */
.help code { font: 0.9em/1.4 ui-monospace, "Cascadia Mono", Consolas, Menlo, monospace; background: #f1f2f4; padding: 0.05em 0.3em; border-radius: 3px; overflow-wrap: anywhere; }
.help h2 { scroll-margin-top: 0.75rem; }
.help li > ol { margin: 0.4rem 0 0.4rem; }
