/* Shared legal reader. Source of truth for the bundled App copy.
   Sync/check with: python3 Tests/privacy_and_terms/check_legal.py --sync */
:root {
  color-scheme: dark;
  --legal-background: #050504;
  --legal-text: #fff6e2;
  --legal-secondary: #c9bea6;
  --legal-link: #ffd130;
  --legal-body-weight: 400;
  --legal-text-scale: 1;
}

* { box-sizing: border-box; }

html {
  background: var(--legal-background);
  font-size: calc(100% * var(--legal-text-scale));
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--legal-background);
  color: var(--legal-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.0625rem;
  font-weight: var(--legal-body-weight);
  line-height: 1.55;
}

.legal-page {
  width: 100%;
  max-width: 720px; /* 680px text column + two 20px gutters. */
  margin-inline: auto;
  padding: 16px 20px max(24px, env(safe-area-inset-bottom));
  overflow-wrap: anywhere;
}

.legal-title { margin: 0 0 24px; }

.legal-page h1 {
  margin: 0;
  font-size: 1.625rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: normal;
  text-align: start;
}

.legal-page .updated {
  margin: 8px 0 0;
  color: var(--legal-secondary);
  font-size: .875rem;
  line-height: 1.45;
}

.legal-page .section { margin: 0; }
.legal-page .section + .section { margin-top: 28px; }

.legal-page h2 {
  margin: 0 0 8px;
  color: var(--legal-text);
  font-size: 1.1875rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: normal;
}

.legal-page p { margin: 0 0 12px; }
.legal-page .section > :last-child { margin-bottom: 0; }
.legal-page strong { font-weight: 700; }

.legal-page ul {
  margin: 12px 0;
  padding-inline-start: 24px;
}

.legal-page li { margin: 0 0 8px; }
.legal-page li:last-child { margin-bottom: 0; }

.legal-page a {
  color: var(--legal-link);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: .18em;
  text-decoration-thickness: .06em;
}

.legal-page a:focus-visible {
  outline: 2px solid var(--legal-link);
  outline-offset: 4px;
  border-radius: 2px;
}

.legal-page .online-link { margin: 24px 0 0; }
.legal-page .online-link a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-block: 8px;
  font-size: 1rem;
}

.legal-page .legal-footer {
  margin-top: 24px;
  color: var(--legal-secondary);
  font-size: .875rem;
  line-height: 1.45;
}

@media (max-width: 360px) {
  .legal-page { padding-inline: 16px; }
}
