/* ========================================================================
   Primal — shared styling for the policy pages (/terms, /privacy, /refunds)
   and the contact page (/support).

   These pages have to be readable and obviously legitimate: a payment
   processor reviewer lands on them cold, so they get a plain single column,
   generous line-height and real heading hierarchy rather than the marketing
   chrome the rest of the site uses. Tokens come from style.css.
   ======================================================================== */

.legal-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 56px 24px 88px;
}

.legal-head {
  text-align: center;
  padding-bottom: 26px;
  margin-bottom: 34px;
  border-bottom: 1px solid var(--border);
}

.legal-head h1 {
  font-family: var(--font-display);
  font-size: clamp(30px, 5vw, 44px);
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 10px;
}

.legal-sub {
  color: var(--text-muted);
  margin: 0;
  font-size: 15px;
}

.legal-updated {
  display: inline-block;
  margin-top: 14px;
  padding: 5px 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 12.5px;
  letter-spacing: 0.04em;
}

.legal-body {
  color: var(--text);
  font-size: 15.5px;
  line-height: 1.72;
}

.legal-body h2 {
  font-family: var(--font-display);
  font-size: 21px;
  color: var(--accent);
  margin: 40px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  letter-spacing: 0.03em;
}

.legal-body h3 {
  font-size: 16.5px;
  color: var(--text);
  margin: 26px 0 8px;
  font-weight: 700;
}

.legal-body p { margin: 0 0 14px; }

.legal-body ul,
.legal-body ol {
  margin: 0 0 16px;
  padding-left: 22px;
}

.legal-body li { margin-bottom: 7px; }

.legal-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-body a:hover { opacity: 0.82; }

.legal-body strong { color: var(--text); font-weight: 700; }

/* A callout for the things a reader most needs to notice — the 18+ rule,
   the "virtual items have no cash value" line, the statutory-rights carve-out. */
.legal-note {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 6px;
  padding: 15px 18px;
  margin: 20px 0;
}

.legal-note p:last-child { margin-bottom: 0; }

/* Contact page ---------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-bottom: 12px;
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 22px;
}

.contact-card h2 {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--accent);
  margin: 0 0 10px;
  border: none;
  padding: 0;
}

.contact-value {
  font-size: 17px;
  font-weight: 600;
  margin: 12px 0 6px;
  word-break: break-word;
}

.contact-meta {
  color: var(--text-muted);
  font-size: 13px;
  margin: 0;
}

/* Footer legal row — sits under the main footer nav on every page. */
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  margin-top: 10px;
}

.footer-legal a {
  color: var(--text-muted);
  font-size: 13px;
  text-decoration: none;
}

.footer-legal a:hover {
  color: var(--accent);
  text-decoration: underline;
}
