/* Legal pages for Peak Pocket Studios apps, styled after peakpocketstudios.com. */
:root {
  --ink: #232635;
  --muted: #6e7180;
  --line: #eaeaea;
  --panel: #f3f3f7;
  --accent: #00a9b0;
  --background: #ffffff;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #eaeaea;
    --muted: #a3a6b4;
    --line: #2e3142;
    --panel: #1a1c26;
    --accent: #00c9d2;
    --background: #0f1016;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font: 16px/1.65 Poppins, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

header,
main,
footer {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 28px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

header a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

h1 {
  margin: 32px 0 4px;
  font-size: 30px;
  line-height: 1.25;
}

h2 {
  margin: 36px 0 8px;
  font-size: 20px;
}

h3 {
  margin: 24px 0 6px;
  font-size: 16px;
}

p,
li {
  margin: 8px 0;
}

a {
  color: var(--accent);
}

.updated {
  color: var(--muted);
  font-size: 14px;
}

.summary {
  margin: 24px 0;
  padding: 16px 20px;
  border-radius: 14px;
  background: var(--panel);
}

table {
  width: 100%;
  margin: 12px 0;
  border-collapse: collapse;
  font-size: 15px;
}

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

th {
  font-weight: 600;
}

.table-scroll {
  overflow-x: auto;
}

/* Details the owner still has to fill in before publishing. */
.todo {
  padding: 0 4px;
  border-radius: 4px;
  background: #fff3a6;
  color: #232635;
}

footer {
  margin-top: 48px;
  padding-top: 16px;
  padding-bottom: 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}
