/* Everflow legal + support pages.
   Deliberately one small stylesheet with no build step: these pages have to
   stay readable and reachable for as long as the app is on the App Store. */

:root {
  --bg: #f1f1ed;
  --card: #ffffff;
  --ink: #1d1d1d;
  --secondary: #6a6a6a;
  --outline: #e2e2e2;
  --accent: #111111;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141414;
    --card: #1c1c1c;
    --ink: #f2f2f0;
    --secondary: #a3a3a0;
    --outline: #2e2e2e;
    --accent: #f2f2f0;
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  padding: 0 20px 80px;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
}

header.site {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: baseline;
  justify-content: space-between;
  padding: 32px 0 24px;
  border-bottom: 1px solid var(--outline);
}

header.site a.wordmark {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: 24px;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-decoration: none;
}

nav.lang a,
nav.docs a {
  color: var(--secondary);
  text-decoration: none;
  font-size: 14px;
  margin-left: 16px;
}

nav.lang a:hover,
nav.docs a:hover,
main a:hover {
  text-decoration: underline;
}

nav.lang a[aria-current="true"] {
  color: var(--ink);
}

h1 {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: 34px;
  line-height: 1.15;
  font-weight: 500;
  margin: 40px 0 8px;
}

h2 {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 500;
  margin: 40px 0 8px;
}

p.meta {
  color: var(--secondary);
  font-size: 14px;
  margin: 0 0 8px;
}

main p,
main li {
  color: var(--ink);
}

main a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

ul {
  padding-left: 22px;
}

li {
  margin: 6px 0;
}

.card {
  background: var(--card);
  border: 1px solid var(--outline);
  border-radius: 18px;
  padding: 20px 22px;
  margin: 24px 0;
}

.card h2 {
  margin-top: 0;
}

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

.scroll {
  overflow-x: auto;
}

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

th {
  color: var(--secondary);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

footer.site {
  margin-top: 56px;
  padding-top: 20px;
  border-top: 1px solid var(--outline);
  color: var(--secondary);
  font-size: 14px;
}

footer.site a {
  color: var(--secondary);
}
