:root {
  --bg: #fafaf8;
  --surface: #ffffff;
  --text: #1c1c1e;
  --muted: #5f6368;
  --border: #e4e4e0;
  --accent: #2f6b5e;
  --accent-soft: #e6f0ed;
  --radius: 14px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121413;
    --surface: #1b1e1d;
    --text: #ececea;
    --muted: #a3a8a6;
    --border: #2c302f;
    --accent: #7cc4b2;
    --accent-soft: #1f2e2a;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #121413;
  --surface: #1b1e1d;
  --text: #ececea;
  --muted: #a3a8a6;
  --border: #2c302f;
  --accent: #7cc4b2;
  --accent-soft: #1f2e2a;
  color-scheme: dark;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

a { color: var(--accent); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }

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

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 650;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.brand img { width: 28px; height: 28px; display: block; }
.site-nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }

/* Sections */
main { padding: 8px 0 48px; }

.hero { padding: 56px 0 32px; }
.hero h1 {
  font-size: clamp(32px, 6vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}
.hero p {
  font-size: 18px;
  color: var(--muted);
  margin: 0;
  max-width: 560px;
}

section { padding: 28px 0; }
h2 {
  font-size: 22px;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
}
h3 { font-size: 17px; margin: 24px 0 8px; }
p { margin: 0 0 12px; }

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

.app {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.app-icon {
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 22px;
}
.app h3 { margin: 2px 0 4px; }
.app p { color: var(--muted); margin: 0; }
.badge {
  display: inline-block;
  margin-top: 10px;
  font-size: 13px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
}

/* Contact & details */
.details {
  display: grid;
  grid-template-columns: minmax(140px, 200px) 1fr;
  gap: 10px 20px;
  margin: 0;
}
.details dt { color: var(--muted); }
.details dd { margin: 0; overflow-wrap: anywhere; }

@media (max-width: 520px) {
  .details { grid-template-columns: 1fr; gap: 2px; }
  .details dd { margin-bottom: 12px; }
}

/* Policy text */
.doc h1 {
  font-size: clamp(28px, 5vw, 36px);
  letter-spacing: -0.02em;
  margin: 48px 0 8px;
}
.doc .meta { color: var(--muted); margin-bottom: 32px; }
.doc h2 { margin-top: 36px; }
.doc ul { padding-left: 22px; margin: 0 0 12px; }
.doc li { margin-bottom: 6px; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
  padding: 24px 0 40px;
}
.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.site-footer a { color: var(--muted); }
