/* AIvis Legal industry page */
.legal-page {
  --legal-dark: #070913;
  --legal-dark-soft: #0b0f1d;
  --legal-cyan: #67dcff;
  --legal-violet: #8f7cff;
  --legal-lime: #c9ef68;
  --legal-coral: #ff977b;
  --legal-paper: #f4f7fb;
  padding-bottom: 0;
  overflow: hidden;
}

.legal-hero {
  width: min(1440px, calc(100% - 64px));
  height: clamp(660px, calc(100svh - 122px), 780px);
  margin: 0 auto;
  border: 1px solid rgba(105, 130, 212, 0.28);
  border-radius: 30px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #f7f9ff;
  background: var(--legal-dark);
  box-shadow: 0 34px 100px rgba(15, 20, 48, 0.28);
}

.legal-hero::before {
  content: "";
  height: 1px;
  position: absolute;
  z-index: 4;
  top: 0;
  right: 7%;
  left: 7%;
  background: linear-gradient(90deg, transparent, var(--legal-cyan), var(--legal-lime), transparent);
  box-shadow: 0 0 26px rgba(103, 220, 255, 0.5);
}

.legal-hero::after {
  content: "";
  width: 42%;
  height: 1px;
  position: absolute;
  z-index: -1;
  top: 178px;
  right: 4%;
  background: linear-gradient(90deg, transparent, rgba(201, 239, 104, 0.66), transparent);
  box-shadow: 0 0 18px rgba(201, 239, 104, 0.3);
}

.legal-hero-art {
  width: min(52vw, 670px);
  height: min(52vw, 670px);
  position: absolute;
  z-index: -1;
  top: -170px;
  right: -30px;
  object-fit: contain;
  opacity: 0.68;
  mix-blend-mode: screen;
  filter: saturate(1.18) contrast(1.15) brightness(0.9) hue-rotate(4deg) drop-shadow(0 0 58px rgba(255, 205, 76, 0.13));
  -webkit-mask-image: radial-gradient(circle, #000 0 54%, rgba(0, 0, 0, 0.76) 67%, transparent 82%);
  mask-image: radial-gradient(circle, #000 0 54%, rgba(0, 0, 0, 0.76) 67%, transparent 82%);
  animation: legal-hero-art-breathe 8s ease-in-out infinite;
}

.legal-hero-grid,
.legal-mcp-card-grid {
  position: absolute;
  z-index: -2;
  inset: 0;
  background-image:
    linear-gradient(rgba(103, 220, 255, 0.052) 1px, transparent 1px),
    linear-gradient(90deg, rgba(103, 220, 255, 0.052) 1px, transparent 1px);
  background-size: 64px 64px;
}

.legal-hero-grid {
  opacity: 0.74;
  -webkit-mask-image: linear-gradient(to bottom, #000, rgba(0, 0, 0, 0.42) 72%, transparent);
  mask-image: linear-gradient(to bottom, #000, rgba(0, 0, 0, 0.42) 72%, transparent);
}

.legal-hero-copy {
  width: min(630px, calc(100% - 96px));
  padding: 64px 0 0 60px;
  position: relative;
  z-index: 5;
}

.legal-eyebrow {
  min-height: 28px;
  padding: 0 11px;
  border: 1px solid rgba(103, 220, 255, 0.24);
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(196, 237, 255, 0.82);
  background: rgba(6, 10, 22, 0.64);
  font-family: var(--font-geist-mono), monospace;
  font-size: 8px;
}

.legal-eyebrow i,
.legal-workbench-top .is-live i,
.legal-composer-head i,
.legal-mcp-state i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  display: inline-block;
  background: var(--legal-cyan);
  box-shadow: 0 0 12px rgba(103, 220, 255, 0.88);
}

.legal-hero-copy h1 {
  margin: 24px 0 0;
  letter-spacing: 0;
}

.legal-hero-copy h1 span {
  display: block;
  color: #fff;
  font-size: 64px;
  line-height: 0.98;
  letter-spacing: 0;
  font-weight: 610;
}

.legal-hero-copy h1 small {
  margin-top: 11px;
  display: block;
  color: rgba(220, 226, 245, 0.74);
  font-size: 22px;
  line-height: 1.35;
  letter-spacing: 0;
  font-weight: 520;
}

.legal-hero-statement {
  margin: 24px 0 0;
  max-width: 600px;
  color: #fff;
  font-size: 30px;
  line-height: 1.28;
  letter-spacing: 0;
  font-weight: 550;
  text-wrap: balance;
}

.legal-hero-description {
  max-width: 570px;
  margin: 18px 0 0;
  color: rgba(220, 228, 248, 0.64);
  font-size: 14px;
  line-height: 1.8;
  letter-spacing: 0;
}

.legal-hero-actions {
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.legal-primary-action {
  min-height: 44px;
  color: #070a12;
  background: var(--legal-lime);
  box-shadow: 0 12px 34px rgba(201, 239, 104, 0.16);
}

.legal-primary-action:hover,
.legal-primary-action:focus-visible {
  color: #070a12;
  background: #fff;
}

.legal-secondary-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(236, 240, 252, 0.72);
  font-size: 11px;
  transition: color 180ms ease;
}

.legal-secondary-action:hover,
.legal-secondary-action:focus-visible {
  color: var(--legal-cyan);
}

.legal-audience {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.legal-audience span {
  min-height: 23px;
  padding: 0 8px;
  border: 1px solid rgba(122, 137, 191, 0.18);
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  color: rgba(208, 216, 242, 0.44);
  background: rgba(255, 255, 255, 0.025);
  font-family: var(--font-geist-mono), monospace;
  font-size: 7px;
}

.legal-workbench {
  height: 300px;
  border: 1px solid rgba(125, 139, 224, 0.27);
  border-radius: 8px 8px 0 0;
  position: absolute;
  z-index: 5;
  right: 42px;
  bottom: 0;
  left: 42px;
  overflow: hidden;
  color: rgba(235, 240, 255, 0.78);
  background: rgba(7, 10, 22, 0.93);
  box-shadow: 0 -22px 74px rgba(12, 17, 48, 0.48), inset 0 0 48px rgba(99, 124, 255, 0.035);
  backdrop-filter: blur(18px);
}

.legal-workbench-top {
  height: 38px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(125, 139, 224, 0.16);
  display: grid;
  grid-template-columns: 1fr minmax(260px, 390px) 1fr;
  align-items: center;
  gap: 22px;
  font-family: var(--font-geist-mono), monospace;
  font-size: 7px;
}

.legal-workbench-top > span,
.legal-workbench-top > div {
  display: flex;
  align-items: center;
  gap: 7px;
}

.legal-workbench-top > span:first-child svg {
  color: var(--legal-lime);
}

.legal-workbench-top > div {
  min-height: 25px;
  padding: 0 8px;
  border: 1px solid rgba(125, 139, 224, 0.18);
  border-radius: 4px;
  color: rgba(220, 227, 249, 0.43);
  background: rgba(255, 255, 255, 0.025);
}

.legal-workbench-top kbd {
  margin-left: auto;
  color: rgba(220, 227, 249, 0.34);
  font: inherit;
}

.legal-workbench-top .is-live {
  justify-self: end;
  color: rgba(103, 220, 255, 0.72);
}

.legal-workbench-body {
  height: calc(100% - 38px);
  display: grid;
  grid-template-columns: 184px minmax(0, 1fr) 230px;
}

.legal-workbench-nav {
  padding: 13px 11px;
  border-right: 1px solid rgba(125, 139, 224, 0.13);
  display: flex;
  flex-direction: column;
  color: rgba(220, 227, 249, 0.48);
  background: rgba(5, 7, 17, 0.46);
}

.legal-workbench-new {
  min-height: 29px;
  padding: 0 9px;
  border: 1px solid rgba(201, 239, 104, 0.2);
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(232, 247, 197, 0.74);
  background: rgba(201, 239, 104, 0.035);
  font-size: 8px;
}

.legal-workbench-nav > div {
  margin-top: 10px;
  display: grid;
  gap: 2px;
}

.legal-workbench-nav > div span {
  min-height: 25px;
  padding: 0 8px;
  border-radius: 3px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 8px;
}

.legal-workbench-nav > div .is-active {
  color: rgba(239, 246, 255, 0.9);
  background: rgba(103, 220, 255, 0.08);
}

.legal-workbench-nav > small {
  margin: 15px 8px 7px;
  color: rgba(170, 184, 223, 0.35);
  font: 6px var(--font-geist-mono), monospace;
}

.legal-workbench-nav > p {
  margin: 0;
  min-height: 22px;
  padding: 0 8px;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 7px;
}

.legal-workbench-nav > p i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(143, 124, 255, 0.8);
}

.legal-workbench-main {
  min-width: 0;
  padding: 14px 18px;
}

.legal-task-head {
  display: flex;
  justify-content: space-between;
  color: rgba(187, 198, 230, 0.48);
  font: 7px var(--font-geist-mono), monospace;
}

.legal-task-head span:last-child {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(103, 220, 255, 0.62);
}

.legal-task-query {
  width: min(88%, 610px);
  min-height: 36px;
  margin: 16px 0 0 auto;
  padding: 10px 12px;
  border: 1px solid rgba(126, 143, 205, 0.15);
  border-radius: 5px 5px 1px 5px;
  color: rgba(236, 240, 252, 0.76);
  background: rgba(255, 255, 255, 0.035);
  font-size: 9px;
}

.legal-agent-response {
  margin-top: 15px;
  display: grid;
  grid-template-columns: 27px minmax(0, 1fr);
  gap: 9px;
}

.legal-agent-mark {
  width: 27px;
  height: 27px;
  border: 1px solid rgba(201, 239, 104, 0.22);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--legal-lime);
  box-shadow: 0 0 22px rgba(201, 239, 104, 0.08);
}

.legal-agent-response > div > strong {
  color: rgba(242, 245, 255, 0.86);
  font-size: 9px;
  font-weight: 540;
}

.legal-agent-steps {
  margin-top: 8px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
}

.legal-agent-steps > span {
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid rgba(125, 139, 224, 0.12);
  border-radius: 3px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: rgba(203, 212, 239, 0.42);
  background: rgba(255, 255, 255, 0.018);
  font-size: 7px;
}

.legal-agent-steps .is-done {
  color: rgba(215, 237, 228, 0.66);
}

.legal-agent-steps .is-done svg {
  color: #6ae1af;
}

.legal-agent-steps .is-running {
  border-color: rgba(103, 220, 255, 0.22);
  color: rgba(214, 242, 255, 0.76);
  background: rgba(103, 220, 255, 0.04);
}

.legal-agent-steps .is-running i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--legal-cyan);
  box-shadow: 0 0 10px var(--legal-cyan);
  animation: legal-status-pulse 1.8s ease-in-out infinite;
}

.legal-agent-steps > span > span {
  color: rgba(151, 164, 205, 0.38);
  font: 6px var(--font-geist-mono), monospace;
}

.legal-agent-metrics {
  margin-top: 8px;
  display: flex;
  gap: 18px;
}

.legal-agent-metrics span {
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.legal-agent-metrics strong {
  color: var(--legal-lime);
  font: 10px var(--font-geist-mono), monospace;
}

.legal-agent-metrics small {
  color: rgba(181, 192, 226, 0.38);
  font-size: 6px;
}

.legal-workbench-context {
  padding: 15px 12px;
  border-left: 1px solid rgba(125, 139, 224, 0.13);
  background: rgba(5, 7, 17, 0.4);
}

.legal-workbench-context > span {
  color: rgba(170, 184, 223, 0.38);
  font: 6px var(--font-geist-mono), monospace;
}

.legal-workbench-context > div {
  min-height: 39px;
  margin-top: 7px;
  padding: 0 8px;
  border: 1px solid rgba(125, 139, 224, 0.12);
  border-radius: 3px;
  display: grid;
  grid-template-columns: 18px 1fr 5px;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.018);
}

.legal-workbench-context > div > svg {
  color: rgba(103, 220, 255, 0.7);
}

.legal-workbench-context > div span {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.legal-workbench-context strong {
  color: rgba(230, 236, 253, 0.7);
  font-size: 7px;
  font-weight: 520;
}

.legal-workbench-context small {
  color: rgba(169, 183, 222, 0.34);
  font: 5px var(--font-geist-mono), monospace;
}

.legal-workbench-context > div > i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #6ae1af;
  box-shadow: 0 0 7px rgba(106, 225, 175, 0.6);
}

.legal-workbench-context > p {
  margin: 10px 0 0;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  color: rgba(198, 210, 242, 0.38);
  font-size: 6px;
  line-height: 1.55;
}

.legal-workbench-context > p svg {
  flex: 0 0 auto;
  color: var(--legal-lime);
}

.legal-signal-rail {
  width: min(1280px, calc(100% - 80px));
  min-height: 68px;
  margin: 0 auto;
  border-bottom: 1px solid rgba(31, 38, 63, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: rgba(42, 50, 78, 0.48);
  font: 8px var(--font-geist-mono), monospace;
}

.legal-signal-rail span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.legal-signal-rail i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #34c990;
  box-shadow: 0 0 10px rgba(52, 201, 144, 0.55);
}

.legal-scenarios-section,
.legal-skills-section,
.legal-trust-section,
.legal-files-inner,
.legal-mcp-inner {
  width: min(1280px, calc(100% - 80px));
  margin: 0 auto;
}

.legal-scenarios-section,
.legal-skills-section,
.legal-trust-section {
  padding: 128px 0 138px;
}

.legal-section-heading {
  display: grid;
  grid-template-columns: 0.62fr 1.38fr;
  align-items: start;
  gap: 36px;
}

.legal-section-heading > span {
  margin-top: 9px;
  color: rgba(77, 69, 181, 0.74);
  font: 8px var(--font-geist-mono), monospace;
}

.legal-section-heading h2 {
  margin: 0;
  max-width: 760px;
  color: #0a0d18;
  font-size: 54px;
  line-height: 1.06;
  letter-spacing: 0;
  font-weight: 580;
}

.legal-section-heading p {
  max-width: 660px;
  margin: 24px 0 0;
  color: #606779;
  font-size: 14px;
  line-height: 1.8;
}

.legal-scenario-grid {
  margin-top: 78px;
  border-top: 1px solid rgba(26, 32, 56, 0.14);
  border-left: 1px solid rgba(26, 32, 56, 0.14);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.legal-scenario-grid article {
  min-height: 308px;
  padding: 27px 28px 25px;
  border-right: 1px solid rgba(26, 32, 56, 0.14);
  border-bottom: 1px solid rgba(26, 32, 56, 0.14);
  position: relative;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.44);
  transition: color 220ms ease, background 220ms ease, transform 220ms ease;
}

.legal-scenario-grid article:hover {
  z-index: 2;
  color: #fff;
  background: #0a0d18;
  transform: translateY(-4px);
}

.legal-scenario-index {
  align-self: flex-end;
  color: rgba(80, 73, 182, 0.58);
  font: 8px var(--font-geist-mono), monospace;
}

.legal-scenario-grid article > svg {
  margin-top: 5px;
  color: #6657f2;
}

.legal-scenario-grid article > small {
  margin-top: 24px;
  color: rgba(80, 73, 182, 0.62);
  font: 7px var(--font-geist-mono), monospace;
}

.legal-scenario-grid h3 {
  margin: 10px 0 0;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 560;
}

.legal-scenario-grid p {
  margin: 13px 0 0;
  color: #666d7c;
  font-size: 12px;
  line-height: 1.75;
}

.legal-scenario-output {
  margin-top: auto;
  padding-top: 20px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: #52596a;
  font: 8px var(--font-geist-mono), monospace;
}

.legal-scenario-grid article:hover > svg,
.legal-scenario-grid article:hover > small,
.legal-scenario-grid article:hover .legal-scenario-index,
.legal-scenario-grid article:hover .legal-scenario-output {
  color: var(--legal-cyan);
}

.legal-scenario-grid article:hover p {
  color: rgba(227, 233, 248, 0.6);
}

.legal-mcp-band {
  border-top: 1px solid rgba(108, 129, 213, 0.22);
  border-bottom: 1px solid rgba(108, 129, 213, 0.22);
  position: relative;
  overflow: hidden;
  color: #f5f7ff;
  background-color: var(--legal-dark);
  background-image:
    linear-gradient(rgba(103, 220, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(103, 220, 255, 0.04) 1px, transparent 1px);
  background-size: 76px 76px;
}

.legal-mcp-band::before {
  content: "";
  height: 1px;
  position: absolute;
  top: 0;
  right: 12%;
  left: 12%;
  background: linear-gradient(90deg, transparent, var(--legal-cyan), var(--legal-violet), var(--legal-lime), transparent);
  box-shadow: 0 0 24px rgba(103, 220, 255, 0.38);
}

.legal-mcp-inner {
  padding: 132px 0 112px;
}

.legal-section-heading-dark > span {
  color: rgba(103, 220, 255, 0.7);
}

.legal-section-heading-dark h2 {
  color: #fff;
}

.legal-section-heading-dark p {
  color: rgba(213, 221, 244, 0.58);
}

.legal-mcp-flow {
  min-height: 74px;
  margin-top: 68px;
  padding: 0 22px;
  border: 1px solid rgba(126, 144, 211, 0.16);
  border-radius: 5px;
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto 1fr auto;
  align-items: center;
  gap: 14px;
  color: rgba(218, 226, 247, 0.62);
  background: rgba(255, 255, 255, 0.022);
  font: 8px var(--font-geist-mono), monospace;
}

.legal-mcp-flow > span,
.legal-mcp-flow > strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.legal-mcp-flow > strong {
  color: var(--legal-lime);
  font-weight: 500;
}

.legal-mcp-flow > i {
  height: 1px;
  position: relative;
  overflow: visible;
  background: rgba(103, 220, 255, 0.17);
}

.legal-mcp-flow > i::after {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  position: absolute;
  top: -2px;
  left: 0;
  background: var(--legal-cyan);
  box-shadow: 0 0 10px rgba(103, 220, 255, 0.82);
  animation: legal-flow-particle 3s linear infinite;
}

.legal-mcp-flow > i:nth-of-type(2)::after { animation-delay: -1s; }
.legal-mcp-flow > i:nth-of-type(3)::after { animation-delay: -2s; }

.legal-mcp-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.legal-mcp-card {
  --mcp-accent: var(--legal-cyan);
  min-height: 570px;
  padding: 30px;
  border: 1px solid rgba(125, 143, 210, 0.19);
  border-radius: 7px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: rgba(10, 14, 29, 0.82);
  box-shadow: inset 0 0 54px rgba(83, 107, 190, 0.025);
  transition: border-color 220ms ease, transform 220ms ease, background 220ms ease;
}

.legal-mcp-card:hover {
  border-color: color-mix(in srgb, var(--mcp-accent) 48%, transparent);
  background: rgba(13, 18, 36, 0.96);
  transform: translateY(-4px);
}

.legal-mcp-violet { --mcp-accent: var(--legal-violet); }
.legal-mcp-lime { --mcp-accent: var(--legal-lime); }
.legal-mcp-coral { --mcp-accent: var(--legal-coral); }

.legal-mcp-card::before {
  content: "";
  height: 1px;
  position: absolute;
  top: 0;
  right: 12%;
  left: 12%;
  background: linear-gradient(90deg, transparent, var(--mcp-accent), transparent);
  box-shadow: 0 0 16px color-mix(in srgb, var(--mcp-accent) 36%, transparent);
}

.legal-mcp-card-grid {
  opacity: 0.55;
  background-size: 44px 44px;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 70%);
  mask-image: linear-gradient(to bottom, #000, transparent 70%);
}

.legal-mcp-card-head {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 12px;
}

.legal-mcp-index {
  color: rgba(175, 188, 226, 0.36);
  font: 8px var(--font-geist-mono), monospace;
}

.legal-mcp-icon {
  width: 43px;
  height: 43px;
  border: 1px solid color-mix(in srgb, var(--mcp-accent) 28%, transparent);
  border-radius: 5px;
  display: grid;
  place-items: center;
  color: var(--mcp-accent);
  background: color-mix(in srgb, var(--mcp-accent) 4%, transparent);
  box-shadow: 0 0 28px color-mix(in srgb, var(--mcp-accent) 7%, transparent);
}

.legal-mcp-state {
  min-height: 25px;
  padding: 0 8px;
  border: 1px solid rgba(126, 144, 211, 0.17);
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(208, 219, 246, 0.52);
  font: 7px var(--font-geist-mono), monospace;
}

.legal-mcp-state i {
  background: var(--mcp-accent);
  box-shadow: 0 0 9px color-mix(in srgb, var(--mcp-accent) 80%, transparent);
}

.legal-mcp-title {
  margin-top: 32px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 4px 16px;
}

.legal-mcp-title small {
  grid-column: 1 / -1;
  color: color-mix(in srgb, var(--mcp-accent) 76%, white 12%);
  font: 7px var(--font-geist-mono), monospace;
}

.legal-mcp-title h3 {
  margin: 0;
  color: #fff;
  font-size: 33px;
  line-height: 1.08;
  font-weight: 570;
}

.legal-mcp-title > span {
  color: rgba(184, 196, 231, 0.42);
  font: 7px var(--font-geist-mono), monospace;
}

.legal-mcp-focus {
  margin-top: 22px;
  color: rgba(238, 242, 255, 0.82);
  font-size: 15px;
  font-weight: 520;
}

.legal-mcp-card > p {
  max-width: 560px;
  margin: 10px 0 0;
  color: rgba(206, 216, 242, 0.52);
  font-size: 12px;
  line-height: 1.75;
}

.legal-mcp-tools {
  margin-top: 27px;
  padding-top: 20px;
  border-top: 1px solid rgba(126, 144, 211, 0.13);
}

.legal-mcp-tools > small {
  color: rgba(166, 180, 220, 0.36);
  font: 7px var(--font-geist-mono), monospace;
}

.legal-mcp-tools > div {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.legal-mcp-tools span {
  min-height: 25px;
  padding: 0 9px;
  border: 1px solid color-mix(in srgb, var(--mcp-accent) 17%, transparent);
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  color: rgba(220, 228, 249, 0.64);
  background: color-mix(in srgb, var(--mcp-accent) 3%, transparent);
  font-size: 8px;
}

.legal-mcp-prompt {
  margin-top: auto;
  padding: 16px;
  border: 1px solid rgba(126, 144, 211, 0.15);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.022);
}

.legal-mcp-prompt > span {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--mcp-accent);
  font: 7px var(--font-geist-mono), monospace;
}

.legal-mcp-prompt p {
  margin: 9px 0 11px;
  color: rgba(232, 237, 252, 0.75);
  font-size: 10px;
  line-height: 1.6;
}

.legal-mcp-prompt > div {
  display: flex;
  align-items: center;
  gap: 7px;
  color: rgba(167, 181, 222, 0.34);
  font: 6px var(--font-geist-mono), monospace;
}

.legal-mcp-prompt > div span {
  width: 24px;
  height: 1px;
  background: color-mix(in srgb, var(--mcp-accent) 28%, transparent);
}

.legal-mcp-card > a {
  margin-top: 15px;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(208, 218, 244, 0.48);
  font-size: 9px;
  transition: color 180ms ease;
}

.legal-mcp-card > a:hover,
.legal-mcp-card > a:focus-visible {
  color: var(--mcp-accent);
}

.legal-mcp-custom {
  min-height: 650px;
  margin-top: 22px;
  border: 1px solid rgba(125, 143, 210, 0.2);
  border-radius: 7px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(280px, 0.7fr) minmax(0, 1.3fr);
  background:
    radial-gradient(circle at 23% 18%, rgba(143, 124, 255, 0.09), transparent 28%),
    radial-gradient(circle at 82% 78%, rgba(103, 220, 255, 0.07), transparent 34%),
    rgba(8, 12, 25, 0.92);
  box-shadow: inset 0 0 80px rgba(79, 103, 183, 0.035);
}

.legal-mcp-custom::before {
  content: "";
  height: 1px;
  position: absolute;
  z-index: 2;
  top: 0;
  right: 8%;
  left: 8%;
  background: linear-gradient(90deg, transparent, var(--legal-violet), var(--legal-cyan), transparent);
  box-shadow: 0 0 20px rgba(103, 220, 255, 0.28);
}

.legal-mcp-custom::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: 0.55;
  background-image:
    linear-gradient(rgba(103, 220, 255, 0.034) 1px, transparent 1px),
    linear-gradient(90deg, rgba(103, 220, 255, 0.034) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: linear-gradient(90deg, #000, transparent 52%, #000);
  mask-image: linear-gradient(90deg, #000, transparent 52%, #000);
}

.legal-mcp-custom-copy {
  padding: 50px 42px;
  border-right: 1px solid rgba(125, 143, 210, 0.15);
  position: relative;
  display: flex;
  flex-direction: column;
}

.legal-mcp-custom-copy > span {
  color: rgba(143, 124, 255, 0.84);
  font: 8px var(--font-geist-mono), monospace;
}

.legal-mcp-custom-copy h3 {
  margin: 28px 0 0;
  color: #fff;
  font-size: 38px;
  line-height: 1.12;
  font-weight: 560;
}

.legal-mcp-custom-copy > p {
  margin: 22px 0 0;
  color: rgba(206, 216, 242, 0.54);
  font-size: 12px;
  line-height: 1.86;
}

.legal-mcp-custom-copy > div {
  margin-top: auto;
  padding-top: 38px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.legal-mcp-custom-copy > div span {
  min-height: 42px;
  padding: 0 11px;
  border: 1px solid rgba(130, 147, 212, 0.16);
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(222, 229, 249, 0.64);
  background: rgba(255, 255, 255, 0.018);
  font-size: 9px;
}

.legal-mcp-custom-copy > div svg {
  flex: 0 0 auto;
  color: var(--legal-cyan);
}

.legal-mcp-builder {
  min-width: 0;
  margin: 26px;
  border: 1px solid rgba(127, 147, 217, 0.21);
  border-radius: 6px;
  overflow: hidden;
  align-self: stretch;
  display: grid;
  grid-template-rows: 40px minmax(0, 1fr) 43px;
  background: rgba(5, 8, 18, 0.83);
  box-shadow:
    0 26px 74px rgba(0, 0, 0, 0.28),
    inset 0 0 60px rgba(92, 111, 200, 0.025);
}

.legal-mcp-builder-head,
.legal-mcp-builder-foot {
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  color: rgba(168, 182, 222, 0.38);
  background: rgba(255, 255, 255, 0.018);
  font: 6px var(--font-geist-mono), monospace;
}

.legal-mcp-builder-head {
  border-bottom: 1px solid rgba(127, 147, 217, 0.14);
  justify-content: space-between;
}

.legal-mcp-builder-head span:last-child,
.legal-mcp-builder-foot span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(201, 239, 104, 0.66);
}

.legal-mcp-builder-head i,
.legal-mcp-builder-foot i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  display: inline-block;
  background: var(--legal-lime);
  box-shadow: 0 0 10px rgba(201, 239, 104, 0.7);
  animation: legal-config-pulse 2.4s ease-in-out infinite;
}

.legal-mcp-builder-body {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(220px, 0.92fr);
}

.legal-mcp-builder-form,
.legal-mcp-builder-bindings {
  min-width: 0;
  padding: 25px;
}

.legal-mcp-builder-form {
  border-right: 1px solid rgba(127, 147, 217, 0.14);
}

.legal-mcp-builder-title {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.legal-mcp-builder-title > span {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(103, 220, 255, 0.24);
  border-radius: 5px;
  display: grid;
  place-items: center;
  color: var(--legal-cyan);
  background: rgba(103, 220, 255, 0.045);
  box-shadow: 0 0 28px rgba(103, 220, 255, 0.07);
}

.legal-mcp-builder-title > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.legal-mcp-builder-title small,
.legal-mcp-builder-tools > small,
.legal-mcp-builder-bindings > small {
  color: rgba(160, 176, 219, 0.42);
  font: 6px var(--font-geist-mono), monospace;
}

.legal-mcp-builder-title strong {
  overflow: hidden;
  color: rgba(239, 243, 255, 0.88);
  font-size: 11px;
  font-weight: 520;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.legal-mcp-builder-title em {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(143, 124, 255, 0.25);
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  color: rgba(201, 190, 255, 0.78);
  background: rgba(143, 124, 255, 0.045);
  font: normal 7px var(--font-geist-mono), monospace;
  white-space: nowrap;
}

.legal-mcp-builder-fields {
  margin-top: 23px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.legal-mcp-builder-fields > span {
  min-width: 0;
  min-height: 67px;
  padding: 12px;
  border: 1px solid rgba(127, 147, 217, 0.14);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.016);
}

.legal-mcp-builder-fields small {
  color: rgba(160, 176, 219, 0.4);
  font: 6px var(--font-geist-mono), monospace;
}

.legal-mcp-builder-fields code,
.legal-mcp-builder-fields strong {
  min-width: 0;
  overflow: hidden;
  color: rgba(222, 230, 250, 0.68);
  font: 7px var(--font-geist-mono), monospace;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.legal-mcp-builder-fields strong {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
  font-weight: 450;
}

.legal-mcp-builder-fields svg {
  flex: 0 0 auto;
  color: var(--legal-cyan);
}

.legal-mcp-builder-tools {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(127, 147, 217, 0.13);
}

.legal-mcp-builder-tools > div {
  margin-top: 11px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.legal-mcp-builder-tools span {
  min-width: 0;
  min-height: 29px;
  padding: 0 9px;
  border: 1px solid rgba(103, 220, 255, 0.13);
  border-radius: 3px;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 7px;
  color: rgba(193, 231, 244, 0.62);
  background: rgba(103, 220, 255, 0.025);
  font: 6px var(--font-geist-mono), monospace;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.legal-mcp-builder-tools i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  flex: 0 0 auto;
  background: var(--legal-cyan);
  box-shadow: 0 0 7px rgba(103, 220, 255, 0.64);
}

.legal-mcp-builder-bindings {
  display: flex;
  flex-direction: column;
}

.legal-mcp-binding-nodes {
  margin-top: 17px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: stretch;
  gap: 7px;
}

.legal-mcp-binding-nodes > span {
  min-height: 56px;
  padding: 0 14px;
  border: 1px solid rgba(127, 147, 217, 0.16);
  border-radius: 4px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  color: rgba(210, 220, 247, 0.58);
  background: rgba(255, 255, 255, 0.018);
}

.legal-mcp-binding-nodes > span svg {
  color: var(--legal-violet);
}

.legal-mcp-binding-nodes > span strong {
  font-size: 9px;
  font-weight: 500;
}

.legal-mcp-binding-nodes > span small {
  color: rgba(161, 176, 216, 0.32);
  font: 6px var(--font-geist-mono), monospace;
}

.legal-mcp-binding-nodes > i {
  height: 12px;
  color: rgba(143, 124, 255, 0.48);
  font: normal 10px/12px var(--font-geist-mono), monospace;
  text-align: center;
}

.legal-mcp-binding-nodes > span.is-agent {
  border-color: rgba(201, 239, 104, 0.25);
  color: rgba(234, 246, 205, 0.78);
  background: rgba(201, 239, 104, 0.035);
  box-shadow: 0 0 30px rgba(201, 239, 104, 0.04);
}

.legal-mcp-binding-nodes > span.is-agent svg {
  color: var(--legal-lime);
}

.legal-mcp-skill-tags {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.legal-mcp-skill-tags span {
  min-height: 25px;
  padding: 0 8px;
  border: 1px solid rgba(143, 124, 255, 0.16);
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  color: rgba(210, 202, 255, 0.58);
  background: rgba(143, 124, 255, 0.025);
  font-size: 7px;
}

.legal-mcp-skill-tags span:last-child {
  border-style: dashed;
  color: var(--legal-violet);
}

.legal-mcp-builder-bindings > p {
  margin: auto 0 0;
  padding-top: 18px;
  display: flex;
  align-items: flex-start;
  gap: 7px;
  color: rgba(185, 198, 232, 0.42);
  font-size: 7px;
  line-height: 1.6;
}

.legal-mcp-builder-bindings > p svg {
  margin-top: 1px;
  flex: 0 0 auto;
  color: var(--legal-lime);
}

.legal-mcp-builder-foot {
  border-top: 1px solid rgba(127, 147, 217, 0.14);
}

.legal-mcp-builder-foot strong {
  min-height: 27px;
  margin-left: auto;
  padding: 0 10px;
  border: 1px solid rgba(201, 239, 104, 0.2);
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(221, 241, 172, 0.72);
  background: rgba(201, 239, 104, 0.035);
  font-weight: 450;
}

.legal-mcp-note {
  margin: 22px 0 0;
  color: rgba(174, 187, 223, 0.38);
  font-size: 9px;
  line-height: 1.7;
}

.legal-skills-section {
  padding-bottom: 150px;
}

.legal-skills-layout {
  margin-top: 76px;
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  align-items: stretch;
  gap: 64px;
}

.legal-skill-list {
  border-top: 1px solid rgba(26, 32, 56, 0.15);
}

.legal-skill-list article {
  min-height: 77px;
  border-bottom: 1px solid rgba(26, 32, 56, 0.15);
  display: grid;
  grid-template-columns: 30px 1fr 18px;
  align-items: center;
  gap: 14px;
  transition: padding 180ms ease, color 180ms ease;
}

.legal-skill-list article:hover {
  padding-left: 8px;
  color: #5143d8;
}

.legal-skill-list article > span {
  color: rgba(80, 73, 182, 0.56);
  font: 8px var(--font-geist-mono), monospace;
}

.legal-skill-list article > div {
  min-width: 0;
}

.legal-skill-list strong {
  font-size: 14px;
  font-weight: 550;
}

.legal-skill-list p {
  margin: 4px 0 0;
  color: #727889;
  font-size: 10px;
  line-height: 1.5;
}

.legal-skill-composer {
  min-height: 650px;
  border: 1px solid rgba(46, 55, 88, 0.17);
  border-radius: 7px;
  position: relative;
  overflow: hidden;
  color: rgba(234, 239, 255, 0.76);
  background-color: #090c17;
  background-image:
    linear-gradient(rgba(103, 220, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(103, 220, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  box-shadow: 0 26px 70px rgba(26, 35, 69, 0.18);
}

.legal-skill-composer::before {
  content: "";
  height: 1px;
  position: absolute;
  top: 0;
  right: 12%;
  left: 12%;
  background: linear-gradient(90deg, transparent, var(--legal-violet), var(--legal-cyan), transparent);
  box-shadow: 0 0 20px rgba(103, 220, 255, 0.38);
}

.legal-composer-head {
  min-height: 40px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(125, 143, 210, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(172, 186, 225, 0.4);
  font: 7px var(--font-geist-mono), monospace;
}

.legal-composer-head span:last-child {
  display: flex;
  align-items: center;
  gap: 7px;
  color: rgba(103, 220, 255, 0.62);
}

.legal-composer-title {
  margin: 27px 26px 0;
  display: grid;
  grid-template-columns: 46px 1fr auto;
  align-items: center;
  gap: 13px;
}

.legal-composer-title > span {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(201, 239, 104, 0.23);
  border-radius: 5px;
  display: grid;
  place-items: center;
  color: var(--legal-lime);
  background: rgba(201, 239, 104, 0.035);
}

.legal-composer-title > div {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.legal-composer-title small {
  color: rgba(103, 220, 255, 0.54);
  font: 6px var(--font-geist-mono), monospace;
}

.legal-composer-title strong {
  color: #f4f6ff;
  font-size: 16px;
  font-weight: 540;
}

.legal-composer-title em {
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid rgba(125, 143, 210, 0.16);
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  color: rgba(200, 210, 239, 0.5);
  font: normal 7px var(--font-geist-mono), monospace;
}

.legal-composer-fields {
  margin: 24px 26px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.legal-composer-fields > div {
  min-height: 74px;
  padding: 12px;
  border: 1px solid rgba(125, 143, 210, 0.14);
  border-radius: 4px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-content: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.02);
}

.legal-composer-fields small {
  grid-column: 1 / -1;
  color: rgba(172, 186, 225, 0.42);
  font-size: 7px;
}

.legal-composer-fields strong {
  color: rgba(238, 242, 255, 0.78);
  font-size: 11px;
  font-weight: 520;
}

.legal-composer-fields span {
  color: rgba(143, 124, 255, 0.55);
  font: 6px var(--font-geist-mono), monospace;
}

.legal-composer-stack {
  margin: 24px 26px 0;
  border-top: 1px solid rgba(125, 143, 210, 0.15);
}

.legal-composer-stack > div {
  min-height: 61px;
  border-bottom: 1px solid rgba(125, 143, 210, 0.13);
  display: grid;
  grid-template-columns: 24px 22px 1fr auto;
  align-items: center;
  gap: 8px;
  color: rgba(186, 198, 231, 0.48);
}

.legal-composer-stack > div > span:first-child {
  color: rgba(155, 170, 211, 0.34);
  font: 7px var(--font-geist-mono), monospace;
}

.legal-composer-stack > div > svg {
  color: rgba(103, 220, 255, 0.62);
}

.legal-composer-stack p {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.legal-composer-stack strong {
  color: rgba(229, 235, 251, 0.68);
  font-size: 9px;
  font-weight: 520;
}

.legal-composer-stack small {
  color: rgba(156, 170, 211, 0.3);
  font: 6px var(--font-geist-mono), monospace;
}

.legal-composer-stack > div > svg:last-child {
  color: #6ae1af;
}

.legal-composer-stack > div > span:last-child {
  color: rgba(159, 173, 212, 0.28);
  font: 6px var(--font-geist-mono), monospace;
}

.legal-composer-stack .is-current {
  color: rgba(225, 233, 252, 0.74);
}

.legal-composer-stack .is-current > i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--legal-cyan);
  box-shadow: 0 0 12px rgba(103, 220, 255, 0.9);
  animation: legal-status-pulse 1.8s ease-in-out infinite;
}

.legal-composer-foot {
  margin: 26px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.legal-composer-foot span,
.legal-composer-foot strong {
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid rgba(125, 143, 210, 0.16);
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(204, 214, 240, 0.52);
  font-size: 7px;
  font-weight: 450;
}

.legal-composer-foot strong {
  margin-left: auto;
  color: #0b0d14;
  background: var(--legal-lime);
}

.legal-files-band {
  border-top: 1px solid rgba(43, 53, 88, 0.12);
  border-bottom: 1px solid rgba(43, 53, 88, 0.12);
  background-color: #eaf1f8;
  background-image:
    linear-gradient(rgba(66, 78, 115, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(66, 78, 115, 0.045) 1px, transparent 1px);
  background-size: 76px 76px;
}

.legal-files-inner {
  padding: 132px 0 136px;
}

.legal-file-pipeline {
  min-height: 420px;
  margin-top: 76px;
  padding: 34px;
  border: 1px solid rgba(43, 53, 88, 0.16);
  border-radius: 7px;
  display: grid;
  grid-template-columns: 1fr minmax(280px, 0.8fr) 1fr;
  align-items: center;
  gap: 42px;
  color: rgba(232, 238, 253, 0.74);
  background: #090c17;
  box-shadow: 0 26px 78px rgba(30, 46, 83, 0.18);
}

.legal-file-inputs,
.legal-file-outputs {
  display: grid;
  gap: 9px;
}

.legal-file-inputs > span,
.legal-file-outputs > span {
  min-height: 60px;
  padding: 0 14px;
  border: 1px solid rgba(125, 143, 210, 0.16);
  border-radius: 4px;
  display: grid;
  grid-template-columns: 25px 1fr auto;
  align-items: center;
  gap: 9px;
  background: rgba(255, 255, 255, 0.022);
}

.legal-file-inputs svg {
  color: var(--legal-violet);
}

.legal-file-outputs svg {
  color: var(--legal-lime);
}

.legal-file-inputs strong,
.legal-file-outputs strong {
  font-size: 9px;
  font-weight: 520;
}

.legal-file-inputs small,
.legal-file-outputs small {
  color: rgba(165, 180, 221, 0.34);
  font: 6px var(--font-geist-mono), monospace;
}

.legal-file-engine {
  aspect-ratio: 1;
  position: relative;
  display: grid;
  place-items: center;
}

.legal-file-engine::before,
.legal-file-engine::after {
  content: "";
  width: 38%;
  height: 1px;
  position: absolute;
  top: 50%;
  background: rgba(103, 220, 255, 0.22);
}

.legal-file-engine::before { right: 86%; }
.legal-file-engine::after { left: 86%; }

.legal-file-ring {
  border: 1px solid rgba(103, 220, 255, 0.22);
  border-radius: 50%;
  position: absolute;
}

.legal-file-ring.ring-one {
  width: 72%;
  height: 72%;
  animation: legal-ring-spin 16s linear infinite;
}

.legal-file-ring.ring-two {
  width: 94%;
  height: 48%;
  border-color: rgba(143, 124, 255, 0.28);
  transform: rotate(36deg);
  animation: legal-ring-spin-tilted 20s linear infinite reverse;
}

.legal-file-axis {
  width: 1px;
  height: 92%;
  position: absolute;
  background: linear-gradient(transparent, rgba(201, 239, 104, 0.3), transparent);
}

.legal-file-engine > div {
  width: 126px;
  height: 126px;
  border: 1px solid rgba(201, 239, 104, 0.34);
  border-radius: 50%;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: var(--legal-lime);
  background: #080b15;
  box-shadow: 0 0 38px rgba(103, 220, 255, 0.12), 0 0 0 18px rgba(103, 220, 255, 0.025);
}

.legal-file-engine strong {
  color: #fff;
  font-size: 16px;
  font-weight: 570;
}

.legal-file-engine small {
  color: rgba(180, 193, 228, 0.4);
  font: 5px var(--font-geist-mono), monospace;
}

.legal-file-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  position: absolute;
  background: var(--legal-cyan);
  box-shadow: 0 0 14px rgba(103, 220, 255, 0.9);
  animation: legal-file-orbit 6s linear infinite;
}

.legal-file-pulse.pulse-two {
  background: var(--legal-lime);
  box-shadow: 0 0 14px rgba(201, 239, 104, 0.9);
  animation-delay: -3s;
}

.legal-format-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.legal-format-grid article {
  min-height: 132px;
  padding: 18px;
  border: 1px solid rgba(43, 53, 88, 0.14);
  border-radius: 5px;
  display: grid;
  grid-template-columns: 26px 1fr;
  align-content: start;
  gap: 9px;
  background: rgba(255, 255, 255, 0.56);
}

.legal-format-grid article > svg {
  margin-top: 2px;
  color: #5c4fe1;
}

.legal-format-grid article > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.legal-format-grid small {
  color: rgba(79, 71, 180, 0.58);
  font: 6px var(--font-geist-mono), monospace;
}

.legal-format-grid strong {
  font-size: 12px;
  font-weight: 550;
}

.legal-format-grid p {
  grid-column: 1 / -1;
  margin: 9px 0 0;
  color: #687082;
  font: 7px/1.7 var(--font-geist-mono), monospace;
}

.legal-format-note {
  margin: 17px 0 0;
  color: #747c8d;
  font-size: 9px;
}

.legal-trust-grid {
  margin-top: 76px;
  border-top: 1px solid rgba(26, 32, 56, 0.14);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.legal-trust-grid article {
  min-height: 310px;
  padding: 28px 27px;
  border-right: 1px solid rgba(26, 32, 56, 0.14);
  position: relative;
}

.legal-trust-grid article:first-child {
  border-left: 1px solid rgba(26, 32, 56, 0.14);
}

.legal-trust-grid article > svg {
  color: #5d50e3;
}

.legal-trust-grid article > span {
  position: absolute;
  top: 31px;
  right: 27px;
  color: rgba(80, 73, 182, 0.46);
  font: 8px var(--font-geist-mono), monospace;
}

.legal-trust-grid h3 {
  margin: 56px 0 0;
  font-size: 24px;
  font-weight: 560;
}

.legal-trust-grid p {
  margin: 17px 0 0;
  color: #687082;
  font-size: 12px;
  line-height: 1.75;
}

.legal-security-line {
  min-height: 116px;
  border-top: 1px solid rgba(26, 32, 56, 0.14);
  border-bottom: 1px solid rgba(26, 32, 56, 0.14);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.legal-security-line > div {
  padding: 0 27px;
  border-right: 1px solid rgba(26, 32, 56, 0.14);
  display: flex;
  align-items: center;
  gap: 14px;
}

.legal-security-line > div:first-child {
  border-left: 1px solid rgba(26, 32, 56, 0.14);
}

.legal-security-line svg {
  flex: 0 0 auto;
  color: #5d50e3;
}

.legal-security-line span {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.legal-security-line strong {
  font-size: 12px;
  font-weight: 550;
}

.legal-security-line small {
  color: #737a8b;
  font-size: 9px;
}

.legal-cta-section {
  width: min(1440px, calc(100% - 64px));
  min-height: 500px;
  margin: 0 auto 24px;
  padding: 68px 76px;
  border: 1px solid rgba(111, 131, 211, 0.26);
  border-radius: 18px;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  color: #f6f8ff;
  background-color: #080b16;
  background-image:
    linear-gradient(rgba(103, 220, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(103, 220, 255, 0.045) 1px, transparent 1px);
  background-size: 58px 58px;
}

.legal-cta-section::before {
  content: "";
  height: 1px;
  position: absolute;
  top: 0;
  right: 9%;
  left: 9%;
  background: linear-gradient(90deg, transparent, var(--legal-cyan), var(--legal-lime), transparent);
  box-shadow: 0 0 22px rgba(103, 220, 255, 0.4);
}

.legal-cta-visual {
  width: min(36vw, 380px);
  aspect-ratio: 1;
  position: relative;
  display: grid;
  place-items: center;
}

.legal-cta-ring {
  border: 1px solid rgba(103, 220, 255, 0.24);
  border-radius: 50%;
  position: absolute;
}

.legal-cta-ring.ring-one {
  width: 56%;
  height: 56%;
  box-shadow: 0 0 34px rgba(103, 220, 255, 0.08);
  animation: legal-ring-pulse 5s ease-in-out infinite;
}

.legal-cta-ring.ring-two {
  width: 88%;
  height: 43%;
  border-color: rgba(201, 239, 104, 0.24);
  transform: rotate(-32deg);
  animation: legal-ring-spin-tilted 22s linear infinite;
}

.legal-cta-axis {
  width: 1px;
  height: 86%;
  position: absolute;
  background: linear-gradient(transparent, rgba(143, 124, 255, 0.36), transparent);
}

.legal-cta-core {
  width: 118px;
  height: 118px;
  border: 1px solid rgba(201, 239, 104, 0.38);
  border-radius: 50%;
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  color: var(--legal-lime);
  background: #070a13;
  box-shadow: 0 0 34px rgba(103, 220, 255, 0.14), 0 0 0 24px rgba(103, 220, 255, 0.025);
}

.legal-cta-section > div:last-child > span {
  color: rgba(103, 220, 255, 0.68);
  font: 8px var(--font-geist-mono), monospace;
}

.legal-cta-section h2 {
  margin: 20px 0 0;
  max-width: 700px;
  font-size: 54px;
  line-height: 1.06;
  font-weight: 580;
}

.legal-cta-section p {
  margin: 22px 0 0;
  color: rgba(211, 220, 243, 0.56);
  font-size: 13px;
}

.legal-cta-section > div:last-child > div {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 22px;
}

@keyframes legal-hero-art-breathe {
  0%, 100% { opacity: 0.58; transform: scale(0.98) translateY(0); }
  50% { opacity: 0.76; transform: scale(1.02) translateY(8px); }
}

@keyframes legal-status-pulse {
  0%, 100% { opacity: 0.45; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1.1); }
}

@keyframes legal-flow-particle {
  from { left: 0; }
  to { left: calc(100% - 5px); }
}

@keyframes legal-ring-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes legal-ring-spin-tilted {
  from { transform: rotate(36deg); }
  to { transform: rotate(396deg); }
}

@keyframes legal-file-orbit {
  from { transform: rotate(0deg) translateX(112px) rotate(0deg); }
  to { transform: rotate(360deg) translateX(112px) rotate(-360deg); }
}

@keyframes legal-ring-pulse {
  0%, 100% { opacity: 0.52; transform: scale(0.96); }
  50% { opacity: 1; transform: scale(1.03); }
}

@media (max-width: 1180px) {
  .legal-hero-copy {
    padding-left: 46px;
  }

  .legal-workbench-body {
    grid-template-columns: 165px minmax(0, 1fr) 200px;
  }

  .legal-section-heading h2,
  .legal-cta-section h2 {
    font-size: 48px;
  }

  .legal-skills-layout {
    gap: 36px;
  }

  .legal-file-pipeline {
    grid-template-columns: 1fr 230px 1fr;
    gap: 25px;
  }

  .legal-file-engine::before,
  .legal-file-engine::after {
    width: 22%;
  }
}

@media (max-width: 980px) {
  .legal-hero {
    height: 760px;
  }

  .legal-hero-art {
    width: 560px;
    height: 560px;
    top: -140px;
    right: -150px;
    opacity: 0.5;
  }

  .legal-hero-copy {
    width: min(610px, calc(100% - 64px));
    padding: 48px 0 0 32px;
  }

  .legal-hero-copy h1 span {
    font-size: 56px;
  }

  .legal-hero-copy h1 small {
    font-size: 20px;
  }

  .legal-hero-statement {
    font-size: 28px;
  }

  .legal-workbench {
    right: 24px;
    left: 24px;
  }

  .legal-workbench-body {
    grid-template-columns: 160px minmax(0, 1fr);
  }

  .legal-workbench-context {
    display: none;
  }

  .legal-section-heading {
    grid-template-columns: 0.38fr 1.62fr;
  }

  .legal-scenario-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .legal-mcp-card {
    min-height: 590px;
  }

  .legal-mcp-flow {
    grid-template-columns: 1fr 32px 1fr 32px 1fr;
  }

  .legal-mcp-flow > i:nth-of-type(3),
  .legal-mcp-flow > strong {
    display: none;
  }

  .legal-mcp-custom {
    grid-template-columns: 1fr;
  }

  .legal-mcp-custom-copy {
    min-height: 390px;
    border-right: 0;
    border-bottom: 1px solid rgba(125, 143, 210, 0.15);
  }

  .legal-mcp-custom-copy > p {
    max-width: 650px;
  }

  .legal-mcp-custom-copy > div {
    margin-top: 32px;
  }

  .legal-mcp-builder {
    min-height: 570px;
  }

  .legal-skills-layout {
    grid-template-columns: 1fr;
  }

  .legal-skill-composer {
    min-height: 620px;
  }

  .legal-file-pipeline {
    grid-template-columns: 1fr 180px 1fr;
    gap: 18px;
  }

  .legal-file-engine > div {
    width: 108px;
    height: 108px;
  }

  .legal-file-pulse {
    animation-name: legal-file-orbit-tablet;
  }

  .legal-format-grid,
  .legal-trust-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .legal-trust-grid article:nth-child(3) {
    border-left: 1px solid rgba(26, 32, 56, 0.14);
  }

  .legal-security-line {
    grid-template-columns: 1fr;
  }

  .legal-security-line > div {
    min-height: 90px;
    border-left: 1px solid rgba(26, 32, 56, 0.14);
    border-bottom: 1px solid rgba(26, 32, 56, 0.14);
  }

  .legal-security-line > div:last-child {
    border-bottom: 0;
  }

  .legal-cta-section {
    padding: 56px;
    grid-template-columns: 0.75fr 1.25fr;
  }
}

@keyframes legal-file-orbit-tablet {
  from { transform: rotate(0deg) translateX(78px) rotate(0deg); }
  to { transform: rotate(360deg) translateX(78px) rotate(-360deg); }
}

@media (max-width: 760px) {
  .legal-hero,
  .legal-cta-section {
    width: calc(100% - 24px);
  }

  .legal-scenarios-section,
  .legal-skills-section,
  .legal-trust-section,
  .legal-files-inner,
  .legal-mcp-inner,
  .legal-signal-rail {
    width: calc(100% - 32px);
  }

  .legal-hero {
    height: 820px;
    border-radius: 24px;
  }

  .legal-hero-copy {
    width: calc(100% - 40px);
    padding: 36px 0 0 20px;
  }

  .legal-hero-copy h1 {
    margin-top: 20px;
  }

  .legal-hero-copy h1 span {
    font-size: 46px;
  }

  .legal-hero-copy h1 small {
    margin-top: 8px;
    font-size: 19px;
  }

  .legal-hero-statement {
    margin-top: 20px;
    font-size: 26px;
  }

  .legal-hero-description {
    max-width: 520px;
  }

  .legal-audience span:nth-child(3) {
    display: none;
  }

  .legal-workbench {
    height: 335px;
    right: 14px;
    left: 14px;
  }

  .legal-workbench-top {
    grid-template-columns: 1fr auto;
  }

  .legal-workbench-top > div {
    display: none;
  }

  .legal-workbench-body {
    grid-template-columns: 128px minmax(0, 1fr);
  }

  .legal-workbench-nav {
    padding: 10px 8px;
  }

  .legal-workbench-nav > div span {
    padding: 0 5px;
    font-size: 7px;
  }

  .legal-workbench-nav > p:nth-of-type(n + 3) {
    display: none;
  }

  .legal-workbench-main {
    padding: 12px;
  }

  .legal-task-query {
    width: 100%;
    font-size: 8px;
  }

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

  .legal-agent-steps > span:nth-child(n + 4) {
    display: none;
  }

  .legal-signal-rail {
    overflow: hidden;
    justify-content: flex-start;
  }

  .legal-signal-rail span {
    white-space: nowrap;
  }

  .legal-signal-rail span:nth-child(n + 4) {
    display: none;
  }

  .legal-scenarios-section,
  .legal-skills-section,
  .legal-trust-section {
    padding: 96px 0 104px;
  }

  .legal-mcp-inner,
  .legal-files-inner {
    padding: 98px 0 104px;
  }

  .legal-section-heading {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .legal-section-heading > span {
    margin: 0;
  }

  .legal-section-heading h2,
  .legal-cta-section h2 {
    font-size: 39px;
  }

  .legal-section-heading p {
    margin-top: 18px;
  }

  .legal-scenario-grid,
  .legal-mcp-grid {
    grid-template-columns: 1fr;
  }

  .legal-scenario-grid article {
    min-height: 270px;
  }

  .legal-mcp-flow {
    min-height: 150px;
    grid-template-columns: 1fr;
    justify-items: start;
    align-content: center;
    gap: 12px;
  }

  .legal-mcp-flow > i {
    width: 1px;
    height: 18px;
    margin-left: 7px;
  }

  .legal-mcp-flow > i::after {
    top: 0;
    left: -2px;
    animation: legal-flow-particle-mobile 2s linear infinite;
  }

  .legal-mcp-flow > i:nth-of-type(3),
  .legal-mcp-flow > strong {
    display: none;
  }

  .legal-mcp-card {
    min-height: 550px;
  }

  .legal-mcp-custom-copy {
    min-height: 0;
    padding: 38px 30px;
  }

  .legal-mcp-custom-copy h3 {
    font-size: 34px;
  }

  .legal-mcp-builder {
    min-height: 0;
    margin: 16px;
    grid-template-rows: 40px auto 56px;
  }

  .legal-mcp-builder-body {
    grid-template-columns: 1fr;
  }

  .legal-mcp-builder-form {
    border-right: 0;
    border-bottom: 1px solid rgba(127, 147, 217, 0.14);
  }

  .legal-mcp-builder-bindings > p {
    margin-top: 22px;
  }

  .legal-mcp-builder-foot {
    flex-wrap: wrap;
    gap: 8px 14px;
  }

  .legal-file-pipeline {
    min-height: 0;
    padding: 22px;
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .legal-file-engine {
    width: min(70vw, 270px);
    margin: 0 auto;
  }

  .legal-file-engine::before,
  .legal-file-engine::after {
    display: none;
  }

  .legal-file-pulse {
    animation-name: legal-file-orbit;
  }

  .legal-cta-section {
    min-height: 610px;
    padding: 42px 32px;
    grid-template-columns: 1fr;
  }

  .legal-cta-visual {
    width: min(72vw, 280px);
    margin: 0 auto;
  }
}

@keyframes legal-flow-particle-mobile {
  from { top: 0; }
  to { top: calc(100% - 5px); }
}

@media (max-width: 520px) {
  .legal-hero {
    height: 870px;
  }

  .legal-hero-art {
    width: 440px;
    height: 440px;
    top: -80px;
    right: -190px;
    opacity: 0.42;
  }

  .legal-hero-copy h1 span {
    font-size: 40px;
  }

  .legal-hero-copy h1 small {
    font-size: 18px;
  }

  .legal-hero-statement {
    font-size: 24px;
  }

  .legal-hero-description br {
    display: none;
  }

  .legal-hero-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
  }

  .legal-primary-action {
    width: 100%;
  }

  .legal-secondary-action {
    justify-content: center;
  }

  .legal-audience {
    display: none;
  }

  .legal-workbench {
    height: 360px;
    right: 10px;
    left: 10px;
  }

  .legal-workbench-body {
    grid-template-columns: 1fr;
  }

  .legal-workbench-nav {
    display: none;
  }

  .legal-task-head span:last-child {
    display: none;
  }

  .legal-agent-response {
    grid-template-columns: 23px 1fr;
  }

  .legal-agent-mark {
    width: 23px;
    height: 23px;
  }

  .legal-agent-metrics {
    gap: 11px;
  }

  .legal-section-heading h2,
  .legal-cta-section h2 {
    font-size: 35px;
  }

  .legal-scenario-grid article {
    min-height: 250px;
    padding: 23px;
  }

  .legal-mcp-card {
    min-height: 570px;
    padding: 23px;
  }

  .legal-mcp-title {
    grid-template-columns: 1fr;
  }

  .legal-mcp-title > span {
    margin-top: 5px;
  }

  .legal-mcp-state {
    font-size: 6px;
  }

  .legal-mcp-prompt > div {
    gap: 5px;
  }

  .legal-mcp-prompt > div span {
    width: 12px;
  }

  .legal-mcp-custom-copy {
    padding: 32px 22px;
  }

  .legal-mcp-custom-copy h3 {
    font-size: 30px;
  }

  .legal-mcp-custom-copy > div {
    grid-template-columns: 1fr;
  }

  .legal-mcp-builder {
    margin: 10px;
  }

  .legal-mcp-builder-head span:first-child {
    max-width: 210px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .legal-mcp-builder-form,
  .legal-mcp-builder-bindings {
    padding: 20px 16px;
  }

  .legal-mcp-builder-title {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .legal-mcp-builder-title em {
    min-height: 34px;
    grid-column: 1 / -1;
    justify-content: center;
  }

  .legal-mcp-builder-fields,
  .legal-mcp-builder-tools > div {
    grid-template-columns: 1fr;
  }

  .legal-mcp-binding-nodes > span {
    grid-template-columns: 22px minmax(0, 1fr);
  }

  .legal-mcp-binding-nodes > span small {
    display: none;
  }

  .legal-mcp-builder-foot span:nth-of-type(2),
  .legal-mcp-builder-foot span:nth-of-type(3) {
    display: none;
  }

  .legal-composer-title {
    margin-right: 18px;
    margin-left: 18px;
    grid-template-columns: 42px 1fr;
  }

  .legal-composer-title > span {
    width: 42px;
    height: 42px;
  }

  .legal-composer-title em {
    display: none;
  }

  .legal-composer-fields,
  .legal-composer-stack {
    margin-right: 18px;
    margin-left: 18px;
  }

  .legal-composer-fields {
    grid-template-columns: 1fr;
  }

  .legal-composer-foot {
    margin: 22px 18px;
    flex-wrap: wrap;
  }

  .legal-composer-foot strong {
    width: 100%;
    margin-left: 0;
    justify-content: center;
  }

  .legal-format-grid,
  .legal-trust-grid {
    grid-template-columns: 1fr;
  }

  .legal-trust-grid article,
  .legal-trust-grid article:nth-child(3) {
    min-height: 250px;
    border-left: 1px solid rgba(26, 32, 56, 0.14);
    border-bottom: 1px solid rgba(26, 32, 56, 0.14);
  }

  .legal-cta-section {
    padding: 36px 24px;
  }

  .legal-cta-section > div:last-child > div {
    align-items: stretch;
    flex-direction: column;
    gap: 15px;
  }
}

@media (max-height: 800px) and (min-width: 761px) {
  .legal-hero-copy {
    padding-top: 34px;
  }

  .legal-hero-copy h1 {
    margin-top: 14px;
  }

  .legal-hero-copy h1 span {
    font-size: 54px;
  }

  .legal-hero-copy h1 small {
    margin-top: 7px;
    font-size: 19px;
  }

  .legal-hero-statement {
    margin-top: 14px;
    font-size: 25px;
  }

  .legal-hero-description {
    margin-top: 11px;
    font-size: 12px;
    line-height: 1.72;
  }

  .legal-hero-actions {
    margin-top: 13px;
  }

  .legal-audience {
    display: none;
  }

  .legal-workbench {
    height: 270px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .legal-hero-art,
  .legal-agent-steps .is-running i,
  .legal-mcp-flow > i::after,
  .legal-mcp-builder-head i,
  .legal-mcp-builder-foot i,
  .legal-composer-stack .is-current > i,
  .legal-file-ring,
  .legal-file-pulse,
  .legal-cta-ring {
    animation: none !important;
  }
}

@keyframes legal-config-pulse {
  0%, 100% { opacity: 0.48; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1); }
}

@supports (content-visibility: auto) {
  .legal-scenarios-section,
  .legal-skills-section,
  .legal-files-band,
  .legal-trust-section,
  .legal-cta-section {
    content-visibility: auto;
    contain-intrinsic-size: auto 900px;
  }
}
