:root {
  --legal-home-accent: #1db58e;
  --legal-home-accent-dark: #13785f;
  --legal-home-accent-soft: #e9f8f3;
  --legal-home-border: #dbe7e2;
  --legal-home-dark: #101d19;
  --legal-home-dark-soft: #182923;
  --legal-home-ink: #202d28;
  --legal-home-muted: #64716c;
  --legal-home-shadow: 0 14px 38px rgba(24, 56, 46, 0.1);
}

.legal-home-body {
  background: #fff;
}

.legal-home {
  color: var(--legal-home-ink);
  overflow: hidden;
}

.legal-home h1,
.legal-home h2,
.legal-home h3 {
  color: var(--legal-home-ink);
}

.legal-home-section {
  padding: 5.25rem 0;
}

.legal-home-kicker,
.legal-home-section-kicker,
.legal-home-plan-eyebrow,
.legal-home-resource-eyebrow {
  color: var(--legal-home-accent-dark);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin: 0 0 0.5rem;
  text-transform: uppercase;
}

.legal-home-kicker i {
  margin-right: 0.25rem;
}

.legal-home-section-heading {
  margin: 0 auto 2.5rem;
  max-width: 780px;
  text-align: center;
}

.legal-home-section-heading h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.12;
  margin: 0 0 0.9rem;
}

.legal-home-section-heading > p:last-child {
  color: var(--legal-home-muted);
  font-size: 1rem;
  line-height: 1.7;
  margin: 0;
}

.legal-home-hero {
  background:
    radial-gradient(circle at 92% 8%, rgba(29, 181, 142, 0.13) 0, rgba(29, 181, 142, 0.13) 165px, transparent 166px),
    radial-gradient(circle at 72% 95%, rgba(29, 181, 142, 0.07) 0, rgba(29, 181, 142, 0.07) 110px, transparent 111px),
    linear-gradient(135deg, #edf9f5 0%, #fff 68%);
  border-bottom: 1px solid #d3ebe3;
  padding: 4.75rem 0;
}

.legal-home-hero h1 {
  font-size: clamp(2.55rem, 5vw, 4.25rem);
  line-height: 1.055;
  margin: 0 0 1.25rem;
  max-width: 820px;
}

.legal-home-hero-lead {
  color: #4d5b56;
  font-size: 1.17rem;
  line-height: 1.68;
  margin: 0 0 1.6rem;
  max-width: 760px;
}

.legal-home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.legal-home-hero-actions .btn,
.legal-home .legal-home-button {
  align-items: center;
  display: inline-flex;
  font-size: 0.95rem;
  font-weight: 700;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
}

.legal-home .btn-success {
  background-color: var(--legal-home-accent-dark);
  border-color: var(--legal-home-accent-dark);
}

.legal-home .btn-success:hover,
.legal-home .btn-success:focus-visible {
  background-color: #0f604d;
  border-color: #0f604d;
}

.legal-home-hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.2rem;
  margin-top: 1.5rem;
}

.legal-home-hero-trust span {
  color: #52605b;
  font-size: 0.82rem;
  font-weight: 700;
}

.legal-home-hero-trust i {
  color: var(--legal-home-accent-dark);
  margin-right: 0.3rem;
}

.legal-home-hero-visual {
  background: #fff;
  border: 1px solid #c8e3da;
  border-radius: 19px;
  box-shadow: var(--legal-home-shadow);
  overflow: hidden;
}

.legal-home-hero-photo {
  display: block;
  height: 215px;
  object-fit: cover;
  object-position: center 42%;
  width: 100%;
}

.legal-home-plan-card {
  background: #fff;
  padding: 1.5rem;
}

.legal-home-plan-card h2 {
  font-size: 1.5rem;
  margin: 0 0 1.15rem;
}

.legal-home-plan-steps {
  display: grid;
  gap: 0.8rem;
  list-style: none;
  margin: 0 0 1.15rem;
  padding: 0;
}

.legal-home-plan-steps li {
  align-items: flex-start;
  background: #f7faf9;
  border: 1px solid #e1e9e6;
  border-radius: 11px;
  display: flex;
  gap: 0.75rem;
  padding: 0.78rem;
}

.legal-home-plan-number {
  align-items: center;
  background: var(--legal-home-accent);
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 0.74rem;
  font-weight: 700;
  height: 29px;
  justify-content: center;
  width: 29px;
}

.legal-home-plan-steps strong,
.legal-home-plan-steps small {
  display: block;
}

.legal-home-plan-steps strong {
  color: var(--legal-home-ink);
  font-size: 0.88rem;
  margin-bottom: 0.15rem;
}

.legal-home-plan-steps small {
  color: var(--legal-home-muted);
  line-height: 1.45;
}

.legal-home-inline-link {
  align-items: center;
  color: var(--legal-home-accent-dark);
  display: inline-flex;
  font-size: 0.87rem;
  font-weight: 700;
  gap: 0.4rem;
}

.legal-home-tools {
  background:
    radial-gradient(circle at 8% 15%, rgba(61, 203, 166, 0.08) 0, rgba(61, 203, 166, 0.08) 120px, transparent 121px),
    linear-gradient(135deg, var(--legal-home-dark-soft) 0%, var(--legal-home-dark) 100%);
  border-bottom: 1px solid #0b1713;
  position: relative;
}

.legal-home-tools .legal-home-section-kicker {
  color: #71ddbe;
}

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

.legal-home-tools .legal-home-section-heading > p:last-child {
  color: #c5d5cf;
}

.legal-home-tool-card {
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 15px;
  box-shadow: 0 12px 28px rgba(2, 16, 12, 0.25);
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 278px;
  padding: 1.25rem;
  position: relative;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.legal-home-tool-card::before {
  background: var(--tool-color, var(--legal-home-accent));
  border-radius: 15px 15px 0 0;
  content: "";
  height: 5px;
  inset: 0 0 auto;
  position: absolute;
}

.legal-home-tool-card:hover {
  border-color: var(--tool-color, var(--legal-home-accent));
  box-shadow: 0 16px 34px rgba(2, 16, 12, 0.33);
  transform: translateY(-4px);
}

.legal-home-tool-card--purple {
  --tool-color: #7554b6;
  --tool-soft: #f0ebfa;
}

.legal-home-tool-card--blue {
  --tool-color: #3975b9;
  --tool-soft: #eaf2fb;
}

.legal-home-tool-card--amber {
  --tool-color: #bc762a;
  --tool-soft: #fff2e3;
}

.legal-home-tool-card--red {
  --tool-color: #b34f59;
  --tool-soft: #fbecef;
}

.legal-home-tool-card-top {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin: 0 0 1rem;
}

.legal-home-tool-icon {
  align-items: center;
  background: var(--tool-soft, var(--legal-home-accent-soft));
  border-radius: 10px;
  color: var(--tool-color, var(--legal-home-accent-dark));
  display: inline-flex;
  font-size: 1.2rem;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.legal-home-tool-tag {
  background: var(--tool-soft, var(--legal-home-accent-soft));
  border-radius: 999px;
  color: var(--tool-color, var(--legal-home-accent-dark));
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.35rem 0.58rem;
  text-transform: uppercase;
}

.legal-home-tool-card h3 {
  font-size: 1.12rem;
  line-height: 1.35;
  margin: 0 0 0.65rem;
}

.legal-home-tool-card p {
  color: var(--legal-home-muted);
  flex-grow: 1;
  font-size: 0.88rem;
  line-height: 1.65;
  margin-bottom: 1rem;
}

.legal-home-tool-card a {
  align-items: center;
  border-top: 1px solid #e6ece9;
  color: var(--tool-color, var(--legal-home-accent-dark));
  display: flex;
  font-size: 0.8rem;
  font-weight: 700;
  justify-content: space-between;
  padding-top: 0.85rem;
}

.legal-home-tools-footer,
.legal-home-guides-footer,
.legal-home-latest-footer {
  margin-top: 2rem;
  text-align: center;
}

.legal-home-tools-footer .btn {
  border-color: #78d8bd;
  color: #eafff8;
  font-weight: 700;
}

.legal-home-tools-footer .btn:hover,
.legal-home-tools-footer .btn:focus-visible {
  background: #78d8bd;
  color: #10221c;
}

.legal-home-tool-boundary {
  color: #aebfba;
  font-size: 0.8rem;
  line-height: 1.55;
  margin: 1.15rem auto 0;
  max-width: 780px;
  text-align: center;
}

.legal-home-featured {
  background: #fff;
}

.legal-home-featured-grid .article_include_card {
  background: #fff;
  border: 1px solid var(--legal-home-border);
  border-radius: 15px !important;
  box-shadow: 0 9px 25px rgba(29, 65, 53, 0.08);
  overflow: hidden;
  position: relative;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.legal-home-featured-grid .article_include_card:hover {
  border-color: var(--legal-home-accent);
  box-shadow: 0 14px 31px rgba(29, 65, 53, 0.14);
  transform: translateY(-4px);
}

.legal-home-featured-grid .article_thumbnail_card {
  border-radius: 0 !important;
  display: block;
  height: 175px !important;
  margin: 0 !important;
  object-fit: cover;
  object-position: center;
  width: 100%;
}

.legal-home-featured-grid .card-body {
  display: flex;
  flex-direction: column;
  min-height: 122px;
  padding: 1rem;
}

.legal-home-featured-grid .featured-article-card-title {
  font-size: 1rem !important;
  line-height: 1.42;
  margin: 0;
}

.legal-home-featured-grid .featured-article-card-title a {
  color: var(--legal-home-ink) !important;
}

.legal-home-featured-grid .featured-article-card-title a::after {
  content: "";
  inset: 0;
  position: absolute;
}

.legal-home-featured-grid .card-body::after {
  color: var(--legal-home-accent-dark);
  content: "Read guide \2192";
  font-size: 0.76rem;
  font-weight: 700;
  margin-top: auto;
  padding-top: 0.8rem;
}

.legal-home-guides-footer .btn,
.legal-home-latest-footer .btn {
  font-weight: 700;
}

.legal-home-latest {
  background:
    radial-gradient(circle at 92% 6%, rgba(29, 181, 142, 0.09) 0, rgba(29, 181, 142, 0.09) 115px, transparent 116px),
    #f2f7f5;
  border-color: #dbe8e3;
  border-style: solid;
  border-width: 1px 0;
}

.legal-home-article-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(3, 1fr);
}

.legal-home-article-grid .article_include {
  background: #fff;
  border: 1px solid var(--legal-home-border);
  border-radius: 15px;
  box-shadow: 0 9px 25px rgba(29, 65, 53, 0.08);
  display: flex;
  flex-direction: column;
  margin: 0;
  min-width: 0;
  padding: 1.2rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.legal-home-article-grid .article_include:hover {
  border-color: var(--legal-home-accent);
  box-shadow: 0 14px 30px rgba(29, 65, 53, 0.14);
  transform: translateY(-3px);
}

.legal-home-article-grid .article_include h3 {
  font-size: 1.08rem;
  line-height: 1.4;
  margin: 0 0 0.75rem;
}

.legal-home-article-grid .article_include h3 a {
  color: var(--legal-home-ink);
}

.legal-home-article-grid .article_include h3 a:hover,
.legal-home-article-grid .article_include h3 a:focus-visible {
  color: var(--legal-home-accent-dark);
}

.legal-home-article-grid .article_include p {
  color: var(--legal-home-muted);
  flex-grow: 1;
  font-size: 0.86rem;
  line-height: 1.62;
  margin: 0;
}

.legal-home-article-grid img.article_thumbnail {
  border-radius: 9px;
  display: inline;
  float: left;
  height: 86px;
  margin: 0.15rem 0.8rem 0.45rem 0;
  object-fit: cover;
  object-position: center;
  width: 86px;
}

.legal-home-article-grid .more_link {
  color: var(--legal-home-accent-dark);
  font-weight: 700;
  margin-left: 0.15rem;
}

.legal-home-preparation {
  background: #fff;
}

.legal-home-step-card {
  background: #fff;
  border: 1px solid var(--legal-home-border);
  border-radius: 15px;
  height: 100%;
  padding: 1.4rem;
  position: relative;
}

.legal-home-step-number {
  align-items: center;
  background: var(--legal-home-dark);
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  font-size: 0.8rem;
  font-weight: 700;
  height: 38px;
  justify-content: center;
  margin-bottom: 1rem;
  width: 38px;
}

.legal-home-step-card h3 {
  font-size: 1.15rem;
  margin: 0 0 0.65rem;
}

.legal-home-step-card p {
  color: var(--legal-home-muted);
  font-size: 0.91rem;
  line-height: 1.65;
  margin: 0;
}

.legal-home-step-connector {
  color: var(--legal-home-accent);
  font-size: 1.5rem;
  position: absolute;
  right: -1.2rem;
  top: 1.55rem;
  z-index: 2;
}

.legal-home-checklist {
  background: var(--legal-home-accent-soft);
  border: 1px solid #cce8df;
  border-radius: 15px;
  margin-top: 2rem;
  padding: 1.5rem;
}

.legal-home-checklist h3 {
  font-size: 1.25rem;
  margin: 0 0 1rem;
}

.legal-home-checklist ul {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, 1fr);
  list-style: none;
  margin: 0;
  padding: 0;
}

.legal-home-checklist li {
  align-items: flex-start;
  color: #4c5b56;
  display: flex;
  font-size: 0.9rem;
  gap: 0.55rem;
  line-height: 1.55;
}

.legal-home-checklist i {
  color: var(--legal-home-accent-dark);
  margin-top: 0.1rem;
}

.legal-home-resources {
  background: #f3f7f5;
  border-top: 1px solid #dce8e3;
}

.legal-home-resource-card {
  background: #fff;
  border: 1px solid var(--legal-home-border);
  border-radius: 16px;
  box-shadow: var(--legal-home-shadow);
  height: 100%;
  padding: 1.55rem;
}

.legal-home-resource-heading {
  align-items: center;
  display: flex;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.legal-home-resource-icon {
  align-items: center;
  background: var(--legal-home-accent-soft);
  border-radius: 11px;
  color: var(--legal-home-accent-dark);
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 1.25rem;
  height: 48px;
  justify-content: center;
  width: 48px;
}

.legal-home-resource-heading h3 {
  font-size: 1.25rem;
  margin: 0;
}

.legal-home-resource-card > p {
  color: var(--legal-home-muted);
  line-height: 1.68;
}

.legal-home-topic-list,
.legal-home-attorney-list {
  display: grid;
  gap: 0.65rem;
  list-style: none;
  margin: 1.1rem 0;
  padding: 0;
}

.legal-home-topic-list {
  grid-template-columns: repeat(2, 1fr);
}

.legal-home-topic-list li,
.legal-home-attorney-list li {
  align-items: flex-start;
  color: #53615c;
  display: flex;
  font-size: 0.88rem;
  gap: 0.55rem;
  line-height: 1.5;
}

.legal-home-topic-list i,
.legal-home-attorney-list i {
  color: var(--legal-home-accent-dark);
}

.legal-home-confidence {
  background: var(--legal-home-dark);
}

.legal-home-confidence .legal-home-section-kicker {
  color: #70dabd;
}

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

.legal-home-confidence-card {
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 14px;
  height: 100%;
  padding: 1.45rem;
  text-align: center;
}

.legal-home-confidence-card > i {
  align-items: center;
  background: rgba(29, 181, 142, 0.15);
  border-radius: 50%;
  color: #79dfc1;
  display: inline-flex;
  font-size: 1.2rem;
  height: 45px;
  justify-content: center;
  margin-bottom: 1rem;
  width: 45px;
}

.legal-home-confidence-card h3 {
  color: #fff;
  font-size: 1.06rem;
  margin-bottom: 0.6rem;
}

.legal-home-confidence-card p {
  color: #b9c9c3;
  font-size: 0.86rem;
  line-height: 1.65;
  margin: 0;
}

.legal-home-final {
  background: #eef5f2;
  padding: 3rem 0;
}

.legal-home-final-card {
  align-items: center;
  background:
    radial-gradient(circle at 93% 0, rgba(29, 181, 142, 0.22) 0, rgba(29, 181, 142, 0.22) 118px, transparent 119px),
    #192722;
  border: 1px solid #2e423a;
  border-radius: 16px;
  box-shadow: var(--legal-home-shadow);
  display: grid;
  gap: 1.25rem;
  grid-template-columns: auto 1fr auto;
  overflow: hidden;
  padding: 1.55rem;
}

.legal-home-final-icon {
  align-items: center;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  color: #71dcbc;
  display: inline-flex;
  font-size: 1.3rem;
  height: 58px;
  justify-content: center;
  width: 58px;
}

.legal-home-final-card h2 {
  color: #fff;
  font-size: 1.35rem;
  margin: 0 0 0.25rem;
}

.legal-home-final-card p {
  color: #bdcbc6;
  font-size: 0.88rem;
  margin: 0;
}

.legal-home-final-card .legal-home-section-kicker {
  color: #70dabd;
  font-size: 0.67rem;
  margin-bottom: 0.35rem;
}

.legal-home-final-card .btn {
  font-weight: 700;
  white-space: nowrap;
}

@media (max-width: 991.98px) {
  .legal-home-section,
  .legal-home-hero {
    padding: 4.25rem 0;
  }

  .legal-home-article-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .legal-home-step-connector {
    display: none;
  }

  .legal-home-final-card {
    grid-template-columns: auto 1fr;
  }

  .legal-home-final-card .btn {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

@media (max-width: 767.98px) {
  .legal-home-section,
  .legal-home-hero {
    padding: 3.65rem 0;
  }

  .legal-home-hero h1 {
    font-size: clamp(2.35rem, 10vw, 3.25rem);
  }

  .legal-home-hero-lead {
    font-size: 1.04rem;
  }

  .legal-home-article-grid {
    grid-template-columns: 1fr;
  }

  .legal-home-checklist ul,
  .legal-home-topic-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575.98px) {
  .legal-home-hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .legal-home-hero-actions .btn {
    justify-content: center;
  }

  .legal-home-hero-photo {
    height: 180px;
  }

  .legal-home-plan-card {
    padding: 1.2rem;
  }

  .legal-home-featured-grid {
    --bs-gutter-x: 0.75rem;
    --bs-gutter-y: 0.75rem;
  }

  .legal-home-featured-grid .article_thumbnail_card {
    height: 125px !important;
  }

  .legal-home-featured-grid .card-body {
    min-height: 130px;
    padding: 0.8rem;
  }

  .legal-home-featured-grid .featured-article-card-title {
    font-size: 0.88rem !important;
  }

  .legal-home-final-card {
    grid-template-columns: 1fr;
  }

  .legal-home-final-icon {
    height: 50px;
    width: 50px;
  }

  .legal-home-final-card .btn {
    justify-self: stretch;
  }
}

@media (prefers-reduced-motion: reduce) {
  .legal-home-tool-card,
  .legal-home-featured-grid .article_include_card,
  .legal-home-article-grid .article_include {
    transition: none;
  }
}
