:root {
  --ink: #0F172A;
  --ink-subtle: #475569;
  --ink-faint: #94A3B8;
  --accent: #2563EB;
  --bg-top: #F8FAFC;
  --bg-bottom: #EFF6FF;
  --card-bg: #FFFFFF;
  --card-shadow: rgba(15, 23, 42, 0.06);
  --border: rgba(15, 23, 42, 0.08);
}

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

html {
  -webkit-text-size-adjust: 100%;
  font-feature-settings: "ss01", "cv11";
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter",
               "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 60%);
  min-height: 100vh;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "kern" 1;
}

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 96px;
}

header.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 56px;
}

header.brand .logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--accent);
  display: grid;
  place-items: center;
  color: white;
  font-weight: 700;
  font-size: 18px;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

header.brand .name {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}

header.brand a {
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  gap: 12px;
}

h1.doc-title {
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  color: var(--ink);
}

.last-updated {
  font-size: 14px;
  color: var(--ink-subtle);
  margin-bottom: 40px;
}

.card {
  background: var(--card-bg);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 1px 3px var(--card-shadow), 0 8px 24px rgba(15, 23, 42, 0.04);
  border: 1px solid var(--border);
}

section.legal-section {
  margin-bottom: 28px;
}

section.legal-section:last-child {
  margin-bottom: 0;
}

section.legal-section h2 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
  color: var(--ink);
}

section.legal-section p {
  font-size: 15.5px;
  color: var(--ink);
  margin-bottom: 12px;
}

section.legal-section p:last-child {
  margin-bottom: 0;
}

section.legal-section strong {
  font-weight: 600;
}

section.legal-section a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(37, 99, 235, 0.3);
}

section.legal-section a:hover {
  border-bottom-color: var(--accent);
}

section.legal-section ul {
  list-style: none;
  padding-left: 4px;
  margin-bottom: 12px;
}

section.legal-section li {
  font-size: 15.5px;
  padding-left: 24px;
  position: relative;
  margin-bottom: 6px;
  color: var(--ink);
}

section.legal-section li::before {
  content: "•";
  position: absolute;
  left: 8px;
  color: var(--accent);
  font-weight: 700;
}

footer {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--ink-faint);
}

footer nav {
  display: flex;
  gap: 20px;
}

footer a {
  color: var(--ink-subtle);
  text-decoration: none;
}

footer a:hover {
  color: var(--accent);
}

/* Landing page styles */

.hero {
  text-align: center;
  padding: 80px 0 40px;
}

.hero .badge {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--accent);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
  color: var(--ink);
}

.hero p {
  font-size: 18px;
  color: var(--ink-subtle);
  max-width: 480px;
  margin: 0 auto 32px;
}

.hero .links {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero .links a {
  display: inline-block;
  padding: 14px 24px;
  background: var(--ink);
  color: white;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: transform 0.15s ease;
}

.hero .links a:hover {
  transform: translateY(-1px);
}

.hero .links a.secondary {
  background: var(--card-bg);
  color: var(--ink);
  border: 1px solid var(--border);
}

@media (max-width: 540px) {
  .container { padding: 32px 16px 80px; }
  h1.doc-title { font-size: 30px; }
  .hero h1 { font-size: 40px; }
  .hero p { font-size: 16px; }
  .card { padding: 24px; border-radius: 16px; }
}
