/* ═══════════════════════════════════════════════════════════════════════════
 * SalesTeem AI — legal & support pages
 * Shares the sales page's (live/) design language: Degular Display headings,
 * Plus Jakarta Sans body, one green accent, bubble corners. A dark title band
 * over a light reading area, and the same dark footer as the sales page.
 * Restrained on purpose: no scroll animations on long-form reading pages.
 * ═══════════════════════════════════════════════════════════════════════════ */

:root {
  --green: #1CBD58;
  --green-hover: #22D364;
  --green-deep: #0B7F3A;
  --green-ink: #04150B;
  --green-soft: rgba(28, 189, 88, .12);
  --green-line: rgba(28, 189, 88, .38);
  --red-deep: #C2313F;
  --gold: #F5C451;

  --ink-950: #07090B;
  --ink-850: #0F1417;
  --ink-800: #161D21;
  --ink-700: #1F2A2F;
  --ink-600: #2C3A40;

  --fg: #0C1613;
  --muted: #4A5955;
  --line: #E1E8E4;
  --paper: #F0F5F2;

  --r-sm: 10px;
  --r: 20px;
  --r-lg: 28px;
  --bubble: var(--r) var(--r) var(--r) 6px;

  --display: "degular-display", "degular", ui-sans-serif, system-ui, sans-serif;
  --body: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 17px; scroll-behavior: smooth; scroll-padding-top: 24px; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: #fff; color: var(--fg);
  font-family: var(--body); font-size: 1rem; line-height: 1.7;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.08; letter-spacing: .012em; margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; }
:focus, :focus-visible { outline: none; }
.icon { width: 1.1em; height: 1.1em; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.skip-link { position: fixed; left: -9999px; top: 12px; z-index: 50; background: var(--green); color: var(--green-ink); padding: 10px 16px; border-radius: var(--r-sm); font-weight: 700; }
.skip-link:focus { left: 12px; }

/* ── Header + title band (dark) ─────────────────────────────────────────── */
.lg-top {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--ink-950); color: #F1F5F4;
}
.lg-top::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(55% 70% at 50% 0%, rgba(28, 189, 88, .2), transparent 70%),
    radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1.2px) 0 0 / 28px 28px;
}
.lg-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 22px; padding-bottom: 22px; }
.lg-logo { display: inline-flex; border-radius: 8px; }
.lg-logo img { width: clamp(150px, 14vw, 190px); }
.lg-header-link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 8px 18px;
  border: 1px solid rgba(255, 255, 255, .2); border-radius: 999px;
  color: #E3EEEA; text-decoration: none; font: 600 .9rem/1 var(--body);
  transition: border-color .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease);
}
.lg-header-link:hover, .lg-header-link:focus-visible { border-color: var(--green); background: var(--green-soft); color: #fff; }

.lg-hero { padding-top: clamp(28px, 4vw, 48px); padding-bottom: clamp(48px, 6vw, 80px); text-align: center; }
.lg-hero h1 { font-size: clamp(2.3rem, 1.3rem + 4vw, 4.4rem); max-width: 18ch; margin: clamp(8px, 2vw, 20px) auto 0; }
.lg-intro { max-width: 62ch; margin: 20px auto 0; color: #B9C6C2; font-size: clamp(1.02rem, .95rem + .3vw, 1.15rem); }
.lg-meta { margin: 22px 0 0; color: #8D9C98; font-size: .88rem; }

/* ── Reading area (light) ───────────────────────────────────────────────── */
.lg-main { padding: clamp(48px, 6vw, 88px) 0 clamp(64px, 7vw, 104px); }
.lg-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.lg-layout.no-toc { grid-template-columns: minmax(0, 1fr); }

.lg-toc { position: sticky; top: 24px; padding: 22px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--paper); }
.lg-toc-title { margin: 0 0 12px; font: 700 .75rem/1.2 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.lg-toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; display: grid; gap: 2px; }
.lg-toc a {
  display: block; padding: 6px 10px; border-radius: 8px;
  color: var(--muted); text-decoration: none; font-size: .88rem; line-height: 1.4;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.lg-toc a:hover, .lg-toc a:focus-visible { background: #fff; color: var(--green-deep); }

.lg-article { max-width: 760px; }
.lg-layout.no-toc .lg-article { margin: 0 auto; }
.lg-article section + section { margin-top: clamp(36px, 4vw, 48px); padding-top: clamp(36px, 4vw, 48px); border-top: 1px solid var(--line); }
.lg-article h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); margin-bottom: 16px; scroll-margin-top: 24px; }
.lg-article h2 .n { color: var(--green-deep); margin-right: .35em; }
.lg-article h3 { font-size: 1.2rem; margin: 26px 0 10px; }
.lg-article p, .lg-article li { color: #2B3835; }
.lg-article strong { color: var(--fg); }
.lg-article a { color: var(--green-deep); text-decoration: underline; text-decoration-color: var(--green-line); text-underline-offset: 3px; transition: text-decoration-color .2s var(--ease); }
.lg-article a:hover, .lg-article a:focus-visible { text-decoration-color: var(--green-deep); }
.lg-article ul, .lg-article ol { margin: 0 0 1em; padding-left: 0; list-style: none; display: grid; gap: 10px; }
.lg-article ul > li { position: relative; padding-left: 26px; }
.lg-article ul > li::before {
  content: ""; position: absolute; left: 4px; top: .62em;
  width: 8px; height: 8px; border-radius: 50%; background: var(--green);
}
.lg-article ol { counter-reset: step; }
.lg-article ol > li { position: relative; padding-left: 40px; counter-increment: step; }
.lg-article ol > li::before {
  content: counter(step); position: absolute; left: 0; top: .1em;
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: var(--green-soft); color: var(--green-deep); font: 700 .8rem/1 var(--body);
}

.lg-note {
  margin: 20px 0; padding: 18px 20px; border-radius: 0 var(--r) var(--r) 0;
  border-left: 4px solid var(--green); background: #F2FBF5; color: #23302D;
}
.lg-note p:last-child { margin: 0; }
/* Terms still awaiting confirmation from the business. */
.lg-flag {
  margin: 20px 0; padding: 16px 20px; border-radius: var(--r-sm);
  border: 1px dashed #E2BB5A; background: #FFF8E6; color: #6B4A00; font-size: .95rem;
}
.lg-flag strong { color: #6B4A00; }

.lg-table-wrap { overflow-x: auto; margin: 16px 0 20px; border: 1px solid var(--line); border-radius: var(--r); }
.lg-table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.lg-table th, .lg-table td { padding: 12px 16px; text-align: left; vertical-align: top; }
.lg-table thead th { background: var(--paper); font: 700 .78rem/1.3 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.lg-table tbody tr + tr td { border-top: 1px solid var(--line); }
.lg-table code { font-size: .88em; background: var(--paper); padding: 2px 6px; border-radius: 5px; }

/* Contact / request cards */
.lg-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 20px 0 8px; }
.lg-card {
  display: flex; flex-direction: column; gap: 8px; padding: 22px;
  border: 1px solid var(--line); border-radius: var(--bubble); background: #fff;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.lg-card:hover { border-color: var(--green-line); box-shadow: 0 18px 40px -30px rgba(11, 60, 32, .45); }
.lg-card h3 { margin: 0; font-size: 1.15rem; }
.lg-card p { margin: 0; font-size: .95rem; color: var(--muted); }
.lg-card .lg-btn { margin-top: auto; align-self: flex-start; }
.lg-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 20px;
  border-radius: 999px; background: #14994A; color: #fff !important; text-decoration: none !important;
  font: 700 .95rem/1.2 var(--display); letter-spacing: .01em;
  transition: background-color .2s var(--ease), transform .4s cubic-bezier(.22, 1, .36, 1);
}
.lg-btn:hover, .lg-btn:focus-visible { background: #17A24F; transform: translateY(-1px); }
.lg-btn .icon { width: 16px; height: 16px; }

/* ── Footer (same pattern as the sales page) ────────────────────────────── */
.site-footer { background: var(--ink-950); padding: clamp(48px, 6vw, 72px) 0 36px; overflow: hidden; }
.site-footer { color: #A1B0AC; }
.ft-inner { text-align: center; }
.ft-brand { position: relative; display: grid; place-items: center; padding: clamp(8px, 2vw, 20px) 0 clamp(22px, 3vw, 32px); }
/* Large faint wordmark behind the logo. */
.ft-watermark {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%; z-index: 0;
  font: 700 clamp(3.4rem, 1.2rem + 9vw, 8.5rem)/1 var(--display); letter-spacing: .01em; white-space: nowrap;
  color: transparent;
  background: linear-gradient(180deg, rgba(255, 255, 255, .085), rgba(255, 255, 255, .015) 85%);
  -webkit-background-clip: text; background-clip: text;
  pointer-events: none; user-select: none;
}
.ft-logo { position: relative; z-index: 1; display: inline-flex; border-radius: 8px; }
.ft-logo img { width: clamp(200px, 20vw, 290px); height: auto; }
.ft-legal { max-width: 1000px; margin: 0 auto; }
.ft-legal p { margin: 0 auto 18px; font-size: clamp(.86rem, .82rem + .2vw, .98rem); line-height: 1.75; color: #A1B0AC; text-wrap: pretty; }
.ft-legal p:last-child { margin-bottom: 0; }
.ft-rule {
  height: 1px; margin: clamp(28px, 4vw, 44px) auto; border: 0; max-width: 1200px;
  background: linear-gradient(90deg, transparent, rgba(28, 189, 88, .35), transparent);
}
.ft-copy { margin: 0 0 18px; font-size: .95rem; color: #A1B0AC; }
.ft-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; margin: 0; padding: 0; list-style: none; }
.ft-links a {
  display: inline-block; padding: 6px 0; color: #C3CFCC; font-size: .95rem;
  text-decoration: underline; text-decoration-color: rgba(195, 207, 204, .45); text-underline-offset: 4px;
  transition: color .2s var(--ease), text-decoration-color .2s var(--ease);
}
.ft-links a:hover, .ft-links a:focus-visible { color: var(--green); text-decoration-color: var(--green); }
.ft-links a[aria-current="page"] { color: #fff; }
@media (max-width: 600px) {
  .ft-legal p { text-align: left; }
  .ft-links { gap: 4px 16px; }
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .lg-layout { grid-template-columns: minmax(0, 1fr); }
  .lg-toc { position: static; }
  .lg-toc ol { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 12px; }
  .lg-article { max-width: none; }
}
@media (max-width: 760px) {
  .lg-cards { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  html { font-size: 16px; }
  .lg-toc ol { grid-template-columns: minmax(0, 1fr); }
  .lg-header-link span { display: none; }
  .lg-header-link { padding: 8px 12px; }
  .lg-table th, .lg-table td { padding: 10px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
