/* Pages the server builds inside the new design's header and footer:
   legal pages, contact, the sign-in finder and integration pages. */
.proto .legal-head, .proto .legal, .proto .sp { padding-left: var(--gx); padding-right: var(--gx); }

.legal-head { padding-top: 64px; padding-bottom: 36px; border-bottom: 1px solid var(--line); }
.legal-head h1 { font-size: clamp(34px, 4.4vw, 54px); line-height: 1.04; margin: 0 0 10px; max-width: 20ch; }
.legal-date { margin: 0 0 18px; font-size: 14px; color: var(--ink-2); }
.legal-lede { margin: 0; max-width: 64ch; font-size: 18px; line-height: 1.55; color: var(--ink-2); }

.legal { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; padding-top: 40px; padding-bottom: 88px; }
.legal-toc { position: sticky; top: 96px; align-self: start; font-size: 14px; }
.legal-toc p { margin: 0 0 10px; font-weight: 700; }
.legal-toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; border-left: 2px solid var(--line); }
.legal-toc li { counter-increment: toc; }
.legal-toc a { display: block; padding: 5px 0 5px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--ink-2); text-decoration: none; line-height: 1.35; }
.legal-toc a:hover { color: var(--ink); border-left-color: var(--accent); }

.legal-doc { max-width: 72ch; }
.legal-section { padding-top: 8px; margin-bottom: 40px; scroll-margin-top: 96px; }
.legal-section h2 { display: flex; gap: 14px; align-items: baseline; font-size: clamp(22px, 2.4vw, 28px); line-height: 1.15; margin: 0 0 14px; }
.legal-n { flex: none; font-size: 14px; font-family: var(--body); font-weight: 700; color: var(--accent-ink); background: var(--accent); border-radius: 8px; min-width: 28px; height: 28px; display: inline-grid; place-items: center; transform: translateY(-3px); letter-spacing: 0; }
.legal-section h3 { font-size: 18px; margin: 22px 0 6px; }
.legal-section p, .legal-section li { font-size: 16px; line-height: 1.65; color: var(--ink-2); }
.legal-section p { margin: 0 0 12px; }
.legal-section ul { margin: 0 0 14px; padding-left: 20px; }
.legal-section li { margin-bottom: 6px; }
.legal-section li::marker { color: var(--accent); }
.legal-section b { color: var(--ink); }
.legal-section a { color: var(--ink); font-weight: 700; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.legal-section .pub-doc-table { overflow-x: auto; margin: 6px 0 16px; border: 1px solid var(--line); border-radius: 12px; }
.legal-section table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.legal-section th { text-align: left; background: var(--soft); color: var(--ink); padding: 10px 14px; font-weight: 700; }
.legal-section td { padding: 10px 14px; border-top: 1px solid var(--line); color: var(--ink-2); vertical-align: top; }

@media (max-width: 860px) {
  .legal { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 24px; }
  .legal-toc { position: static; }
  .legal-head { padding-top: 40px; }
}

/* Contact and sign-in finder */
.sp-head { padding-top: 64px; padding-bottom: 8px; }
.sp-head h1, .sp-card h1 { font-size: clamp(32px, 4vw, 50px); line-height: 1.05; margin: 0 0 12px; }
.sp-head p { margin: 0; max-width: 60ch; font-size: 18px; color: var(--ink-2); }
.sp-contact { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 32px; padding-top: 32px; padding-bottom: 88px; align-items: start; }
.sp-card { background: #fff; color: #1b1d21; border: 1px solid var(--line); border-radius: 20px; padding: 28px; box-shadow: 0 24px 48px -32px rgb(0 0 0 / .35); }
.skin-night .sp-card { background: var(--deep-2); color: var(--ink); }
.sp-form { display: flex; flex-direction: column; gap: 16px; }
.sp-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sp-field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 700; }
.sp-field input, .sp-field select, .sp-field textarea, .sp-find-input {
  font: 400 16px var(--body); color: inherit; background: transparent; border: 1.5px solid var(--line); border-radius: 12px; padding: 11px 14px; width: 100%;
}
.sp-field textarea { resize: vertical; min-height: 120px; }
.sp-field input:focus, .sp-field select:focus, .sp-field textarea:focus, .sp-find-input:focus-within { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.sp-field [aria-invalid="true"], .sp-find-input.is-bad { border-color: #d64545; }
.sp-error { color: #d64545; font-style: normal; font-weight: 600; font-size: 13.5px; margin: 0; }
.sp-form .btn, .sp-find .btn { align-self: flex-start; }
.sp-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sp-side { display: flex; flex-direction: column; gap: 22px; padding-top: 6px; }
.sp-side h3 { font-size: 17px; margin: 0 0 4px; }
.sp-side p { margin: 0 0 4px; color: var(--ink-2); }
.sp-side a, .sp-card a:not(.btn) { color: inherit; font-weight: 700; text-decoration-color: var(--accent); text-underline-offset: 3px; }

.sp-narrow { padding-top: 64px; padding-bottom: 96px; display: grid; justify-items: center; }
.sp-narrow .sp-card { width: 100%; max-width: 540px; }
.sp-narrow .sp-card > p { color: var(--ink-2); margin: 0 0 20px; }
.skin-night .sp-narrow .sp-card > p { color: var(--ink-2); }
.sp-find { display: flex; flex-direction: column; gap: 12px; }
.sp-find-input { display: flex; align-items: center; gap: 4px; padding: 0 14px; }
.sp-find-input input { flex: 1; min-width: 0; border: 0; background: transparent; font: 600 17px var(--body); color: inherit; padding: 13px 0; outline: none; }
.sp-suffix { color: var(--ink-2); font-size: 15px; white-space: nowrap; }
.sp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.sp-find .btn { align-self: stretch; justify-content: center; }
.sp-demo { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.sp-demo p { margin: 0 0 4px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.sp-demo a { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none !important; }
.sp-demo a:hover { border-color: var(--accent); }
.sp-demo span { color: var(--ink-2); font-weight: 400; font-size: 14px; }
.sp-foot { margin: 20px 0 0 !important; font-size: 14.5px; }
.sp-done { text-align: center; }
.sp-tick { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: 22px; font-weight: 800; margin-bottom: 14px; }

@media (max-width: 760px) {
  .sp-contact, .sp-row { grid-template-columns: minmax(0, 1fr); }
  .sp-head, .sp-narrow { padding-top: 40px; }
  .sp-card { padding: 22px; }
}

/* Integrations: tiles link to a page each */
.int-tiles li { padding: 0; }
.int-link { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 18px; width: 100%; color: inherit; text-decoration: none; border-radius: inherit; position: relative; }
.int-link:hover { outline: 2px solid var(--accent); outline-offset: -2px; }
.int-mono { display: inline-grid; place-items: center; border-radius: 14px; background: var(--soft); color: var(--ink); font: 800 18px var(--display); letter-spacing: -0.02em; }
.int-soon { font-style: normal; font-size: 11.5px; font-weight: 700; color: var(--ink-2); background: var(--soft); border-radius: 999px; padding: 2px 8px; }

/* Near-black brand marks: a white tile keeps them visible on dark colour schemes */
/* Dark brand marks get a white backing, drawn as a ring outside the image so it never shrinks the mark. */
img[src$="/logos/bigcommerce.svg"], img[src$="/logos/tiktok.svg"], img[src$="/logos/ups.svg"] { background: #fff; border-radius: 18%; box-shadow: 0 0 0 max(3px, 0.12em) #fff; }
/* Homepage strip: keep each name on one line. */
.plugs li, .plugs li span { white-space: nowrap; }

/* /integrations/<name> */
.ip-crumbs { padding-top: 28px; font-size: 14px; color: var(--ink-2); }
.ip-crumbs a { color: inherit; }
.ip-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 28px; align-items: start; padding-top: 24px; padding-bottom: 44px; border-bottom: 1px solid var(--line); }
.ip-logo { width: 112px; height: 112px; border-radius: 24px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; }
.ip-logo img { width: 72px; height: 72px; object-fit: contain; }
.ip-kind { margin: 0 0 6px; font-weight: 700; font-size: 14px; color: var(--ink-2); }
.ip-head h1 { font-size: clamp(32px, 4.2vw, 52px); line-height: 1.04; margin: 0 0 14px; max-width: 22ch; }
.ip-lede { margin: 0 0 16px; max-width: 60ch; font-size: 18px; line-height: 1.55; color: var(--ink-2); }
.ip-status { margin: 0 0 20px; font-weight: 600; font-size: 15px; color: var(--ink-2); }
.ip-status.is-ready::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #2fbf71; margin-right: 8px; }
.ip-status a { color: var(--ink); font-weight: 700; }
.ip-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.ip-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; padding-top: 40px; padding-bottom: 88px; }
.ip-body h2 { font-size: clamp(22px, 2.4vw, 28px); margin: 0 0 14px; }
.ip-body h2:not(:first-child) { margin-top: 36px; }
.ip-body p { color: var(--ink-2); font-size: 16.5px; line-height: 1.65; max-width: 64ch; margin: 0; }
.ip-caps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ip-caps li { position: relative; padding-left: 30px; font-weight: 600; font-size: 16px; }
.ip-caps li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 6px; background: var(--accent); color: var(--accent-ink); font-size: 12px; display: grid; place-items: center; }
.ip-notice { margin-top: 32px; font-size: 13px; color: var(--ink-2); }
.ip-side h3 { font-size: 17px; margin: 0 0 12px; }
.ip-related { display: grid; gap: 8px; margin-bottom: 16px; }
.ip-related a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; color: inherit; text-decoration: none; font-weight: 600; font-size: 14.5px; }
.ip-related a:hover { border-color: var(--accent); }
.ip-related img, .ip-related .int-mono { width: 28px; height: 28px; object-fit: contain; border-radius: 8px; font-size: 11px; }
.ip-side p a { color: var(--ink); font-weight: 700; }
@media (max-width: 860px) {
  .ip-head, .ip-body { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .ip-logo { width: 84px; height: 84px; }
}

/* Customer stories (Super Admin › Website text) */
.stories { padding: 56px 48px; }
.stories h2 { font-size: clamp(26px, 3vw, 38px); margin: 0 0 22px; }
.story-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 18px; }
.story { display: flex; flex-direction: column; gap: 10px; padding: 24px; border: 1px solid var(--line, #e6e3ea); border-radius: 16px; background: var(--surface, #fff); }
.story-co { margin: 0; font-weight: 800; font-size: 15px; color: var(--ink); }
.story blockquote { margin: 0; font-family: var(--display); font-size: 21px; line-height: 1.35; color: var(--ink); }
.story-who { margin: 0; color: var(--ink-2); font-size: 14.5px; }
.story-body p { margin: 0 0 8px; color: var(--ink-2); font-size: 15.5px; }
.story-result { margin: 4px 0 0; padding-top: 12px; border-top: 1px solid var(--line, #e6e3ea); font-weight: 700; color: var(--ink); }
.story-link { color: var(--ink); font-weight: 700; font-size: 14.5px; }
@media (max-width: 720px) { .stories { padding: 40px 18px; } }

/* Integration pages: numbered set-up steps and questions */
.ip-steps { margin: 0 0 12px; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 10px; }
.ip-steps li { counter-increment: step; position: relative; padding-left: 40px; color: var(--ink-2); line-height: 1.5; }
.ip-steps li::before { content: counter(step); position: absolute; left: 0; top: -1px; width: 26px; height: 26px; border-radius: 999px; display: grid; place-items: center; font-weight: 800; font-size: 13px; background: var(--soft); color: var(--ink); }
.ip-body h3 { margin: 20px 0 6px; font-size: 17px; }
.ip-body h3 + p { margin: 0; color: var(--ink-2); }

/* How-to guides */
.guide h1 { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.05; margin: 8px 0 14px; }
.guide-lede { font-size: 18.5px; color: var(--ink-2); margin: 0 0 28px; max-width: 60ch; }
.guide h2 { font-size: clamp(21px, 2.3vw, 26px); margin: 34px 0 12px; }
.guide p, .guide li { color: var(--ink-2); line-height: 1.55; }
.guide ul { padding-left: 1.2em; display: grid; gap: 6px; }
.guide a { color: var(--ink); font-weight: 700; }
.guide-foot { margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--line, #e6e3ea); }
.guide { text-align: left; max-width: 780px; margin-left: auto; margin-right: auto; }
.guide h1, .guide h2, .guide p { text-align: left; }
.guide ul { margin: 0 0 12px; }
/* Guides are one left-aligned column: .sp-narrow's centred grid squeezed them. */
.sp-narrow.guide { display: block; justify-items: normal; }
.guide h1, .guide h2, .guide h3, .guide p, .guide ul, .guide ol { text-align: left; }
.guide-shot { margin: 6px 0 22px; }
.guide-shot a { display: block; border-radius: 14px; overflow: hidden; border: 1px solid var(--line, #e6e3ea); background: #fff; }
.guide-shot a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.guide-shot img { display: block; width: 100%; height: auto; }
