/*
 * Snoozle's legal pages (docs/superpowers/specs/2026-10-19-legal-site-design.md § 5): Foundations'
 * colours, the funnel's in light and the app's in dark, by the system's choice.
 */

:root {
  color-scheme: light dark;
  --ground: #f4f2fb; /* surface/page */
  --text: #171425; /* text/primary */
  --muted: #6b6785; /* text/muted */
  --link: #5b44e0; /* accent/default */
  --wordmark: #5b44e0; /* accent/default */
  --rule: #e3dff2; /* border/default */
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #241e4f; /* surface/dusk */
    --text: #f4f2fb; /* text/on-dusk */
    --muted: rgb(244 242 251 / 64%); /* text/on-dusk at 64 % */
    --link: #b3a8ff; /* not Foundations': accent/default is 2.4 : 1 on dusk, this 7.2 : 1 */
    --wordmark: #f2a65a; /* expressive/warm */
    --rule: rgb(244 242 251 / 10%); /* text/on-dusk at 10 % */
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: -apple-system, system-ui, sans-serif;
  font-size: 17px;
  line-height: 26px;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

.page {
  max-width: calc(680px + 2 * 16px);
  margin: 0 auto;
  padding: 24px 16px 48px;
}

a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 2px;
  overflow-wrap: anywhere;
}

.wordmark {
  color: var(--wordmark);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none;
}

h1 {
  margin: 32px 0 8px;
  font-size: 28px;
  line-height: 34px;
  font-weight: 700;
}

/* The root page's heading is the wordmark itself. */
h1.wordmark {
  margin-top: 0;
  font-size: 28px;
  line-height: 34px;
}

h2 {
  margin: 32px 0 8px;
  font-size: 21px;
  line-height: 28px;
  font-weight: 700;
}

h3 {
  margin: 24px 0 4px;
  font-size: 17px;
  line-height: 26px;
  font-weight: 700;
}

p,
ul {
  margin: 12px 0;
}

ul {
  padding-left: 22px;
}

li + li {
  margin-top: 6px;
}

.updated {
  color: var(--muted);
}

.table {
  margin: 16px 0;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 8px 16px 8px 0;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
}

th {
  border-bottom-color: var(--muted);
}

.footer {
  margin-top: 48px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 15px;
  line-height: 22px;
}

.footer p {
  margin: 8px 0;
}

.documents {
  padding: 0;
  list-style: none;
}

/* Each document's link is a 44 px target, as a button is on iPhone. */
.documents li {
  margin: 0;
}

.documents a {
  display: inline-block;
  padding: 9px 0;
}
