/* Shared by terms.html and privacy.html. Tokens, background and easing mirror
   index.html so the legal pages read as part of the same product. */
:root {
  --bg: #f5f9ff;
  --ink: #0a0a0a;
  --muted: rgba(10, 10, 10, .72);
  --hairline: rgba(10, 10, 10, .12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* rounded type only for brand, pills and footer; body copy keeps the body font */
.brand, .eyebrow, .num, .footer {
  font-family: ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  background:
    radial-gradient(120% 70% at 50% 115%, rgba(255, 224, 138, .25) 0%, rgba(255, 224, 138, 0) 60%),
    linear-gradient(180deg, #eaf4ff 0%, var(--bg) 38%, #f2f8ff 75%, #fdf6ec 100%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--font-runde, system-ui), system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.65;
}

.page {
  flex: 1;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(30px, 6vh, 60px) 22px clamp(56px, 9vh, 88px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
  background: rgba(255, 255, 255, .72);
  padding: 8px 17px 8px 9px;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(10, 10, 10, .08), 0 0 0 1px rgba(10, 10, 10, .06);
  transition: transform .25s cubic-bezier(.2, .7, .2, 1), box-shadow .25s cubic-bezier(.2, .7, .2, 1);
  animation: rise .6s cubic-bezier(.2, .7, .2, 1) both;
}

.brand:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(10, 10, 10, .12), 0 0 0 1px rgba(10, 10, 10, .08);
}

.brand:active { transform: translateY(0); }

/* iOS continuous-corner radius, same family as the homepage app icon */
.brand img {
  width: 26px;
  height: 26px;
  border-radius: 22.37%;
  box-shadow: 0 0 0 1px rgba(10, 10, 10, .07);
}

h1 {
  margin-top: clamp(26px, 5vh, 44px);
  font-size: clamp(32px, 5.4vw, 46px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  animation: rise .6s .06s cubic-bezier(.2, .7, .2, 1) both;
}

.lede {
  margin-top: 14px;
  max-width: 62ch;
  font-size: clamp(16px, 2vw, 18.5px);
  color: var(--muted);
  animation: rise .6s .1s cubic-bezier(.2, .7, .2, 1) both;
}

.updated {
  margin-top: 10px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(10, 10, 10, .5);
  animation: rise .6s .14s cubic-bezier(.2, .7, .2, 1) both;
}

.doc {
  margin-top: clamp(24px, 4.5vh, 38px);
  background: rgba(255, 255, 255, .62);
  border-radius: 26px;
  padding: clamp(24px, 4vw, 40px) clamp(20px, 4vw, 38px);
  box-shadow: 0 8px 30px rgba(10, 10, 10, .10), 0 0 0 1px rgba(10, 10, 10, .06);
  animation: rise .6s .18s cubic-bezier(.2, .7, .2, 1) both;
}

section + section {
  margin-top: clamp(24px, 4vh, 32px);
  padding-top: clamp(24px, 4vh, 32px);
  border-top: 1px solid var(--hairline);
}

h2 {
  display: flex;
  align-items: baseline;
  gap: 11px;
  font-size: clamp(17px, 2.4vw, 20px);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.35;
}

.num {
  flex: none;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  background: var(--ink);
  padding: 5px 8px;
  border-radius: 999px;
  transform: translateY(-2px);
}

p {
  margin-top: 10px;
  font-size: clamp(15px, 1.7vw, 16.5px);
  color: var(--muted);
}

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

.doc a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-decoration-color: rgba(10, 10, 10, .28);
  text-underline-offset: 3px;
  transition: text-decoration-color .2s;
}

.doc a:hover { text-decoration-color: var(--ink); }

.footer { padding: clamp(20px, 3.5vh, 30px) 0 clamp(26px, 4.5vh, 40px); }

.footer-divider { border-top: 1px solid var(--hairline); }

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  max-width: 760px;
  margin: 0 auto;
  padding: 18px 22px 0;
}

.legal-nav { display: flex; gap: 22px; font-size: 14px; font-weight: 600; }

.legal-nav a {
  color: rgba(10, 10, 10, .62);
  text-decoration: none;
  transition: color .2s;
}

.legal-nav a:hover { color: var(--ink); }
.legal-nav a[aria-current="page"] { color: var(--ink); }

.copyright { font-size: 13px; color: rgba(10, 10, 10, .45); }

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 480px) {
  .footer-inner { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .brand, h1, .lede, .updated, .doc { animation: none; }
  .brand, .doc a { transition: none; }
  .brand:hover { transform: none; }
}
