body.legal-page {
  background: var(--legal-page-bg);
}

.legal-shell {
  display: grid;
  width: min(860px, calc(100vw - 40px));
  margin: 0 auto;
  padding: 34px 0 52px;
  gap: 18px;
}

.legal-heading {
  max-width: 760px;
}

.legal-heading h1 {
  margin: 0;
  color: var(--legal-heading-text);
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
}

.legal-heading .intro {
  max-width: 720px;
  margin-top: 14px;
  color: var(--legal-body-text);
}

.legal-heading .summary-meta {
  color: var(--legal-muted-text);
}

.legal-section {
  border: 1px solid var(--legal-section-border);
  border-radius: 8px;
  background: var(--legal-section-bg);
  box-shadow: var(--legal-section-shadow);
  padding: 18px;
}

.legal-section h2 {
  margin: 0 0 10px;
  color: var(--legal-heading-text);
  font-size: 1.1rem;
  line-height: 1.25;
}

.legal-section p,
.legal-section li {
  color: var(--legal-body-text);
  line-height: 1.6;
}

.legal-section p {
  margin: 0 0 10px;
}

.legal-section p:last-child {
  margin-bottom: 0;
}

.legal-section ul {
  margin: 10px 0 0;
  padding-left: 22px;
}

.bookmark-shell {
  display: grid;
  width: min(980px, calc(100vw - 40px));
  margin: 0 auto;
  padding: 34px 0 56px;
  gap: 22px;
}

.bookmark-hero,
.bookmark-instructions > article {
  border: 1px solid rgba(119, 172, 223, 0.38);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 22px 60px rgba(49, 102, 157, 0.13);
}

.bookmark-hero {
  display: grid;
  gap: 20px;
  padding: 46px;
}

.bookmark-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 32px;
  margin-top: 8px;
  color: #145ac9;
  font-size: 17px;
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: grab;
}

.bookmark-link:hover {
  color: #0f4eb3;
}

.bookmark-link:active {
  cursor: grabbing;
}

.bookmark-instructions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.bookmark-instructions > article {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 24px;
}

.bookmark-instructions h2 {
  font-size: 22px;
}

.bookmark-instructions ol {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
  color: #4d6078;
  line-height: 1.55;
}

.about-shell {
  display: grid;
  width: min(1060px, calc(100vw - 40px));
  margin: 0 auto;
  padding: 34px 0 56px;
  gap: 24px;
}

.about-hero,
.about-panel,
.about-shortcuts,
.about-final-cta {
  border: 1px solid rgba(119, 172, 223, 0.38);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 22px 60px rgba(49, 102, 157, 0.13);
}

.about-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  gap: 46px;
  align-items: center;
  padding: 46px;
}

.about-hero-copy {
  display: grid;
  justify-items: start;
  gap: 16px;
}

.about-hero-copy .intro {
  max-width: 590px;
}

.about-preview {
  display: grid;
  gap: 18px;
  min-width: 0;
  padding: 24px;
  border: 1px solid rgba(99, 148, 196, 0.34);
  border-radius: 20px;
  background: #f7fbff;
  box-shadow: 0 18px 44px rgba(49, 102, 157, 0.12);
}

.about-preview-topline {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  color: #4d6078;
  font-size: 13px;
}

.about-preview-topline span {
  color: #145ac9;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.about-preview h2 {
  font-size: clamp(22px, 3vw, 30px);
}

.about-preview-section {
  display: grid;
  gap: 10px;
}

.about-preview-section h3 {
  margin-bottom: 2px;
  font-size: 16px;
}

.about-preview-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 12px;
  border-radius: 14px;
  background: #fff;
}

.about-preview-item p {
  margin-top: 4px;
  color: #4d6078;
  font-size: 14px;
  line-height: 1.45;
}

.about-preview-play {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: #d9ecff;
  color: #145ac9;
  font-size: 11px;
}

.about-preview-timestamp {
  color: #145ac9;
  font-size: 13px;
  font-weight: 850;
}

.about-benefits {
  display: grid;
  gap: 18px;
}

.about-section-heading {
  display: grid;
  align-content: start;
  gap: 10px;
}

.about-benefits > .about-section-heading {
  max-width: 640px;
  padding: 12px 4px 0;
}

.about-benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.about-panel {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 28px;
}

.about-benefit-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  background: #d9ecff;
  color: #145ac9;
  font-size: 13px;
  font-weight: 900;
}

.about-panel p,
.about-shortcuts p,
.about-shortcuts dd,
.about-final-cta p {
  color: #4d6078;
  font-size: 16px;
  line-height: 1.62;
}

.about-steps {
  display: grid;
  gap: 9px;
  margin: 0;
  padding-left: 20px;
  color: #4d6078;
  line-height: 1.55;
}

.about-how {
  gap: 22px;
}

.pricing-shell {
  display: grid;
  width: min(1060px, calc(100vw - 40px));
  margin: 0 auto;
  padding: 34px 0 56px;
  gap: 22px;
}

.pricing-hero {
  padding: 46px;
  border: 1px solid rgba(119, 172, 223, 0.38);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 22px 60px rgba(49, 102, 157, 0.13);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.pricing-plan {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 28px;
  border: 1px solid rgba(119, 172, 223, 0.38);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 22px 60px rgba(49, 102, 157, 0.12);
}

.pricing-plan-featured {
  border-color: rgba(20, 90, 201, 0.42);
}

.pricing-price {
  color: #12233b;
  font-size: 24px;
  font-weight: 850;
}

.pricing-plan ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
  color: #203650;
  line-height: 1.45;
}

.pricing-currency {
  max-width: 220px;
}

.upgrade-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.about-steps {
  counter-reset: about-step;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding-left: 0;
  list-style: none;
}

.about-steps li {
  counter-increment: about-step;
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 14px;
  border-radius: 14px;
  background: #f7fbff;
}

.about-steps li::before {
  content: counter(about-step);
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 10px;
  background: #d9ecff;
  color: #145ac9;
  font-size: 14px;
  font-weight: 900;
}

.about-shortcuts {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
  gap: 26px;
  align-items: start;
  padding: 28px;
}

.about-shortcut-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.about-shortcut-groups > section {
  display: grid;
  align-content: start;
  gap: 10px;
}

.about-shortcut-groups h3 {
  font-size: 17px;
}

.shortcut-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.shortcut-list > div {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 14px;
  background: #f7fbff;
}

.shortcut-list > .shortcut-list-stacked {
  grid-template-columns: 1fr;
  align-items: start;
}

.shortcut-list dt,
.shortcut-list dd {
  margin: 0;
}

.shortcut-keys {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  color: #4d6078;
  font-weight: 800;
}

.about-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 4px;
}

.about-cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  background: #145ac9;
  color: #fff;
  font-weight: 850;
  text-decoration: none;
  box-shadow: 0 14px 28px rgba(20, 90, 201, 0.26);
}

.about-cta-button:hover {
  background: #0f4eb3;
}

.about-cta-button:focus-visible {
  outline: 3px solid rgba(20, 90, 201, 0.34);
  outline-offset: 3px;
}

.about-bookmark-callout {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border-radius: 16px;
  background: #f7fbff;
}

.about-bookmark-callout p {
  margin: 0;
}

.about-bookmark-callout .secondary-button {
  flex: 0 0 auto;
}

.mcp-install-shell {
  max-width: 860px;
}

.mcp-install-shell section {
  margin-top: 34px;
}

.mcp-install-shell h2 {
  margin-bottom: 12px;
}

.mcp-install-shell li {
  margin: 8px 0;
}

.mcp-settings {
  display: grid;
  gap: 10px;
}

.mcp-settings > div {
  display: grid;
  grid-template-columns: minmax(130px, 0.35fr) 1fr;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-color, #d8e2ee);
}

.mcp-settings dt {
  font-weight: 700;
}

.mcp-settings dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.about-final-cta {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: 32px;
}

.about-final-cta > div {
  display: grid;
  gap: 8px;
}

@media (max-width: 900px) {
  .about-hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .bookmark-shell,
  .about-shell,
  .pricing-shell {
    width: min(100vw - 16px, 1180px);
  }

  .bookmark-shell,
  .about-shell,
  .pricing-shell {
    padding-top: 12px;
  }

  .bookmark-hero,
  .bookmark-instructions > article,
  .about-hero,
  .about-panel,
  .about-shortcuts,
  .about-final-cta,
  .pricing-hero,
  .pricing-plan {
    border-radius: 20px;
  }

  .bookmark-hero,
  .bookmark-instructions > article,
  .about-hero,
  .about-panel,
  .about-shortcuts,
  .about-final-cta,
  .pricing-hero,
  .pricing-plan {
    padding: 24px;
  }

  .bookmark-instructions,
  .about-hero,
  .about-benefit-grid,
  .about-how,
  .about-shortcuts,
  .about-shortcut-groups,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .about-steps {
    grid-template-columns: 1fr;
  }

  .bookmark-link,
  .about-cta-button {
    width: 100%;
  }

  .about-bookmark-callout,
  .about-final-cta {
    align-items: stretch;
    flex-direction: column;
  }

  .about-bookmark-callout .secondary-button {
    width: 100%;
    justify-content: center;
  }

  .shortcut-list > div {
    grid-template-columns: 68px minmax(0, 1fr);
  }

  .shortcut-list > .shortcut-list-stacked {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

:root[data-theme="dark"] .about-cta-button {
  background: #2f8cff;
  color: #07111f;
  box-shadow: 0 14px 28px rgba(47, 140, 255, 0.24);
}

:root[data-theme="dark"] .about-cta-button:hover {
  background: #67adff;
}

:root[data-theme="dark"] .bookmark-link {
  color: #8fc7ff;
}

:root[data-theme="dark"] .bookmark-link:hover {
  color: #b8ddff;
}

:root[data-theme="dark"] .bookmark-instructions ol,
:root[data-theme="dark"] .about-panel p,
:root[data-theme="dark"] .about-panel ul,
:root[data-theme="dark"] .pricing-plan ul,
:root[data-theme="dark"] .about-preview-topline,
:root[data-theme="dark"] .about-preview-item p,
:root[data-theme="dark"] .about-shortcuts p,
:root[data-theme="dark"] .about-shortcuts dd,
:root[data-theme="dark"] .about-final-cta p,
:root[data-theme="dark"] .about-steps {
  color: #a9b9cc;
}

:root[data-theme="dark"] .bookmark-hero,
:root[data-theme="dark"] .bookmark-instructions > article,
:root[data-theme="dark"] .about-hero,
:root[data-theme="dark"] .about-panel,
:root[data-theme="dark"] .about-shortcuts,
:root[data-theme="dark"] .about-final-cta,
:root[data-theme="dark"] .pricing-hero,
:root[data-theme="dark"] .pricing-plan {
  border-color: rgba(126, 179, 232, 0.24);
  background: #162334;
  box-shadow: 0 22px 64px rgba(0, 0, 0, 0.32);
}

:root[data-theme="dark"] .pricing-price {
  color: #f3f8ff;
}

:root[data-theme="dark"] .shortcut-list > div,
:root[data-theme="dark"] .about-steps li,
:root[data-theme="dark"] .about-preview,
:root[data-theme="dark"] .about-bookmark-callout {
  background: #0f1a27;
}

:root[data-theme="dark"] .about-preview {
  border-color: rgba(126, 179, 232, 0.24);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
}

:root[data-theme="dark"] .about-preview-item {
  background: #162334;
}

:root[data-theme="dark"] .about-preview-topline span,
:root[data-theme="dark"] .about-preview-timestamp {
  color: #8fc7ff;
}

:root[data-theme="dark"] .about-benefit-icon,
:root[data-theme="dark"] .about-preview-play {
  background: #22364d;
  color: #8fc7ff;
}

:root[data-theme="dark"] .shortcut-keys {
  color: #b8cbe0;
}

:root[data-theme="dark"] .about-steps li::before {
  background: #22364d;
  color: #8fc7ff;
}
