/* Shared styles for the hosted legal and support pages. Also shown inside the
   app (in-app Safari view), so they follow the device's light/dark setting. */
:root {
  --text: #222;
  --muted: #666;
  --rule: #e2e2e2;
  --panel: #f4f7f8;
  --bg: #fff;
  --teal: #2aa7bf;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #e8e8e8;
    --muted: #a0a0a0;
    --rule: #333;
    --panel: #1d2224;
    --bg: #111;
    --teal: #4cc3d9;
    color-scheme: dark;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: max(24px, env(safe-area-inset-top)) 20px max(24px, env(safe-area-inset-bottom));
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

main,
footer {
  max-width: 680px;
  margin: 0 auto;
}

.brand {
  margin: 0 0 4px;
  color: var(--teal);
  font-weight: 700;
  letter-spacing: 0.02em;
}

h1 {
  margin: 0;
  font-size: 2em;
  line-height: 1.2;
}

.effective {
  margin: 4px 0 28px;
  color: var(--muted);
  font-size: 0.9em;
}

h2 {
  margin: 36px 0 12px;
  font-size: 1.3em;
  line-height: 1.3;
}

h3 {
  margin: 20px 0 8px;
  font-size: 1.05em;
}

p,
ul,
ol {
  margin: 0 0 14px;
}

ul,
ol {
  padding-left: 22px;
}

li {
  margin-bottom: 6px;
}

a {
  color: var(--teal);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.caps {
  text-transform: uppercase;
  font-size: 0.92em;
}

.contact {
  margin: 16px 0;
  padding: 16px 20px;
  background: var(--panel);
  border-radius: 8px;
}

.contact p:last-child {
  margin-bottom: 0;
}

footer {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.85em;
  text-align: center;
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 20px;
  margin-bottom: 8px;
}
