/* Toolora docs: help centre, terms and privacy. */

.docs-main {
  position: relative;
  z-index: 1;
  justify-content: flex-start;
  padding-top: clamp(7rem, 10vw, 9rem);
  padding-bottom: 6rem;
}

.docs-hero {
  max-width: 820px;
  margin: 0 0 clamp(2.2rem, 5vw, 3.5rem);
}

.docs-hero h1 {
  margin: .55rem 0 1rem;
  font-size: clamp(2.4rem, 5vw, 4.1rem);
  line-height: .98;
  letter-spacing: -.055em;
}

.docs-hero .page-lead {
  max-width: 62ch;
  margin-bottom: 1.5rem;
}

.docs-search {
  position: relative;
  max-width: 460px;
}

.docs-search svg {
  position: absolute;
  left: 1rem;
  top: 50%;
  width: 17px;
  height: 17px;
  transform: translateY(-50%);
  color: #777;
  pointer-events: none;
}

.docs-search input {
  width: 100%;
  padding: .85rem 1rem .85rem 2.7rem;
  border: 1px solid var(--faint);
  border-radius: 12px;
  background: rgba(255, 255, 255, .035);
  color: #fff;
  font: inherit;
  font-size: .92rem;
  outline: none;
  transition: border-color .2s, background .2s;
}

.docs-search input:focus {
  border-color: rgba(255, 255, 255, .42);
  background: rgba(255, 255, 255, .06);
}

.docs-search-empty {
  margin: .7rem 0 0;
  color: #8b8b8b;
  font-size: .82rem;
}

.docs-quick {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .7rem;
  margin-top: 2rem;
}

.docs-quick a {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  padding: 1rem;
  border: 1px solid var(--faint);
  border-radius: 14px;
  background: rgba(255, 255, 255, .025);
  color: #fff;
  text-decoration: none;
  transition: background .2s, border-color .2s, transform .2s;
}

.docs-quick a:hover {
  background: rgba(255, 255, 255, .055);
  border-color: rgba(255, 255, 255, .24);
  transform: translateY(-2px);
}

.docs-quick b { font-size: .88rem; letter-spacing: -.01em; }
.docs-quick span { color: #7f7f7f; font-size: .76rem; line-height: 1.45; }
.docs-quick .ic { width: 20px; height: 20px; color: #bdbdbd; }

.docs-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

/* --------------------------------------------------------------- sidebar */

.docs-side {
  position: sticky;
  top: 6.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  max-height: calc(100vh - 8rem);
  overflow: auto;
  padding-right: .4rem;
  scrollbar-width: thin;
}

.docs-side nav { display: flex; flex-direction: column; }

.docs-side-label {
  margin: 1.15rem 0 .45rem;
  color: #666;
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.docs-side-label:first-child { margin-top: 0; }

.docs-side nav a {
  display: block;
  padding: .38rem 0 .38rem .85rem;
  border-left: 1px solid var(--faint);
  color: #9a9a9a;
  font-size: .83rem;
  line-height: 1.4;
  text-decoration: none;
  transition: color .18s, border-color .18s;
}

.docs-side nav a:hover { color: #fff; border-left-color: rgba(255, 255, 255, .4); }
.docs-side nav a.on { color: #fff; border-left-color: #fff; font-weight: 600; }

.docs-side-card {
  padding: 1rem;
  border: 1px solid var(--faint);
  border-radius: 14px;
  background: rgba(255, 255, 255, .025);
}

.docs-side-card b { display: block; margin-bottom: .3rem; font-size: .84rem; }
.docs-side-card p { margin: 0 0 .7rem; color: #858585; font-size: .76rem; line-height: 1.5; }
.docs-side-card a { color: #fff; font-size: .78rem; text-decoration: underline; text-underline-offset: 2px; }

/* --------------------------------------------------------------- content */

.docs-content { min-width: 0; max-width: 820px; }

.docs-section {
  padding: 2.3rem 0;
  border-top: 1px solid var(--faint);
  scroll-margin-top: 7rem;
}

.docs-section:first-child { border-top: 0; padding-top: 0; }

.docs-kicker {
  display: block;
  margin-bottom: .6rem;
  color: #6f6f6f;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.docs-section h2 {
  margin: 0 0 .8rem;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  letter-spacing: -.04em;
  line-height: 1.1;
}

.docs-section h3 {
  margin: 1.7rem 0 .55rem;
  font-size: 1.02rem;
  letter-spacing: -.02em;
}

.docs-section p,
.docs-section li {
  color: #a9a9a9;
  font-size: .94rem;
  line-height: 1.72;
}

.docs-section p { margin: 0 0 1rem; }
.docs-section p:last-child { margin-bottom: 0; }
.docs-section strong { color: #ededed; font-weight: 600; }
.docs-section a { color: #fff; text-decoration: underline; text-underline-offset: 2px; text-decoration-color: rgba(255, 255, 255, .35); }
.docs-section a:hover { text-decoration-color: #fff; }

.docs-section ul, .docs-section ol { margin: 0 0 1.1rem; padding-left: 1.15rem; }
.docs-section li { margin-bottom: .35rem; }
.docs-section li::marker { color: #6f6f6f; }

.docs-steps {
  counter-reset: step;
  list-style: none;
  padding-left: 0 !important;
  display: grid;
  gap: .7rem;
  margin: 1.1rem 0 1.4rem !important;
}

.docs-steps li {
  position: relative;
  counter-increment: step;
  padding: .85rem 1rem .85rem 3rem;
  border: 1px solid var(--faint);
  border-radius: 12px;
  background: rgba(255, 255, 255, .02);
  margin: 0 !important;
}

.docs-steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 1rem;
  top: .85rem;
  color: #6f6f6f;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
}

.docs-steps b { display: block; margin-bottom: .1rem; color: #fff; font-size: .9rem; }
.docs-steps span { color: #949494; font-size: .86rem; line-height: 1.6; }

.docs-figure {
  margin: 1.4rem 0;
  border: 1px solid var(--faint);
  border-radius: 16px;
  background: #050505;
  overflow: hidden;
}

.docs-figure img { display: block; width: 100%; height: auto; }

.docs-figure figcaption {
  padding: .7rem 1rem;
  border-top: 1px solid var(--faint);
  color: #7c7c7c;
  font-size: .76rem;
  line-height: 1.5;
}

.docs-callout {
  margin: 1.2rem 0;
  padding: .9rem 1rem;
  border: 1px solid var(--faint);
  border-left: 2px solid #bdbdbd;
  border-radius: 10px;
  background: rgba(255, 255, 255, .025);
}

.docs-callout b { display: block; margin-bottom: .2rem; color: #fff; font-size: .84rem; }
.docs-callout p { margin: 0; font-size: .86rem; line-height: 1.6; }
.docs-callout.tip { border-left-color: #4ade80; }
.docs-callout.warn { border-left-color: #fbbf24; }

.docs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .7rem;
  margin: 1.1rem 0 1.3rem;
}

.docs-grid div {
  padding: .9rem 1rem;
  border: 1px solid var(--faint);
  border-radius: 12px;
  background: rgba(255, 255, 255, .02);
}

.docs-grid b { display: block; margin-bottom: .2rem; color: #fff; font-size: .86rem; }
.docs-grid span { color: #8b8b8b; font-size: .8rem; line-height: 1.55; }

.docs-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.4rem;
  font-size: .86rem;
}

.docs-table th, .docs-table td {
  padding: .7rem .2rem;
  border-bottom: 1px solid var(--faint);
  text-align: left;
  vertical-align: top;
}

.docs-table th { color: #6f6f6f; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; }
.docs-table td { color: #a9a9a9; }
.docs-table td:first-child { color: #ededed; }

.docs-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 1.3rem;
  padding: 1.3rem;
  border: 1px solid var(--faint);
  border-radius: 16px;
  background: rgba(255, 255, 255, .03);
}

.docs-cta div { flex: 1; min-width: 220px; }
.docs-cta b { display: block; margin-bottom: .2rem; }
.docs-cta p { margin: 0; font-size: .84rem; }
.docs-cta .btn { width: auto; }

/* --------------------------------------------------------- legal layout */

.legal-main {
  position: relative;
  z-index: 1;
  justify-content: flex-start;
  padding-top: clamp(7rem, 10vw, 9rem);
  padding-bottom: 6rem;
}

.legal-head { max-width: 780px; margin-bottom: 2.4rem; }
.legal-head h1 { margin: .5rem 0 .8rem; font-size: clamp(2.3rem, 4.6vw, 3.7rem); line-height: 1; letter-spacing: -.055em; }
.legal-head .page-lead { max-width: 62ch; }
.legal-meta { margin-top: 1rem; color: #6f6f6f; font-size: .78rem; }

.legal-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.legal-toc {
  position: sticky;
  top: 6.5rem;
  padding: 1rem;
  border: 1px solid var(--faint);
  border-radius: 14px;
  background: rgba(255, 255, 255, .025);
}

.legal-toc b {
  display: block;
  margin-bottom: .6rem;
  color: #6f6f6f;
  font-size: .66rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.legal-toc a {
  display: block;
  padding: .3rem 0;
  color: #9a9a9a;
  font-size: .8rem;
  text-decoration: none;
}

.legal-toc a:hover { color: #fff; }

.legal-content { max-width: 760px; }
.legal-content section { padding: 1.9rem 0; border-top: 1px solid var(--faint); scroll-margin-top: 7rem; }
.legal-content section:first-child { border-top: 0; padding-top: 0; }
.legal-content h2 { margin: 0 0 .7rem; font-size: clamp(1.25rem, 2vw, 1.55rem); letter-spacing: -.03em; }
.legal-content h3 { margin: 1.2rem 0 .4rem; font-size: .98rem; }
.legal-content p, .legal-content li { color: #a9a9a9; font-size: .92rem; line-height: 1.75; }
.legal-content p { margin: 0 0 .95rem; }
.legal-content ul { margin: 0 0 1rem; padding-left: 1.15rem; }
.legal-content li { margin-bottom: .3rem; }
.legal-content a { color: #fff; text-decoration: underline; text-underline-offset: 2px; text-decoration-color: rgba(255, 255, 255, .35); }
.legal-content strong { color: #ededed; }
.legal-note { padding: .9rem 1rem; border: 1px solid var(--faint); border-radius: 10px; background: rgba(255, 255, 255, .025); font-size: .84rem; }

/* ------------------------------------------------------------- responsive */

@media (max-width: 1000px) {
  .docs-layout, .legal-layout { grid-template-columns: 1fr; }
  .docs-side, .legal-toc { position: static; max-height: none; }
  .docs-side nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 .8rem; }
  .docs-side-label { grid-column: 1 / -1; }
  .docs-side-card { display: none; }
  .legal-toc { display: none; }
  .docs-quick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .docs-main, .legal-main { padding-top: 6.4rem; padding-bottom: 4rem; }
  .docs-hero h1 { font-size: clamp(2rem, 9vw, 2.8rem); }
  .docs-quick { grid-template-columns: 1fr; }
  .docs-grid { grid-template-columns: 1fr; }
  .docs-side nav { grid-template-columns: 1fr; }
  .docs-section { padding: 1.8rem 0; }
  .docs-figure { border-radius: 12px; }
  .docs-cta { flex-direction: column; align-items: flex-start; }
  .docs-cta .btn { width: 100%; }
}
