/* Terms and privacy. A reading column, not a product page.
   Deliberately plain: these are documents somebody has to be able to read
   and quote back at you, so the typography serves length and scanning
   rather than persuasion. */

:root {
  --blue: #0b5cf6;
  --blue-dark: #084bd0;
  --ink: #07112f;
  --text: #18213b;
  --muted: #637091;
  --line: #d9e1ee;
  --page: #f8faff;
}

* { box-sizing: border-box; }

html { min-width: 320px; background: var(--page); }

body {
  margin: 0;
  color: var(--text);
  background: var(--page);
  font-family: "Public Sans", system-ui, -apple-system, BlinkMacSystemFont,
               "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-underline-offset: 2px; }

.site-header {
  height: 66px;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--line);
}

.header-inner, .footer-inner, .legal {
  width: min(760px, calc(100% - 44px));
  margin: 0 auto;
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  color: var(--ink);
  text-decoration: none;
  font-family: Fraunces, Georgia, serif;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -.035em;
  white-space: nowrap;
}

.brand span { color: var(--blue); }

.header-inner nav a {
  margin-left: 20px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}

.header-inner nav a:hover { color: var(--blue); }

.legal { padding: 44px 0 64px; }

h1 {
  margin: 0 0 6px;
  color: var(--ink);
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(34px, 5vw, 44px);
  line-height: 1.06;
  letter-spacing: -.04em;
}

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

h2 {
  margin: 38px 0 10px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-family: Fraunces, Georgia, serif;
  font-size: 22px;
  letter-spacing: -.02em;
}

h3 {
  margin: 24px 0 6px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
}

p, li { margin: 0 0 13px; }

ul { margin: 0 0 13px; padding-left: 22px; }

li::marker { color: #9aa5bd; }

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

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

th { background: #f2f6ff; font-weight: 700; }

/* Something the owner must fill in before this is published. Loud on
   purpose - a placeholder that ships is worse than no document. */
.fill-in {
  padding: 2px 6px;
  border-radius: 4px;
  background: #fff3cd;
  color: #7a5b12;
  font-weight: 700;
}

.callout {
  margin: 0 0 18px;
  padding: 14px 16px;
  border: 1px solid #cfe0ff;
  border-radius: 9px;
  background: #f5f8ff;
  color: #2c3a5c;
  font-size: 15px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #fff;
}

.footer-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 13px;
  flex-wrap: wrap;
}

.footer-inner a { color: var(--muted); text-decoration: none; }
.footer-inner a:hover { color: var(--blue); }
.footer-links a { margin-left: 18px; }

@media (max-width: 640px) {
  body { font-size: 15px; }
  .legal { padding: 30px 0 44px; }
  h2 { margin-top: 30px; font-size: 20px; }
  .footer-inner { padding: 18px 0; }
  .footer-links a { margin: 0 16px 0 0; }
}

/* ------------------------------------------------------------- status
   404 and 500. They share the legal pages' frame because it is the one
   stylesheet that assumes nothing - no account, no plan, no session -
   which is exactly the situation an error page is in. */

.status {
  width: min(560px, calc(100% - 44px));
  margin: 0 auto;
  padding: 72px 0 90px;
  text-align: center;
}

.status-code {
  margin: 0 0 6px;
  color: #b9c4da;
  font-family: Fraunces, Georgia, serif;
  font-size: 64px;
  line-height: 1;
  letter-spacing: -.04em;
}

.status h1 {
  margin: 0 0 10px;
  font-size: clamp(28px, 5vw, 36px);
}

.status p {
  margin: 0 auto 26px;
  max-width: 44ch;
  color: var(--muted);
}

.status-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.status-actions a {
  min-height: 46px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 9px;
  text-decoration: none;
  font-weight: 700;
}

.status-actions .primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 8px 20px rgba(11, 92, 246, .2);
}

.status-actions .primary:hover { background: var(--blue-dark); }

.status-actions .secondary {
  background: #fff;
  color: var(--text);
  border-color: #c9d4e5;
}

.status-actions .secondary:hover { border-color: #aebbd1; }

@media (max-width: 640px) {
  .status { padding: 48px 0 60px; }
  .status-code { font-size: 52px; }
  .status-actions a { width: 100%; justify-content: center; }
}
