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

:root {
  --brand: #2563eb;
  --brand-dark: #1d4ed8;
  --text: #111827;
  --muted: #6b7280;
  --border: #e5e7eb;
  --bg: #ffffff;
  --surface: #f9fafb;
  --radius: 12px;
  --max-w: 720px;
}

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

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

/* ── Header ── */
header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 0 1.5rem;
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: 1rem;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brand);
  text-decoration: none;
  letter-spacing: -0.02em;
}

nav {
  display: flex;
  gap: 1.25rem;
}

nav a {
  font-size: 0.875rem;
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  transition: color .15s;
}

nav a:hover,
nav a[aria-current="page"] {
  color: var(--brand);
}

/* ── Main layout ── */
main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

/* ── Page hero (support) ── */
.hero {
  text-align: center;
  padding: 3rem 0 2rem;
}

.hero h1 {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 0.75rem;
}

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

/* ── Contact card ── */
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  margin: 2rem 0;
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.contact-icon {
  font-size: 2rem;
  flex-shrink: 0;
  line-height: 1;
}

.contact-body h2 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.contact-body p {
  color: var(--muted);
  font-size: 0.9375rem;
  margin-bottom: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.125rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s, transform .1s;
}

.btn:active { transform: scale(.97); }

.btn-primary {
  background: var(--brand);
  color: #fff;
}

.btn-primary:hover { background: var(--brand-dark); }

.btn-secondary {
  background: #ffffff;
  color: var(--text);
  border: 1px solid var(--border);
  margin-left: 0.5rem;
}

.btn-secondary:hover { background: var(--surface); }

/* ── FAQ / links section ── */
.section-title {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--muted);
  margin: 2.5rem 0 1rem;
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.link-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.125rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  font-size: 0.9375rem;
  transition: border-color .15s, box-shadow .15s;
}

.link-card:hover {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}

.link-card-icon { font-size: 1.5rem; }

/* ── Legal document styles ── */
.doc-header {
  padding: 2.5rem 0 1.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}

.doc-header h1 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 0.5rem;
}

.doc-meta {
  font-size: 0.875rem;
  color: var(--muted);
}

.doc-body h2 {
  font-size: 1rem;
  font-weight: 700;
  margin: 2rem 0 0.5rem;
  color: var(--text);
}

.doc-body p {
  color: #374151;
  margin-bottom: 0.75rem;
  font-size: 0.9375rem;
}

.doc-body ul {
  padding-left: 1.375rem;
  margin-bottom: 0.75rem;
}

.doc-body ul li {
  color: #374151;
  font-size: 0.9375rem;
  margin-bottom: 0.4rem;
}

.doc-body .sub-section {
  margin-left: 0;
  padding: 0.5rem 0 0.5rem 1rem;
  border-left: 3px solid var(--border);
  margin-bottom: 0.5rem;
}

.doc-body .sub-section p {
  margin-bottom: 0;
}

/* ── Footer ── */
footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem;
  text-align: center;
}

footer p {
  font-size: 0.8125rem;
  color: var(--muted);
}

footer a {
  color: var(--brand);
  text-decoration: none;
  font-weight: 500;
}

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

/* ── 404 ── */
.not-found {
  text-align: center;
  padding: 5rem 1rem;
}

.not-found h1 {
  font-size: 5rem;
  font-weight: 900;
  color: var(--brand);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.not-found h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.not-found p {
  color: var(--muted);
  margin-bottom: 2rem;
}

@media (max-width: 600px) {
  .contact-card { flex-direction: column; }
  .btn-secondary { margin-left: 0; margin-top: 0.5rem; }
  .header-inner { height: auto; padding: 0.75rem 0; flex-wrap: wrap; }
}
