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

:root {
  --color-bg: #fafafa;
  --color-surface: #ffffff;
  --color-text: #1a1a2e;
  --color-text-muted: #555;
  --color-primary: #2563eb;
  --color-primary-hover: #1d4ed8;
  --color-border: #e5e7eb;
  --color-accent-bg: #eff6ff;
  --max-width: 720px;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

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

a:hover {
  text-decoration: underline;
}

/* Layout */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

header {
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface);
  padding: 1rem 0;
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 28px;
  width: auto;
}

nav a,
nav .link-button {
  margin-left: 1.5rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

nav .link-button {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font: inherit;
}

nav a:hover,
nav .link-button:hover {
  color: var(--color-primary);
}

main {
  padding: 3rem 0;
}

footer {
  border-top: 1px solid var(--color-border);
  padding: 2rem 0;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  text-align: center;
}

/* Hero */

.hero {
  text-align: center;
  margin-bottom: 3rem;
}

.hero-icon {
  width: 200px;
  height: auto;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.hero p {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  max-width: 540px;
  margin: 0 auto;
}

/* Sections */

section {
  margin-bottom: 2.5rem;
}

section h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

section p,
section li {
  color: var(--color-text-muted);
}

section ul {
  list-style: none;
  padding: 0;
}

section ul li {
  padding: 0.35rem 0;
  padding-left: 1.25rem;
  position: relative;
}

section ul li::before {
  content: "\2022";
  position: absolute;
  left: 0;
  color: var(--color-primary);
}

/* Info card */

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.card p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

/* Connect card */

.connect-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
  cursor: pointer;
}

.connect-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.1);
  text-decoration: none;
}

.connect-card-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--color-accent-bg);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.connect-card-body h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.connect-card-body p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

/* App list */

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.75rem;
}

.app-grid .app-item {
  background: var(--color-accent-bg);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  font-weight: 500;
  font-size: 0.9rem;
  text-align: center;
}

/* Trust badges */

.trust-list {
  display: grid;
  gap: 0.75rem;
}

.trust-list .item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.trust-list .icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background: var(--color-accent-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--color-primary);
  font-weight: 700;
}

/* Legal pages */

.legal h1 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.legal .last-updated {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
}

.legal h2 {
  margin-top: 2rem;
}

.legal p {
  margin-bottom: 1rem;
  color: var(--color-text-muted);
}

.legal ul {
  margin-bottom: 1rem;
}
