/* ===========================================================
   Shared styles for legal pages: Terms, Privacy, Complaints.
   Matches Register.html visual system (Nunito + indigo/charcoal).
   =========================================================== */
:root {
  --bg: #FFFFFF;
  --bg-card: #F4F2F0;
  --bg-soft: #FAFAF9;
  --ink: #2E2E2E;
  --ink-2: #424242;
  --body: #4E4E4E;
  --muted: #777777;
  --line: #2E2E2E1A;
  --blue: #2D2DEB;
  --blue-deep: #2222C2;
  --hpag-bg: #2E2E2E;
  --sans: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  color: var(--body);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 32px; }
.wrap-narrow { max-width: 820px; margin: 0 auto; padding: 0 32px; }

/* ---------- Header ---------- */
.site-header {
  padding: 28px 0 24px;
  border-bottom: 1px solid var(--line);
}
.logo {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  text-decoration: none; color: var(--ink);
}
.logo-icon { display: block; }
.logo-text {
  font-weight: 800; font-size: 16px;
  letter-spacing: -0.005em; color: var(--ink); margin-top: -4px;
}
.logo-tag {
  font-weight: 600; font-size: 11.5px; color: var(--ink); margin-top: -2px;
}

/* ---------- Back link ---------- */
.back-row { padding-top: 32px; }
.back-link {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--blue);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.01em;
}
.back-link:hover { color: var(--blue-deep); }
.back-link svg { width: 14px; height: 14px; }

/* ---------- Page title ---------- */
.legal-hero {
  padding: 28px 0 28px;
}
.legal-eyebrow {
  font-weight: 800;
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 14px;
}
.legal-eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px; height: 2px;
  background: var(--blue);
}
h1.legal-title {
  font-weight: 900;
  color: var(--ink);
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0 0 14px;
  text-wrap: balance;
}
.legal-meta {
  font-size: 14.5px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ---------- Body ---------- */
.legal-body {
  padding: 16px 0 96px;
}
.legal-body h2 {
  font-weight: 900;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 40px 0 12px;
}
.legal-body h2:first-child { margin-top: 0; }
.legal-body h2 .num {
  color: var(--blue);
  font-weight: 900;
  margin-right: 10px;
  font-variant-numeric: tabular-nums;
}
.legal-body h3 {
  font-weight: 800;
  color: var(--ink);
  font-size: 17px;
  margin: 28px 0 8px;
  letter-spacing: -0.005em;
}
.legal-body p {
  margin: 0 0 16px;
  color: var(--ink-2);
  font-weight: 500;
}
.legal-body ul, .legal-body ol {
  padding-left: 22px;
  margin: 0 0 18px;
}
.legal-body li {
  margin-bottom: 8px;
  color: var(--ink-2);
  font-weight: 500;
  padding-left: 4px;
}
.legal-body strong { color: var(--ink); font-weight: 800; }
.legal-body a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 600;
}

.contact-card {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 28px 32px;
  margin: 28px 0 8px;
}
.contact-card h3 {
  margin: 0 0 10px;
  font-size: 16px;
}
.contact-card p {
  margin: 0 0 4px;
  font-size: 15.5px;
}
.contact-card p:last-child { margin-bottom: 0; }

/* ---------- Footer (matches Register.html) ---------- */
footer.site-footer {
  background: #FAFAF9;
  border-top: 1px solid var(--line);
  padding: 56px 0 56px;
  text-align: center;
  color: var(--body);
  font-size: 14px;
  line-height: 1.65;
}
.footer-copy {
  font-weight: 700; color: var(--ink); margin-bottom: 28px; font-size: 15px;
}
.footer-disclaimer {
  max-width: 720px; margin: 0 auto 28px; font-weight: 500;
}
.footer-disclaimer a {
  color: var(--blue); text-decoration: underline;
  text-underline-offset: 2px; font-weight: 600;
}
.footer-contact { margin-bottom: 18px; font-weight: 600; color: var(--ink-2); }
.footer-contact a { color: var(--ink-2); text-decoration: none; font-weight: 700; }
.footer-link { margin-bottom: 28px; }
.footer-link a {
  color: var(--blue); font-weight: 600;
  text-decoration: underline; text-underline-offset: 2px;
}
.footer-company {
  max-width: 760px; margin: 0 auto;
  color: var(--body); font-size: 13.5px; line-height: 1.65; font-weight: 500;
}

@media (max-width: 600px) {
  .wrap, .wrap-narrow { padding: 0 22px; }
  .legal-hero { padding: 16px 0 22px; }
  .legal-body { padding: 12px 0 72px; }
  .legal-body h2 { font-size: 21px; margin-top: 32px; }
}
