:root {
  --bg: #faf7f2;
  --card: #ffffff;
  --text: #1c1917;
  --muted: #57534e;
  --faint: #a8a29e;
  --indigo: #4338ca;
  --indigo-soft: #eef0ff;
  --border: #ebe5da;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

/* Soft indigo glow at the top, like the app's home screen. */
body {
  background:
    radial-gradient(ellipse 90% 50% at 50% -10%, rgba(67, 56, 202, 0.12), transparent 70%),
    var(--bg);
  background-attachment: fixed;
  display: flex;
  flex-direction: column;
}

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

/* Header + footer shared by every page */

.site-header {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 20px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-header .logo img {
  display: block;
  height: 34px;
  width: auto;
}

.site-nav {
  display: flex;
  gap: 4px;
}

.site-nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 15px;
  padding: 6px 12px;
  border-radius: 999px;
}

.site-nav a:hover {
  color: var(--text);
  background: rgba(67, 56, 202, 0.06);
}

.site-nav a[aria-current="page"] {
  color: var(--indigo);
  background: var(--indigo-soft);
}

.site-footer {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 16px 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  font-size: 13px;
  color: var(--faint);
}

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

main {
  flex: 1;
}

/* Legal pages */

.wrap {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 8px 16px 0;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 36px 28px;
  box-shadow: 0 1px 2px rgba(28, 25, 23, 0.04), 0 12px 32px rgba(28, 25, 23, 0.04);
}

h1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(30px, 6vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}

h2 {
  font-size: 17px;
  font-weight: 650;
  margin: 32px 0 6px;
}

p,
li {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

p {
  margin: 0 0 12px;
}

ul {
  margin: 8px 0 12px 20px;
  padding: 0;
}

li {
  margin-bottom: 6px;
}

strong {
  color: var(--text);
  font-weight: 600;
}

.muted {
  color: var(--faint);
  font-size: 14px;
  margin-bottom: 24px;
}

@media (max-width: 520px) {
  .card {
    padding: 28px 20px;
    border-radius: 20px;
  }
}
