/* Shared by privacy.html and terms.html: the app's colours and type, on a readable paper page. */
:root {
  /* Light only, as the app: browsers that force a dark mode leave the page alone. */
  color-scheme: only light;
  --sky-top: #74c3fb;
  --sky-bottom: #2f86e0;
  --on-sky: #ffffff;
  --on-sky-soft: #e8f4ff;
  --paper: #fffaf0;
  --tear: #e3d3ae;
  --ink: #3a2414;
  --ink-muted: #7a5a3e;
  --accent: #e0662a;
  --placeholder-bg: #ffe39a;
  --font: 'Rubik', system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
}

body {
  min-height: 100vh;
  padding: 32px 16px 40px;
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-bottom) 100%) fixed;
  font-family: var(--font);
  color: var(--ink);
}

.top {
  max-width: 760px;
  margin: 0 auto 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  color: var(--on-sky);
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: inherit;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.75rem;
}

.brand span {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--on-sky-soft);
}

.top nav {
  display: flex;
  gap: 16px;
  font-size: 0.875rem;
}

.top nav a {
  color: var(--on-sky);
}

main {
  max-width: 760px;
  margin: 0 auto;
  padding: 28px 28px 32px;
  background: var(--paper);
  border-radius: 18px;
  filter: drop-shadow(0 1px 1px rgba(10, 40, 90, 0.18)) drop-shadow(0 8px 10px rgba(10, 40, 90, 0.28));
  line-height: 1.6;
  font-size: 1rem;
}

h1 {
  margin: 0 0 4px;
  font-size: 1.75rem;
  font-weight: 800;
}

.updated {
  margin: 0 0 20px;
  padding-bottom: 16px;
  border-bottom: 2px dashed var(--tear);
  font-size: 0.875rem;
  color: var(--ink-muted);
}

h2 {
  margin: 28px 0 8px;
  font-size: 1.1875rem;
  font-weight: 700;
}

h3 {
  margin: 18px 0 4px;
  font-size: 1rem;
  font-weight: 700;
}

p,
ul {
  margin: 0 0 12px;
}

ul {
  padding-left: 22px;
}

li {
  margin-bottom: 4px;
}

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

table {
  width: 100%;
  margin: 8px 0 14px;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

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

th {
  font-weight: 700;
}

/* Something the owner must fill in before publishing. Search the file for class="ph". */
.ph {
  padding: 0 4px;
  border-radius: 4px;
  background: var(--placeholder-bg);
  font-weight: 500;
}

footer {
  max-width: 760px;
  margin: 18px auto 0;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--on-sky-soft);
}

footer a {
  color: var(--on-sky);
}

@media (max-width: 520px) {
  main {
    padding: 22px 18px 26px;
  }

  table,
  thead,
  tbody,
  tr,
  th,
  td {
    display: block;
  }

  thead {
    display: none;
  }

  td {
    padding: 2px 0;
    border: 0;
  }

  tr {
    padding: 8px 0;
    border-bottom: 1px solid var(--tear);
  }

  td:first-child {
    font-weight: 700;
  }
}
