/* CrewCommerce site design system — shared by the legal pages.
   Same tokens, header and footer as the landing page (index.html); the docs
   (docs/assets/docs.css) use the same palette. */

:root {
  --ink: #24252c;
  --muted: #646570;
  --faint: #77707f;
  --purple: #574398;
  --purple-dark: #423176;
  --lavender: #ece7f7;
  --on-dark: #c9b9f1;
  --paper: #faf9f6;
  --line: #e4e2e8;
  --dark: #191824;
  --green: #377457;
  --danger: #a33a3a;
  --danger-soft: #f7e7e7;
  --font: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.7 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: var(--purple); text-underline-offset: 4px; }
a:hover { color: var(--purple-dark); }
:focus-visible { outline: 3px solid #ae90ee; outline-offset: 4px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
.wrap-narrow { max-width: 780px; margin: 0 auto; padding: 0 40px; }

h1, h2, h3 { color: var(--ink); line-height: 1.15; margin: 0 0 16px; font-weight: 550; letter-spacing: -.04em; text-wrap: balance; }
h1 { font-size: clamp(36px, 4.4vw, 52px); line-height: 1.06; }
h2 { font-size: clamp(22px, 2.4vw, 26px); letter-spacing: -.03em; margin-top: 40px; }
h3 { font-size: 18px; letter-spacing: -.025em; }
p, li { color: var(--muted); }
p { margin: 0 0 16px; }
strong { color: var(--ink); font-weight: 600; }

.eyebrow { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 650; letter-spacing: .11em; text-transform: uppercase; color: var(--purple); margin-bottom: 20px; }
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }

/* Header — as on the landing page */
header.site { position: sticky; top: 0; z-index: 30; background: rgba(25, 24, 36, .97); border-bottom: 1px solid #36333f; }
.nav { display: flex; align-items: center; gap: 30px; min-height: 80px; }
.logo { display: flex; flex-shrink: 0; margin-right: auto; }
.logo svg { width: 180px; height: auto; display: block; }
header.site .logo svg path[fill="black"] { fill: #fff; }
header.site .logo svg circle { stroke: var(--on-dark); }
header.site .logo svg g path { fill: var(--on-dark); }
.nav-links { display: flex; gap: 28px; }
.nav-links a { font-size: 13px; text-decoration: none; color: #c5c1ce; white-space: nowrap; }
.nav-links a:hover { color: #fff; }

.btn { display: inline-flex; justify-content: center; align-items: center; gap: 20px; min-height: 49px; padding: 13px 20px; border: 1px solid transparent; border-radius: 6px; font-family: inherit; font-size: 14px; font-weight: 600; text-decoration: none; line-height: 1.4; cursor: pointer; transition: background .15s, transform .15s; }
.btn-primary { background: var(--purple); color: #fff; }
.btn-primary:hover { background: var(--purple-dark); color: #fff; transform: translateY(-1px); }
.btn-small { min-height: 40px; padding: 10px 15px; font-size: 12px; }
header.site .btn-primary { background: #d5c6f5; color: #2c2143; }
header.site .btn-primary:hover { background: #e4d9fc; color: #2c2143; }

/* Legal pages */
.legal-main { padding: 0 0 96px; }
.legal-hero { background: var(--dark); padding: 64px 0 56px; margin-bottom: 56px; }
.legal-hero .eyebrow { color: #ccbcee; }
.legal-hero h1 { color: #fff; margin-bottom: 12px; }
.legal-hero .legal-updated { color: #a69daf; margin: 0; font-size: 13px; }
.legal-updated { font-size: 13px; color: var(--faint); margin: -6px 0 32px; }
.legal-content h2 { border-top: 1px solid var(--line); padding-top: 28px; margin-top: 36px; }
.legal-content h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.legal-content ul, .legal-content ol { padding-left: 22px; margin: 0 0 16px; }
.legal-content li { margin-bottom: 6px; }
.legal-edit-me { background: var(--danger-soft); border: 1px dashed var(--danger); border-radius: 6px; padding: 10px 14px; font-size: 13px; color: var(--danger); margin: 0 0 16px; }
.legal-note { background: var(--lavender); border: 1px solid #ddd3f0; border-radius: 8px; padding: 14px 18px; margin: 0 0 24px; font-size: 14.5px; color: var(--ink); }
.legal-note strong.label { display: block; font-size: 12px; font-weight: 650; text-transform: uppercase; letter-spacing: .11em; color: var(--purple); margin-bottom: 4px; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--purple); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }

/* Footer — as on the landing page */
footer { padding: 30px 0; background: var(--dark); color: #a69aac; }
.footer-row { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; font-size: 12px; }
.footer-row a { color: inherit; text-decoration: none; }
.footer-row a:hover { color: #fff; text-decoration: underline; }

@media (max-width: 800px) {
  .nav { min-height: 69px; gap: 16px; }
  .nav-links { display: none; }
  .legal-hero { padding: 48px 0 40px; margin-bottom: 40px; }
}
@media (max-width: 540px) {
  .wrap, .wrap-narrow { padding-left: 20px; padding-right: 20px; }
  .logo svg { width: 140px; }
  .nav .btn-small { padding: 8px 12px; min-height: 38px; gap: 8px; }
}

/* Blog — index and posts (blog/). Same header, footer and tokens as above. */
.nav-links a[aria-current="page"] { color: #fff; }
.blog-hero { background: var(--dark); padding: 64px 0 56px; }
.blog-hero .eyebrow { color: #ccbcee; }
.blog-hero h1 { color: #fff; margin-bottom: 14px; }
.blog-hero .lede { color: #c5c1ce; font-size: 17px; max-width: 640px; margin: 0; }
.post-meta { display: flex; flex-wrap: wrap; gap: 4px 22px; align-items: center; color: #a69daf; font-size: 13.5px; margin: 0; }
.crumbs { font-size: 13px; color: #a69daf; margin: 0 0 22px; }
.crumbs a { color: #ccbcee; text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }

.blog-main { padding: 56px 0 96px; }
.post-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.post-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 28px 30px; transition: border-color .15s, transform .15s; position: relative; }
.post-card:hover { border-color: #c9bde6; transform: translateY(-1px); }
.post-card .eyebrow { margin-bottom: 12px; font-size: 11.5px; }
.post-card h2 { font-size: 23px; margin: 0 0 10px; }
.post-card h2 a { color: var(--ink); text-decoration: none; }
.post-card h2 a::after { content: ""; position: absolute; inset: 0; }
.post-card p { margin: 0 0 14px; }
.post-card .post-meta { color: var(--faint); margin: 0; }

.article { font-size: 17px; line-height: 1.75; }
.article p, .article li { color: #3d3e48; }
.article > p:first-of-type { margin-top: 0; }
.article h2 { font-size: clamp(23px, 2.6vw, 28px); margin: 52px 0 16px; }
.article h3 { font-size: 19px; margin: 34px 0 10px; }
.article ul, .article ol { padding-left: 24px; margin: 0 0 20px; }
.article li { margin-bottom: 8px; }
.article li::marker { color: var(--purple); }
.article a { font-weight: 500; }
.answer { background: var(--lavender); border: 1px solid #ddd3f0; border-left: 4px solid var(--purple); border-radius: 8px; padding: 20px 24px; margin: 0 0 36px; }
.answer p { color: var(--ink); margin: 0; }
.answer .answer-label { font-size: 12px; font-weight: 650; letter-spacing: .11em; text-transform: uppercase; color: var(--purple); margin-bottom: 6px; }
.table-wrap { overflow-x: auto; margin: 0 0 24px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.article table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.55; }
.article th, .article td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.article th { font-weight: 600; color: var(--ink); background: #f6f4fa; }
.article td { color: #3d3e48; }
.article tr:last-child td { border-bottom: 0; }
.article figure { margin: 30px 0 34px; }
.article figure img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.article figure.narrow img { max-width: 520px; }
.article figcaption { font-size: 13.5px; color: var(--muted); margin-top: 10px; }
.post-faq { border-top: 1px solid var(--line); margin-top: 56px; padding-top: 8px; }
.post-faq h3 { font-size: 18px; margin: 28px 0 8px; }
.post-cta { background: var(--dark); border-radius: 12px; padding: 32px 34px; margin: 56px 0 0; }
.post-cta h2 { color: #fff; font-size: 24px; margin: 0 0 10px; }
.post-cta p { color: #c5c1ce; margin: 0 0 22px; font-size: 16px; }
.post-cta .btn-row { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; }
.post-cta .btn-primary { background: #d5c6f5; color: #2c2143; }
.post-cta .btn-primary:hover { background: #e4d9fc; color: #2c2143; }
.post-cta .text-link { color: #ccbcee; font-size: 14px; font-weight: 600; }
.post-cta .text-link:hover { color: #fff; }
.author { display: flex; gap: 14px; align-items: center; border-top: 1px solid var(--line); margin-top: 40px; padding-top: 24px; font-size: 14.5px; }
.author p { margin: 0; color: var(--muted); }
.author strong { display: block; }
.author-mark { width: 44px; height: 44px; border-radius: 50%; background: var(--dark); display: grid; place-items: center; flex: none; }
.author-mark svg { width: 28px; height: auto; }
.related { margin-top: 48px; }
.related h2 { font-size: 20px; margin: 0 0 14px; }
.related ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.related a { font-weight: 550; }

@media (max-width: 800px) {
  .blog-hero { padding: 48px 0 40px; }
  .blog-main { padding: 40px 0 72px; }
}
@media (max-width: 540px) {
  .article { font-size: 16px; }
  .post-card { padding: 22px 20px; }
  .post-card h2 { font-size: 20px; }
  .answer { padding: 16px 18px; }
  .post-cta { padding: 26px 22px; }
  .article th, .article td { padding: 10px 12px; }
}
