.lm-index { width: min(1880px, calc(100% - 40px)); margin: 24px auto 60px; color: #181818; font-family: "Legalmed Jakarta",sans-serif; }
.lm-index :is(h1,h2,h3) { font-weight: 480; letter-spacing: -.045em; line-height: 1.13; margin: 0; }
.lm-index-top { display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
.lm-index-top header { position: sticky; top: 145px; padding: 36px 6% 40px 11%; }
.lm-index h1 { font-size: clamp(40px,6.65vw,96px); margin: 18px 0 36px; }
.lm-index h1 em { font-family: Georgia,serif; font-weight: 400; }
.lm-index .lm-index-pill,.lm-index .lm-pill { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding-inline: 30px; font-family: inherit; font-size: 14px; font-weight: 600; line-height: 1.2; border: 1px solid var(--legalmed-accent); border-radius: 99px; color: inherit; cursor: pointer; }
.lm-index-cards { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: clamp(16px,3.4vw,50px); scroll-margin-top: 140px; }
.lm-index .lm-index-card { display: flex; align-items: end; overflow: hidden; isolation: isolate; position: relative; min-height: clamp(340px,32.65vw,470px); padding: clamp(18px,2vw,30px); border-radius: 30px; color: white; }
.lm-index-card:nth-child(even) { translate: 0 28px; }
.lm-index-card img,.lm-index-card::after { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.lm-index-card img { object-fit: cover; transition: transform .65s ease; }
.lm-index-card::after { content: ""; background: linear-gradient(transparent 15%,rgb(33 15 24 / 85%) 100%); }
.lm-index-card:is(:hover,:focus-visible) img { transform: scale(1.04); }
.lm-index-card h2 { font-size: clamp(23px,2.3vw,34px); color: inherit; }
.lm-index-card p { margin: 0; max-height: 0; overflow: hidden; opacity: 0; transition: max-height .6s ease,opacity .5s ease; }
.lm-index-card:is(:hover,:focus-visible) p { max-height: 15em; opacity: 1; }
.lm-index-card span { display: inline-block; font-size: 13px; margin-top: 14px; }
.lm-index-logos { margin: clamp(60px,8vw,115px) auto; overflow: hidden; container-type: inline-size; }
.lm-index-logo-track { width: max-content; display: flex; animation: lm-logo-scroll 60s linear infinite; }
.lm-index-logo-track span { display: grid; place-items: center; width: max(135px,16.66667cqw); height: clamp(90px,11.5vw,165px); }
.lm-index-logo-track img { width: 64%; max-width: 144px; height: 72px; object-fit: cover; border-radius: 12px; }
.lm-index-logos:hover .lm-index-logo-track { animation-play-state: paused; }
@keyframes lm-logo-scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .lm-index-logo-track { animation: none; } }
.lm-methods { background: #f3f3f3; border-radius: 30px; padding: clamp(30px,5vw,80px) clamp(15px,3vw,52px); text-align: center; }
.lm-methods .yatbt-eyebrow { justify-content: center; }
.lm-methods h2,.lm-index-inquiry h2 { font-size: clamp(36px,5vw,76px); }
.lm-methods fieldset { min-width: 0; border: 0; padding: 0; margin: 26px 0 0; }
.lm-methods input { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); }
.lm-methods label { display: inline-block; text-transform: uppercase; border-radius: 50px; padding: 12px 24px; cursor: pointer; }
.lm-methods input:checked + label { color: white; background: var(--legalmed-accent); }
.lm-methods input:focus-visible + label { outline: 2px solid currentColor; outline-offset: 4px; }
.lm-method { display: none; margin-top: 30px; grid-template-columns: 42fr 58fr; border-radius: 30px; overflow: hidden; background: #304049; color: white; text-align: left; }
#lm-office:checked ~ .lm-method:first-of-type,#lm-online:checked ~ .lm-method:last-of-type { display: grid; }
.lm-method > div { align-self: center; padding: clamp(24px,5vw,84px); }
.lm-method h3 { font-size: clamp(30px,3.5vw,56px); color: inherit; }
.lm-method p { line-height: 1.8; }
.lm-method .lm-index-pill { border-color: white; }
.lm-method img { width: 100%; height: clamp(350px,44vw,690px); object-fit: cover; }
.lm-index-steps { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 24px; margin: clamp(52px,7vw,110px) auto; }
.lm-index-steps img { width: 64px; height: 64px; object-fit: cover; border-radius: 14px; margin-bottom: 12px; }
.lm-index-steps h2 { font-size: 22px; }
.lm-index-steps p,.lm-index-inquiry p { line-height: 1.8; }
.lm-index-inquiry { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 5%; padding: clamp(22px,6vw,95px); border-radius: 30px; background: #f4f2f3; }
.lm-index-inquiry .lm-request { width: 100%; padding: 28px; background: white; border-radius: 24px; }
.lm-index-inquiry summary { cursor: pointer; font-weight: 600; }
.lm-index-inquiry form { display: grid; gap: 12px; margin-top: 18px; }
.lm-index-inquiry :is(input:not([type]),input[type=email],input[type=tel],textarea,select) { display: block; width: 100%; min-width: 0; padding: 9px; border: 0; border-bottom: 1px solid #ccc; font: inherit; }
@media (max-width: 900px) {
  .lm-index-top { grid-template-columns: 1fr; }
  .lm-index-top header { position: static; padding: 30px 0; }
  .lm-index-steps { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 640px) {
  .lm-index-cards,.lm-index-inquiry,.lm-method { grid-template-columns: minmax(0,1fr); }
  .lm-index-card:nth-child(even) { translate: none; }
  .lm-index-inquiry { gap: 24px; }
  .lm-index-inquiry .lm-request { padding: 16px; }
  .lm-method img { height: 220px; }
}
@media (hover: none) { .lm-index-card p { max-height: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .lm-index-card img,.lm-index-card p { transition: none; } }
