/**
 * L3dgr docs, Fors33 Relay, and Docker Extension — legal-hub column layout.
 */

.l3dgr-docs-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  box-sizing: border-box;
}

.l3dgr-docs-page .legal-hub {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.l3dgr-docs-page .legal-section-title {
  text-align: center;
  margin-bottom: 0.75rem;
}

.l3dgr-docs-page .legal-section-deck {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1.75rem;
}

.l3dgr-docs-page .legal-section-deck--wide {
  max-width: none;
  width: 100%;
}

.l3dgr-docs-page .legal-section {
  padding-top: 2.5rem;
}

.l3dgr-docs-page .legal-section:first-of-type {
  border-top: none;
  padding-top: 0;
}

.l3dgr-docs-page .l3dgr-docs-footer-nav {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  text-align: center;
}

.l3dgr-docs-page .l3dgr-hub-footer .l3dgr-docs-footer-nav {
  margin-top: 0;
  padding-top: 0;
}

.l3dgr-docs-page .l3dgr-docs-compare-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--fors33-border);
  background: transparent;
  table-layout: fixed;
}

.l3dgr-docs-page .l3dgr-docs-compare-table th,
.l3dgr-docs-page .l3dgr-docs-compare-table td {
  padding: 0.9rem 1rem;
  border: 1px solid var(--fors33-border);
  text-align: left;
  vertical-align: top;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--fors33-text-muted);
}

.l3dgr-docs-page .l3dgr-docs-compare-table thead th {
  font-family: var(--fors33-font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--fors33-accent-cyan);
  text-align: center;
}

.l3dgr-docs-page .l3dgr-docs-compare-table tbody th {
  font-family: var(--fors33-font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--fors33-text);
  width: 18%;
}

body[data-surface-id='l3dgr-extension'] #docker-permissions .l3dgr-docs-compare-table th,
body[data-surface-id='l3dgr-extension'] #docker-permissions .l3dgr-docs-compare-table td {
  padding: 0.7rem 0.9rem;
}

body[data-surface-id='l3dgr-relay-docs'] #options .legal-extension-grid {
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  body[data-surface-id='l3dgr-relay-docs'] #options .legal-extension-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

body[data-surface-id='l3dgr-relay-docs'] #options .legal-extension-card p {
  max-width: none;
}

body[data-surface-id='l3dgr-relay-docs'] #options .legal-extension-card p + p {
  margin-top: 0.5rem;
}

.l3dgr-docs-page .l3dgr-upgrade-beta-cta {
  text-align: center;
  margin-top: 1.5rem;
}

.l3dgr-docs-page .l3dgr-upgrade-disclaimer {
  max-width: 72ch;
  margin: 1.75rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--fors33-border);
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--fors33-text-muted);
  text-align: center;
}

body[data-surface-id='l3dgr-extension'] #docker-extension {
  padding-bottom: 2.5rem;
}

body[data-surface-id='l3dgr-extension'] .l3dgr-extension-telemetry {
  margin-top: 1.75rem;
  text-align: center;
}

body[data-surface-id='l3dgr-extension'] .l3dgr-extension-telemetry h3 {
  margin: 0 0 0.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--fors33-accent-cyan);
  font-family: var(--fors33-font-mono);
  letter-spacing: 0.02em;
}

body[data-surface-id='l3dgr-extension'] .l3dgr-extension-telemetry p {
  margin: 0 auto;
  max-width: 72ch;
  font-size: 0.875rem;
  color: var(--fors33-text-muted);
  line-height: 1.55;
}

body[data-surface-id='l3dgr-extension'] .l3dgr-extension-telemetry .legal-extension-telemetry-readout {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 0.45rem;
  margin: 0.85rem auto 0;
  max-width: 52rem;
  text-align: center;
}

body[data-surface-id='l3dgr-extension'] .l3dgr-extension-telemetry .legal-extension-telemetry-readout code {
  margin: 0;
}

.l3dgr-docs-page .l3dgr-docs-readout-grid,
body[data-surface-id='l3dgr-extension'] .l3dgr-extension-journey {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--fors33-border);
  border-radius: 2px;
  background: transparent;
}

.l3dgr-docs-page .l3dgr-docs-readout-grid {
  margin-bottom: 1.75rem;
}

.l3dgr-docs-page .l3dgr-docs-readout-cell,
body[data-surface-id='l3dgr-extension'] .l3dgr-extension-journey-step {
  margin: 0;
  padding: 1.25rem;
  text-align: center;
  border-right: 1px solid var(--fors33-border);
  box-sizing: border-box;
  list-style: none;
}

.l3dgr-docs-page .l3dgr-docs-readout-cell:last-child,
body[data-surface-id='l3dgr-extension'] .l3dgr-extension-journey-step:last-child {
  border-right: none;
}

.l3dgr-docs-page .l3dgr-docs-readout-cell > h3,
body[data-surface-id='l3dgr-extension'] .l3dgr-extension-journey-step > strong {
  display: block;
  margin: 0 0 0.5rem;
  color: var(--fors33-accent-cyan);
  font-family: var(--fors33-font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.l3dgr-docs-page .l3dgr-docs-readout-cell p,
body[data-surface-id='l3dgr-extension'] .l3dgr-extension-journey-step p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--fors33-text-muted);
  line-height: 1.55;
}

@media (max-width: 900px) {
  .l3dgr-docs-page .l3dgr-docs-readout-grid,
  body[data-surface-id='l3dgr-extension'] .l3dgr-extension-journey {
    grid-template-columns: 1fr;
  }

  .l3dgr-docs-page .l3dgr-docs-readout-cell,
  body[data-surface-id='l3dgr-extension'] .l3dgr-extension-journey-step {
    border-right: none;
    border-bottom: 1px solid var(--fors33-border);
  }

  .l3dgr-docs-page .l3dgr-docs-readout-cell:last-child,
  body[data-surface-id='l3dgr-extension'] .l3dgr-extension-journey-step:last-child {
    border-bottom: none;
  }
}

@media (max-width: 720px) {
  .l3dgr-docs-page .l3dgr-docs-compare-table thead {
    display: none;
  }

  .l3dgr-docs-page .l3dgr-docs-compare-table,
  .l3dgr-docs-page .l3dgr-docs-compare-table tbody,
  .l3dgr-docs-page .l3dgr-docs-compare-table tr,
  .l3dgr-docs-page .l3dgr-docs-compare-table th,
  .l3dgr-docs-page .l3dgr-docs-compare-table td {
    display: block;
    width: 100%;
  }

  .l3dgr-docs-page .l3dgr-docs-compare-table tbody th {
    border-bottom: none;
    padding-bottom: 0.35rem;
    width: 100%;
  }

  .l3dgr-docs-page .l3dgr-docs-compare-table td::before {
    display: block;
    margin-bottom: 0.25rem;
    font-family: var(--fors33-font-mono);
    font-size: 0.6875rem;
    color: var(--fors33-accent-cyan);
  }

  body[data-surface-id='l3dgr-relay-docs'] .l3dgr-relay-compare-table td:nth-of-type(1)::before {
    content: 'Included in L3dgr (edge)';
  }

  body[data-surface-id='l3dgr-relay-docs'] .l3dgr-relay-compare-table td:nth-of-type(2)::before {
    content: 'Fors33 Relay add-on';
  }

  body[data-surface-id='l3dgr-extension'] .l3dgr-docs-compare-table td::before {
    content: 'Access';
  }
}
