:root {
  --bg: #ffffff;
  --surface: #f2f2f7;
  --ink: #000000;
  --ink-2: #1c1c1e;
  --muted: #636366;
  --hairline: rgba(60, 60, 67, 0.14);
  --blue: #007aff;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Rounded", "SF Pro Display", "SF Pro Text", system-ui, "Segoe UI", Roboto, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-feature-settings: "ss01", "cv01";
  font-size: 17px;
  line-height: 1.65;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

.legal-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--hairline);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}

.legal-nav-inner,
.legal-footer-inner {
  width: min(100% - 40px, 920px);
  margin: 0 auto;
}

.legal-nav-inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 750;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand svg {
  width: 37px;
  height: 27px;
}

.back-link {
  color: var(--ink-2);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.back-link:hover,
.brand:hover {
  opacity: 0.72;
}

.legal-page {
  width: min(100% - 40px, 760px);
  margin: 0 auto;
  padding: 80px 0 96px;
}

.legal-kicker {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 48px;
  font-size: clamp(42px, 8vw, 68px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.legal-section {
  padding: 34px 0;
  border-top: 1px solid var(--hairline);
}

.legal-section:first-of-type {
  border-top: 0;
  padding-top: 0;
}

h2 {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: clamp(24px, 4vw, 30px);
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

p {
  margin: 0 0 16px;
  color: var(--ink-2);
}

p:last-child {
  margin-bottom: 0;
}

ul,
ol {
  margin: 14px 0 0;
  padding-left: 1.35em;
  color: var(--ink-2);
}

li {
  margin: 0 0 12px;
  padding-left: 0.25em;
}

li:last-child {
  margin-bottom: 0;
}

li > ul {
  margin-top: 10px;
}

.plan-list > li {
  margin-bottom: 24px;
}

.plan-list > li:last-child {
  margin-bottom: 0;
}

.plan-meta {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

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

.legal-footer-inner {
  min-height: 104px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
}

.legal-footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.legal-footer a {
  color: var(--ink-2);
  text-decoration: none;
}

.legal-footer a[aria-current="page"] {
  color: var(--muted);
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .legal-nav-inner,
  .legal-footer-inner,
  .legal-page {
    width: min(100% - 32px, 760px);
  }

  .legal-page {
    padding: 56px 0 72px;
  }

  h1 {
    margin-bottom: 36px;
  }

  .legal-section {
    padding: 28px 0;
  }

  .legal-footer-inner {
    padding: 24px 0;
    align-items: flex-start;
    flex-direction: column;
  }
}
