/* Shplity pages (landing, privacy, terms, support).
   Loaded after /styles.css and only adds what long-form legal and help
   pages need: breadcrumb masthead, readable headings, prose links,
   stacked key/value rows and a links row in the footer. */

/* Masthead: "Limbus Labs Ltd / Shplity" breadcrumb in the .eyebrow style */
.crumbs {
  margin: 0;
  font-size: clamp(1.1rem, 2.8vw, 1.35rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.crumbs a {
  color: var(--text);
  text-decoration: none;
}

.crumbs a:hover {
  color: var(--accent);
}

.crumbs .sep {
  margin: 0 0.45rem;
  color: var(--muted);
  font-weight: 400;
}

.page-head {
  margin-top: clamp(2.5rem, 7vw, 4rem);
}

.page-head .lede {
  max-width: 46ch;
}

.updated {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Long-form content */
.doc {
  margin-top: clamp(2.25rem, 6vw, 3.5rem);
}

.doc > section {
  margin-top: 2.75rem;
  scroll-margin-top: 1.5rem;
}

.doc > section:first-child {
  margin-top: 0;
}

.doc h2 {
  margin: 0 0 0.85rem;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--text);
  font-weight: 700;
}

.doc h3 {
  margin: 1.75rem 0 0.5rem;
  font-size: 1.05rem;
  letter-spacing: -0.005em;
}

.doc p {
  margin: 0 0 1rem;
}

.doc ul,
.doc ol {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.doc li {
  margin-bottom: 0.45rem;
}

.doc li::marker {
  color: var(--muted);
}

.doc a,
.panel a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.doc a:hover,
.panel a:hover {
  color: var(--accent);
}

.muted {
  color: var(--muted);
}

/* Summary / notice box */
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  margin: 0 0 1.5rem;
}

.panel h2 {
  margin: 0 0 0.75rem;
}

.panel ul {
  margin: 0;
  padding-left: 1.25rem;
}

.panel li {
  margin-bottom: 0.4rem;
}

.panel li:last-child,
.panel p:last-child {
  margin-bottom: 0;
}

/* Contents list */
.toc ol {
  margin: 0;
  padding-left: 1.4rem;
  columns: 2 16rem;
  column-gap: 2rem;
}

.toc li {
  break-inside: avoid;
}

/* Key/value rows: two columns on wide screens, stacked on phones */
.rows {
  margin: 0 0 1.25rem;
  border-top: 1px solid var(--line);
}

.row {
  display: grid;
  grid-template-columns: minmax(0, 12rem) minmax(0, 1fr);
  gap: 0.35rem 1.5rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
}

.row dt {
  margin: 0;
  font-weight: 600;
}

.row dd {
  margin: 0;
}

.row dd p {
  margin: 0 0 0.5rem;
}

.row dd p:last-child {
  margin-bottom: 0;
}

.basis {
  display: inline-block;
  margin-top: 0.35rem;
  padding: 0.1rem 0.6rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #d6ccff;
  font-size: 0.82rem;
  font-weight: 600;
}

@media (max-width: 560px) {
  .row {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Numbered steps */
.steps {
  counter-reset: step;
  list-style: none;
  padding-left: 0 !important;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 2.25rem;
  margin-bottom: 0.7rem;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.05rem;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--accent-soft);
  color: #d6ccff;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.5rem;
  text-align: center;
}

/* Landing page link cards reuse .product; make the whole title a link */
.product h3 a {
  color: var(--text);
  text-decoration: none;
}

.product h3 a::after {
  content: " →";
  color: var(--accent);
}

.product:hover h3 a {
  color: var(--text);
}

/* Footer links row */
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin: 0 0 1.75rem;
  padding: 0;
  list-style: none;
}

/* Current page: plain text colour (accent text is under 4.5:1 on --bg),
   marked by a heavier underline instead */
.footer-links a[aria-current="page"] {
  color: var(--text);
  font-weight: 600;
  border-bottom-width: 2px;
}
