/* Privacy policy and support pages, served as static files next to the web app.
   Same colours as src/components/theme.ts. System fonts only, so the pages load
   nothing from other servers. */

:root {
  --accent: #3b4c86;
  --ground: #fdfbf6;
  --card: #ffffff;
  --line: #ece5d6;
  --ink: #2f2a22;
  --muted: #6b6252;
  --story: #e07a66;
  --morning: #fff6e8;
  --sun: #e8a93a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-text-size-adjust: 100%;
}

main {
  max-width: 680px;
  margin: 0 auto;
  padding: 32px 16px 64px;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 40px;
  font-size: 15px;
}

nav .brand {
  font-family: 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  font-size: 22px;
  color: var(--ink);
  text-decoration: none;
}

h1,
h2 {
  font-family: 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  font-weight: 400;
  line-height: 1.2;
}

h1 {
  font-size: 40px;
  margin: 0 0 8px;
}

h2 {
  font-size: 26px;
  margin: 40px 0 8px;
}

h3 {
  font-size: 17px;
  margin: 24px 0 4px;
}

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

ul {
  padding-left: 20px;
}

li {
  margin-bottom: 6px;
}

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

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

.card {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 16px 20px;
  margin: 24px 0;
}

.card p:last-child,
.card ul:last-child {
  margin-bottom: 0;
}

.dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: -1px;
  border: 1px solid var(--line);
}

.dot.story {
  background: var(--story);
}

.dot.sleep {
  background: var(--accent);
}

.dot.morning {
  background: var(--morning);
}

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

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

th {
  font-weight: 600;
}

@media (max-width: 520px) {
  h1 {
    font-size: 32px;
  }

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

  thead {
    display: none;
  }

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

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

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