/*
 * 22 System — shared styling for the hosted app pages (FAQ, support).
 * v2 design system: six tokens, no fills, radius 0, hairline dividers, sentence case.
 * See docs/design/DESIGN-SYSTEM.md.
 *
 * NOTE: privacy-policy/, terms/ and account-deletion/ still carry their own older inline styles
 * (#111 / #666 / #e3e3e3 and 8px radii). They pre-date the v2 brief and were left alone here to
 * keep this change reviewable — worth folding onto this stylesheet in a follow-up.
 */
:root {
  --main: #000000;
  --secondary: #ffffff;
  --dark-gray: #797979;
  --mid-gray: #cccccc;
  --light-gray: #f9f9f8;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--secondary);
  color: var(--main);
  /* Neue Haas Unica is the brand face, but its web licence doesn't cover embedding and the app
     ships with the system font meanwhile — so these pages use the system stack too, keeping the
     two-weight discipline (300 headings / 400 body) rather than the exact face. */
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.6;
}

.wrap { max-width: 720px; margin: 0 auto; padding: 48px 20px 80px; }

h1 { font-size: 34px; line-height: 44px; font-weight: 300; margin: 0 0 4px; }
h2 { font-size: 24px; line-height: 34px; font-weight: 300; margin: 40px 0 8px; }
h3 { font-size: 16px; line-height: 24px; font-weight: 400; margin: 24px 0 4px; }

p, li { font-size: 14px; line-height: 20px; margin: 0 0 12px; }
ul { padding-left: 20px; }

.meta { color: var(--dark-gray); font-size: 12px; }
.muted { color: var(--dark-gray); }

/* Prefer a hairline to a container — every rule is 1px mid_gray. */
hr, .rule {
  border: 0;
  border-top: 1px solid var(--mid-gray);
  margin: 32px 0;
}

.section { border-top: 1px solid var(--mid-gray); padding-top: 24px; margin-top: 32px; }

a { color: var(--main); text-decoration: underline; text-underline-offset: 2px; }

/* Outbound links leave the site/app: up-right arrow, per the design system. Internal actions use
   a right-facing arrow instead — the direction is the only signal, so keep it consistent. */
a.outbound { display: inline-block; margin-right: 24px; text-decoration: none; }
a.outbound::after { content: " \2197"; padding-left: 6px; }
a.action { text-decoration: none; }
a.action::after { content: " \2192"; padding-left: 25px; }

/* Q&A blocks: hairline-separated, no cards, no radii. */
.qa { border-top: 1px solid var(--mid-gray); padding: 20px 0; }
.qa:last-of-type { border-bottom: 1px solid var(--mid-gray); }
.qa h3 { margin-top: 0; }

table { border-collapse: collapse; width: 100%; margin-top: 8px; font-size: 14px; }
th, td { text-align: left; border-bottom: 1px solid var(--mid-gray); padding: 8px 6px; vertical-align: top; }

code {
  background: var(--light-gray);
  border-radius: 0;
  padding: 1px 5px;
  font-size: 13px;
}

/* No fills anywhere: a callout is a ruled block, not a tinted box. */
.note { border-left: 1px solid var(--main); padding: 4px 0 4px 16px; margin: 16px 0; }
