:root {
  --accent: #312e81;
  --accent-light: #4338ca;
  --bg: #fafafa;
  --card-bg: #ffffff;
  --text: #1f2937;
  --text-muted: #6b7280;
  --border: #e5e7eb;
}

* {
  box-sizing: border-box;
}

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

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

/* Shared header */
.site-header {
  text-align: center;
  margin-bottom: 40px;
}

.site-header h1 {
  color: var(--accent);
  font-size: 2rem;
  margin-bottom: 8px;
}

.site-header p {
  color: var(--text-muted);
  margin: 0;
}

/* Index page: app cards */
.app-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.app-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.app-card h2 {
  margin: 0;
  font-size: 1.25rem;
  color: var(--accent);
}

.app-card .app-links {
  display: flex;
  gap: 16px;
}

.app-card .app-links a {
  color: var(--accent-light);
  text-decoration: none;
  font-weight: 500;
}

.app-card .app-links a:hover {
  text-decoration: underline;
}

/* Legal document pages (privacy / terms) */
.doc {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px 36px;
}

.doc h1 {
  color: var(--accent);
  font-size: 1.75rem;
  margin-top: 0;
  margin-bottom: 4px;
}

.doc .updated {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 32px;
}

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

.doc section:last-of-type {
  margin-bottom: 0;
}

.doc h2 {
  color: var(--accent);
  font-size: 1.15rem;
  margin-bottom: 8px;
}

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

.doc ul {
  padding-left: 20px;
}

.contact-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  padding: 16px 20px;
  margin-top: 12px;
}

.contact-box a {
  color: var(--accent-light);
}

/* Footer */
.site-footer {
  margin-top: 32px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.site-footer a {
  color: var(--accent-light);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.site-footer .sep {
  margin: 0 8px;
  color: var(--border);
}
