/* SmartLinks legal & support pages. Loaded after sl.css, reuses its tokens, nav and footer. */

.legal-hero {
  padding: calc(var(--nav-h) + 48px) 0 40px;
  background:
    radial-gradient(60% 120% at 100% 0%, var(--tint) 0%, transparent 60%),
    linear-gradient(180deg, #fff 0%, var(--page) 100%);
  border-bottom: 1px solid var(--line);
}
.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 18px;
}
.crumbs a {
  color: var(--label);
  font-weight: 600;
}
.crumbs a:hover {
  color: var(--brand);
}
.crumbs li + li::before {
  content: "/";
  margin-right: 6px;
  color: var(--faint);
}
.legal-hero h1 {
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 800;
}
.legal-hero .lede {
  margin-top: 14px;
  max-width: 64ch;
  font-size: 18px;
  color: var(--label);
}
.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 20px;
  font-size: 14px;
  color: var(--muted);
}
.meta strong {
  color: var(--ink);
  font-weight: 650;
}

/* Two columns: sticky contents + body */
.legal-body {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 56px;
  padding-block: 48px 88px;
  align-items: start;
}
.toc {
  position: sticky;
  top: calc(var(--nav-h) + 20px);
  max-height: calc(100vh - var(--nav-h) - 40px);
  overflow: auto;
  font-size: 14px;
}
.toc p {
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 10px;
}
.toc ol {
  display: grid;
  gap: 2px;
  border-left: 1px solid var(--line);
}
.toc a {
  display: block;
  padding: 5px 12px;
  margin-left: -1px;
  border-left: 2px solid transparent;
  color: var(--label);
  line-height: 1.4;
}
.toc a:hover {
  color: var(--ink);
}
.toc a[aria-current="true"] {
  color: var(--brand);
  border-left-color: var(--brand);
  font-weight: 650;
}

/* Long-form text */
.prose {
  max-width: 74ch;
  color: var(--label);
  font-size: 16.5px;
  line-height: 1.7;
}
.prose > section {
  padding-top: 8px;
}
.prose > section + section {
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.prose h2 {
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: -0.015em;
  font-weight: 750;
  color: var(--ink);
  margin-bottom: 14px;
}
.prose h2 .n {
  color: var(--brand);
  font-variant-numeric: tabular-nums;
  margin-right: 8px;
}
.prose h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin: 24px 0 8px;
}
.prose p,
.prose ul,
.prose ol,
.prose .table-wrap,
.prose .callout {
  margin-top: 12px;
}
.prose h2 + p,
.prose h3 + p {
  margin-top: 0;
}
.prose ul,
.prose ol {
  padding-left: 22px;
  display: grid;
  gap: 6px;
}
.prose ul {
  list-style: disc;
}
.prose ol {
  list-style: lower-alpha;
}
.prose li::marker {
  color: var(--faint);
}
.prose strong {
  color: var(--ink);
  font-weight: 650;
}
.prose a {
  color: var(--brand);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.prose a:hover {
  color: var(--brand-hover);
}
.prose code {
  font-family: var(--mono);
  font-size: 0.86em;
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--fill);
  color: var(--ink);
}

.callout {
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid #bfdbfe;
  background: var(--tint);
  color: var(--ink);
}
.callout--warn {
  border-color: #fde68a;
  background: #fffbeb;
}
.callout p + p {
  margin-top: 8px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
}
.prose table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.5;
}
.prose th,
.prose td {
  text-align: left;
  vertical-align: top;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}
.prose tr:last-child td {
  border-bottom: 0;
}
.prose th {
  background: var(--fill);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.prose td:first-child {
  color: var(--ink);
  font-weight: 600;
}

/* Solution landing pages */
.sol-hero {
  padding-bottom: 56px;
}
.sol-hero .kicker {
  margin-bottom: 10px;
}
.sol-hero h1 {
  max-width: 20ch;
}
.sol-hero .cta-row {
  margin-top: 28px;
}
.cards.cards--tight {
  padding-block: 0;
}

/* Legal hub cards and support contact cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  padding-block: 48px 88px;
}
.card-link {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--card);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s var(--ease);
}
.card-link:hover {
  border-color: #bfdbfe;
  box-shadow: 0 18px 40px -24px rgba(37, 99, 235, 0.35);
  transform: translateY(-2px);
}
.card-link .ico {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--tint);
  color: var(--brand);
}
.card-link .ico .i {
  width: 20px;
  height: 20px;
}
.card-link h2,
.card-link h3 {
  font-size: 18px;
  font-weight: 750;
  letter-spacing: -0.01em;
  margin-top: 6px;
}
.card-link p {
  color: var(--muted);
  font-size: 15px;
}
.card-link .go {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 8px;
  color: var(--brand);
  font-weight: 650;
  font-size: 15px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 16px;
}
.contact-card {
  padding: 18px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--card);
}
.contact-card h3 {
  margin: 0 0 4px;
  font-size: 15px;
}
.contact-card p {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
}
.contact-card a {
  display: inline-block;
  margin-top: 8px;
}

.faq-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}
.faq-list details {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
}
.faq-list summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
  color: var(--ink);
  font-weight: 650;
}
.faq-list summary::-webkit-details-marker {
  display: none;
}
.faq-list summary .i {
  color: var(--muted);
  transition: transform 0.25s var(--ease);
}
.faq-list details[open] summary .i {
  transform: rotate(45deg);
}
.faq-list details p {
  margin: 0;
  padding: 0 16px 16px;
}

@media (max-width: 959px) {
  .legal-body {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding-top: 28px;
  }
  .toc {
    position: static;
    max-height: none;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--card);
  }
  .toc ol {
    border-left: 0;
  }
  .toc a {
    padding: 4px 0;
    border-left: 0;
  }
}
@media (max-width: 560px) {
  .legal-hero {
    padding-top: calc(var(--nav-h) + 28px);
  }
  .legal-hero .lede {
    font-size: 16.5px;
  }
  .prose {
    font-size: 16px;
  }
}
@media print {
  .nav,
  .toc,
  .foot,
  .skip-link {
    display: none !important;
  }
  .legal-hero {
    padding-top: 0;
    background: none;
  }
  .legal-body {
    display: block;
    padding: 0;
  }
  .prose {
    max-width: none;
    color: #000;
  }
}
