/* Subpages — service landing pages and legal documents */

/* Page hero */
.page-hero { position: relative; isolation: isolate; border-bottom: 1px solid var(--ds-line); }
.page-hero__inner { display: flex; flex-direction: column; gap: 26px; padding-block: 96px 80px; }
.page-hero .eyebrow { line-height: 1.5; }
.page-title { max-width: 1040px; font-size: var(--ds-fs-h2); font-weight: 600; letter-spacing: -.045em; line-height: 1; text-wrap: balance; }
.page-hero__lead { max-width: 680px; font-size: 18.5px; line-height: 1.6; color: var(--ds-ink-3); text-wrap: pretty; }
.page-hero__lead + .page-hero__lead { margin-top: -10px; font-size: 17px; color: var(--ds-ink-2); }
.page-hero .hero__ctas { margin-top: 4px; }

/* Two-column body: content (max 680px) + sticky aside (320px) */
.page-body { display: grid; grid-template-columns: minmax(0, 680px) 320px; justify-content: space-between; align-items: start; gap: 56px 64px; padding-block: 88px 48px; }
.page-content { display: flex; flex-direction: column; gap: 80px; min-width: 0; }
.page-section { display: flex; flex-direction: column; gap: 18px; scroll-margin-top: 96px; }
.page-section h2 { font-size: clamp(28px, 3vw, 40px); font-weight: 600; letter-spacing: -.035em; line-height: 1.08; text-wrap: balance; }
.page-section > p { font-size: 17px; line-height: 1.65; color: var(--ds-ink-2); text-wrap: pretty; }
.page-section > p:first-of-type { color: var(--ds-ink-3); }

.deliverables { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 12px; margin-top: 10px; }
.deliverables article { display: flex; flex-direction: column; gap: 8px; padding: 22px; background: var(--ds-surface); border: 1px solid var(--ds-line); border-radius: var(--ds-r-xl);
  transition: border-color var(--ds-med) ease, background var(--ds-med) ease, transform var(--ds-med) ease; }
.deliverables article:hover { border-color: var(--ds-slate-mid); background: var(--ds-surface-hover); transform: translateY(-3px); }
.deliverables h3 { font-size: 18px; font-weight: 600; letter-spacing: -.015em; line-height: 1.3; color: #fff; }
.deliverables p { font-size: 15px; line-height: 1.55; color: var(--ds-ink-2); text-wrap: pretty; }

.steps { margin-top: 10px; border-top: 1px solid var(--ds-line); }
.steps li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 20px; align-items: start; padding: 22px 0; border-bottom: 1px solid var(--ds-line); }
.steps__num { width: 40px; height: 40px; display: grid; place-items: center; font: 400 12px/1 var(--ds-font-mono); color: var(--ds-bg); background: var(--ds-sage); border-radius: 50%; }
.steps h3 { font-size: 19px; font-weight: 600; letter-spacing: -.015em; line-height: 1.3; color: #fff; }
.steps p { margin-top: 6px; font-size: 15.5px; line-height: 1.6; color: var(--ds-ink-2); text-wrap: pretty; }

.fit { margin-top: 10px; border-top: 1px solid var(--ds-line); }
.fit article { padding: 20px 0; border-bottom: 1px solid var(--ds-line); }
.fit h3 { font-size: 18px; font-weight: 600; letter-spacing: -.015em; line-height: 1.3; color: #fff; }
.fit p { margin-top: 6px; font-size: 15.5px; line-height: 1.6; color: var(--ds-ink-2); text-wrap: pretty; }

.checklist { display: flex; flex-direction: column; gap: 12px; }
.checklist li { display: flex; gap: 12px; font-size: 16px; line-height: 1.55; color: var(--ds-ink-2); }
.checklist li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 3px; background: var(--ds-sage);
  -webkit-mask: url(../icons/ds-check.svg) center / contain no-repeat; mask: url(../icons/ds-check.svg) center / contain no-repeat; }
.page-section .checklist { margin-top: 10px; }

/* Aside */
.page-aside { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 14px; }
.aside-card { display: flex; flex-direction: column; gap: 16px; padding: 24px; background: var(--ds-surface); border: 1px solid var(--ds-line-2); border-radius: var(--ds-r-2xl); }
.aside-card--accent { background: linear-gradient(160deg, var(--ds-surface-3) 0%, var(--ds-surface) 60%); }
.aside-card .checklist li { font-size: 15px; }
.aside-out { font-size: 19px; font-weight: 500; letter-spacing: -.015em; line-height: 1.35; color: #fff; }
.aside-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.aside-card .btn { width: 100%; }
.aside-mail { font-size: 14px; color: var(--ds-ink-2); text-align: center; }

@media (max-width: 1080px) {
  .page-body { grid-template-columns: minmax(0, 1fr); }
  .page-content { max-width: 680px; }
  .page-aside { position: static; max-width: 680px; }
}

/* Closing call to action */
.cta-panel { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; gap: 22px;
  padding: clamp(28px, 4.4vw, 64px); border: 1px solid var(--ds-line-2); border-radius: var(--ds-r-3xl);
  background: radial-gradient(900px circle at 0% 0%, rgba(98,124,131,.35), transparent 60%), var(--ds-surface); }
.cta-panel h2 { max-width: 900px; font-size: var(--ds-fs-h2); font-weight: 600; letter-spacing: -.045em; line-height: 1; text-wrap: balance; }
.cta-panel p { max-width: 620px; font-size: 17px; line-height: 1.6; color: var(--ds-ink-2); text-wrap: pretty; }
.section--cta { padding-block: 48px 128px; }

/* Legal documents: single 720px column, 17px body, 28px H2 */
.legal { max-width: 720px; padding-block: 88px 128px; }
.legal-head { display: flex; flex-direction: column; gap: 18px; margin-bottom: 40px; }
.legal-head h1 { font-size: var(--ds-fs-h2); font-weight: 600; letter-spacing: -.045em; line-height: 1; text-wrap: balance; }
.legal h2 { margin: 56px 0 16px; font-size: 28px; font-weight: 600; letter-spacing: -.025em; line-height: 1.2; color: #fff; text-wrap: balance; }
.legal h3 { margin: 32px 0 12px; font-size: 20px; font-weight: 600; letter-spacing: -.015em; line-height: 1.3; color: #fff; }
.legal p, .legal li { font-size: 17px; line-height: 1.7; color: var(--ds-ink-2); }
.legal p + p { margin-top: 16px; }
.legal strong { font-weight: 600; color: var(--ds-ink); }
.legal a { color: var(--ds-sage); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.legal a:hover { color: var(--ds-sage-hover); }
.legal section { scroll-margin-top: 96px; }
.legal section > h2:first-child { margin-top: 64px; }

.notice-box { margin: 24px 0; padding: 18px 22px; background: var(--ds-surface); border: 1px solid var(--ds-line-2); border-left: 2px solid var(--ds-sage); border-radius: var(--ds-r-md); }
.notice-box p { font-size: 16px; line-height: 1.6; }

.legal-toc { margin: 32px 0; padding: 22px 24px; background: var(--ds-surface); border: 1px solid var(--ds-line); border-radius: var(--ds-r-lg); }
.legal .legal-toc-title { margin-bottom: 12px; font: 500 10.5px/1.2 var(--ds-font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ds-ink-muted); }
.legal-toc ol { list-style: decimal; padding-left: 1.4em; }
.legal-toc li { font-size: 16px; line-height: 1.6; }
.legal-toc li + li { margin-top: 4px; }
.legal-toc li::marker { font: 400 12px var(--ds-font-mono); color: var(--ds-slate-mid); }
.legal-toc a { text-decoration: none; color: var(--ds-ink-2); }
.legal-toc a:hover { color: var(--ds-sage); }

.legal-table-scroll { margin: 24px 0; overflow-x: auto; border: 1px solid var(--ds-line-2); border-radius: var(--ds-r-md); }
.legal-table { width: 100%; min-width: 520px; border-collapse: collapse; }
.legal-table th, .legal-table td { padding: 12px 16px; border-bottom: 1px solid var(--ds-line); text-align: left; vertical-align: top; font-size: 15px; line-height: 1.55; color: var(--ds-ink-2); }
.legal-table tr:last-child td { border-bottom: 0; }
.legal-table th { background: var(--ds-surface-2); font: 500 10.5px/1.3 var(--ds-font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ds-ink-muted); }

.footer__col a[aria-current="page"] { color: var(--ds-sage); }

@media print {
  body { background: #fff; color: #000; }
  .site-header, .footer, .skip, .legal-toc { display: none; }
  .legal { max-width: none; padding-block: 0; }
  .legal-head h1, .legal h2, .legal h3, .legal strong, .legal p, .legal li, .legal-table th, .legal-table td { color: #000; }
  .legal-head .serif, .legal .eyebrow { color: #000; }
  .legal a { color: #000; }
  .notice-box, .legal-table th { background: none; border-color: #999; }
  .legal-table-scroll { overflow: visible; border-color: #999; }
}
