:root {
  --bg: #f5f5f7;
  --card: #ffffff;
  --text: #1c1c1e;
  --muted: #6b6b70;
  --border: rgba(0, 0, 0, 0.08);
  --accent: #2f5dab;
  --accent-soft: rgba(47, 93, 171, 0.1);
  --radius: 16px;
  --maxw: 720px;
  --shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0f12;
    --card: #1b1b1f;
    --text: #f2f2f5;
    --muted: #a0a0a8;
    --border: rgba(255, 255, 255, 0.1);
    --accent: #7aa0e6;
    --accent-soft: rgba(122, 160, 230, 0.16);
    --shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto,
    Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

/* Top bar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}

.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--text);
  font-size: 17px;
}

.brand:hover {
  text-decoration: none;
}

.brand .dot {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: url("icon.png") center / cover no-repeat;
  box-shadow: inset 0 0 0 1px var(--border);
}

.topnav a {
  margin-left: 18px;
  color: var(--muted);
  font-size: 15px;
}

/* Hero */
.hero {
  text-align: center;
  padding: 72px 0 56px;
}

.hero .icon {
  width: 104px;
  height: 104px;
  border-radius: 24px;
  margin: 0 auto 24px;
  background: url("icon.png") center / cover no-repeat;
  box-shadow: var(--shadow);
}

.hero h1 {
  font-size: 40px;
  line-height: 1.1;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.hero .tagline {
  font-size: 20px;
  color: var(--muted);
  margin: 0 auto 28px;
  max-width: 540px;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0 auto 32px;
  max-width: 560px;
}

.pill {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 14px;
  color: var(--text);
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 13px 26px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 16px;
}

.btn:hover {
  text-decoration: none;
  opacity: 0.92;
}

.btn.secondary {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Feature grid */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  padding: 16px 0 64px;
}

.feature {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}

.feature h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

/* Legal / document pages */
.doc {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  margin: 40px 0 56px;
  box-shadow: var(--shadow);
}

.doc h1 {
  font-size: 30px;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}

.doc .meta {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 28px;
}

.doc h2 {
  font-size: 21px;
  margin: 36px 0 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.doc h2:first-of-type {
  border-top: none;
  padding-top: 0;
}

.doc h3 {
  font-size: 17px;
  margin: 22px 0 6px;
}

.doc p,
.doc li {
  color: var(--text);
}

.doc .lead {
  color: var(--muted);
}

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

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

.doc th {
  background: var(--accent-soft);
  font-weight: 600;
}

.callout {
  background: var(--accent-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  margin: 18px 0;
  font-size: 15px;
}

.contact-block {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  margin: 14px 0;
}

.contact-block strong {
  display: block;
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 14px;
}

footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: center;
  justify-content: center;
  text-align: center;
}

footer a {
  color: var(--muted);
}

footer .sep {
  opacity: 0.4;
}

@media (max-width: 560px) {
  .hero {
    padding: 48px 0 40px;
  }
  .hero h1 {
    font-size: 32px;
  }
  .doc {
    padding: 26px 20px;
  }
}
