@font-face {
  font-family: "Legalmed Jakarta";
  src: url("../fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02FF,U+1E00-1EFF;
}

@font-face {
  font-family: "Legalmed Jakarta";
  src: url("../fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF,U+2000-206F;
}


.legalmed-header {
  --yatbt-gutter: 20px;
  position: relative;
  border-bottom: 0;
  backdrop-filter: none;
}

.admin-bar .legalmed-header {
  top: auto;
}

.legalmed-header.is-main-fixed::after {
  content: "";
  display: block;
  height: var(--legalmed-bar-height);
}
.legalmed-header.is-main-fixed .legalmed-main-bar {
  position: fixed;
  inset: 0 0 auto;
  background: var(--yatbt-section-background, white);
  box-shadow: 0 4px 18px rgb(23 23 29 / 8%);
}
.admin-bar .legalmed-header.is-main-fixed .legalmed-main-bar { top: 32px; }
@media (min-width: 601px) and (max-width: 782px) {
  .admin-bar .legalmed-header.is-main-fixed .legalmed-main-bar { top: 46px; }
}
@media (max-width: 600px) {
  .admin-bar .legalmed-header.is-main-fixed .legalmed-main-bar { top: 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .legalmed-header.is-main-fixed .legalmed-main-bar {
    animation: legalmed-bar-enter .45s cubic-bezier(.22,.61,.36,1);
  }
  @keyframes legalmed-bar-enter {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
  }
}

.legalmed-utility {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  column-gap: clamp(18px, 2.5vw, 40px);
  min-height: 50px;
  color: var(--yatbt-section-text, #101a2b);
  font-size: 14px;
}

.legalmed-utility::after {
  position: absolute;
  inset: auto var(--yatbt-gutter) 0;
  height: 1px;
  background: var(--legalmed-accent);
  content: "";
}

.legalmed-utility a {
  color: inherit;
  text-decoration: none;
  transition: color var(--yatbt-hover);
}

.legalmed-utility a:hover {
  color: var(--legalmed-accent);
}

.legalmed-utility-contact,
.legalmed-utility-phones,
.legalmed-utility-email,
.legalmed-utility-social,
.legalmed-language {
  display: flex;
  align-items: center;
}

.legalmed-utility-contact {
  justify-content: flex-end;
  gap: clamp(20px, 3vw, 48px);
}

.legalmed-utility-phones,
.legalmed-utility-email,
.legalmed-utility-social,
.legalmed-language {
  gap: 8px;
}

.legalmed-utility a {
  min-height: 32px;
}

.legalmed-utility-social {
  justify-self: start;
  font-weight: 650;
  gap: 16px;
}

.legalmed-utility-social a {
  display: inline-flex;
  align-items: center;
}

.legalmed-utility-phones a {
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.legalmed-utility-phones a + a {
  padding-inline-start: 8px;
}

.legalmed-utility .dashicons {
  flex: none;
  width: 18px;
  height: 18px;
  font-size: 18px;
}

.legalmed-utility .legalmed-utility-icon {
  color: var(--legalmed-accent);
}

.legalmed-language {
  padding-inline-start: 16px;
  border-inline-start: 1px solid var(--legalmed-accent);
  font-weight: 650;
}

.legalmed-region {
  color: var(--legalmed-accent);
  font-size: .75em;
  font-weight: 750;
  letter-spacing: .04em;
  text-decoration: none;
}

.legalmed-header .yatbt-header-inner {
  min-height: 86px;
}

.legalmed-header .yatbt-brand .custom-logo {
  width: min(310px, calc(100vw - 120px));
  max-width: 100%;
  max-height: none;
}

.legalmed-header .yatbt-primary-navigation {
  gap: clamp(18px, 2.8vw, 44px);
}

.legalmed-header .yatbt-menu {
  gap: clamp(8px, 1.5vw, 24px);
}

.legalmed-header .yatbt-menu a,
.legalmed-submenu-toggle {
  font: 620 14px/1.3 "Inter", sans-serif;
}

.legalmed-header .yatbt-menu > li > a {
  padding-inline: 10px;
  border-radius: 9px;
}

.legalmed-header .yatbt-menu > li > a[aria-current="page"],
.legalmed-header .yatbt-menu > li > a:hover {
  background: var(--legalmed-accent);
  color: white;
}

.legalmed-header .yatbt-menu > li > .sub-menu {
  top: 100%;
  width: min(310px, 90vw);
  border-radius: 12px;
  z-index: 1;
}

.legalmed-header .yatbt-menu .sub-menu .sub-menu {
  position: static;
  width: auto;
  margin: 0 0 7px 11px;
  padding: 0 0 0 10px;
  transform: none;
  border: 0;
  border-left: 1px solid var(--legalmed-accent);
  border-radius: 0;
  box-shadow: none;
}

.legalmed-submenu-toggle {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 7px;
  padding: 5px 8px;
  border: 0;
  border-radius: 8px;
  color: inherit;
  background: transparent;
  cursor: pointer;
  transition: background-color var(--yatbt-hover), color var(--yatbt-hover);
}

.legalmed-submenu-toggle::after {
  width: 6px;
  height: 6px;
  margin-block-start: -3px;
  transform: rotate(45deg);
  border: solid currentColor;
  border-width: 0 1px 1px 0;
  content: "";
  transition: transform var(--yatbt-hover), margin-block-start var(--yatbt-hover);
}

.legalmed-submenu-toggle[aria-expanded="true"]::after {
  margin-block-start: 3px;
  transform: rotate(225deg);
}

.legalmed-header .legalmed-submenu-pair {
  display: flex;
  align-items: center;
}

.legalmed-header .legalmed-submenu-toggle:hover,
.legalmed-header .legalmed-submenu-toggle[aria-expanded="true"] {
  background: var(--legalmed-accent);
  color: white;
}

.yatbt-js .legalmed-header .yatbt-menu li > .sub-menu {
  display: none;
}

.yatbt-js .legalmed-header .yatbt-menu li.is-submenu-open > .sub-menu {
  display: block;
  visibility: visible;
  transform: none;
  opacity: 1;
}

@media (min-width: 1081px) {
  .yatbt-js .legalmed-header .yatbt-menu > li > .sub-menu {
    display: block;
  }

  .legalmed-header .yatbt-menu > li:last-child > .sub-menu {
    inset-inline: auto 0;
  }
  .yatbt-js .legalmed-header .yatbt-menu > li:not(.is-submenu-open) > .sub-menu {
    visibility: hidden;
    transform: translateY(5px);
    opacity: 0;
    pointer-events: none;
  }
}

.legalmed-header .yatbt-header-cta {
  padding-inline: 18px;
  border-radius: 8px;
  gap: 16px;
  font: 650 13px/1.2 "Inter", sans-serif;
}

.legalmed-header,
.legalmed-header .yatbt-menu a,
.legalmed-header .legalmed-submenu-toggle,
.legalmed-header .yatbt-header-cta {
  font-family: "Legalmed Jakarta", sans-serif;
}

.legalmed-utility { grid-template-columns: 1fr auto; font-weight: 550; font-size: 15px; }
.legalmed-utility::after { background: #e4e4e4; }
.legalmed-utility-social abbr { text-decoration: none; }
.legalmed-utility-contact { gap: clamp(20px, 4vw, 60px); }
.legalmed-utility-icon { width: 20px; height: 20px; }
.legalmed-header-actions { display: flex; align-items: center; gap: 13px; }
.legalmed-header-circle {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #f4f4f4;
  color: #181818;
  cursor: pointer;
  transition: color var(--yatbt-hover), background-color var(--yatbt-hover);
}
.legalmed-header-circle:hover {
  background: var(--legalmed-accent);
  color: white;
}
.legalmed-header .yatbt-header-cta {
  justify-content: center;
  min-height: 60px;
  padding-inline: 35px;
  border: 2px solid transparent;
  border-radius: 999px;
  color: #181818;
  background: white;
  border-color: var(--legalmed-accent);
  text-transform: uppercase;
  font-size: 14px;
  transition: color var(--yatbt-hover);
}
.legalmed-header .yatbt-header-cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.legalmed-header .yatbt-header-cta::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: var(--legalmed-accent);
  opacity: 0;
  transition: opacity var(--yatbt-motion);
}
.yatbt-header-cta > span {
  transition: transform var(--yatbt-motion), opacity var(--yatbt-hover);
}
.legalmed-cta-message {
  position: absolute;
  inset: 0 7px;
  display: grid;
  place-content: center;
  text-align: center;
  text-transform: none;
  color: white;
  line-height: 1.2;
  opacity: 0;
  transform: translateY(10px);
}
.legalmed-header .yatbt-header-cta:is(:hover, :focus-visible)::before,
.yatbt-header-cta:is(:hover, :focus-visible) .legalmed-cta-message {
  opacity: 1;
  transform: none;
}
.yatbt-header-cta:is(:hover, :focus-visible) [data-yatbt-field="ctaLabel"] {
  opacity: 0;
  transform: translateY(-10px);
}

.legalmed-back-top {
  position: fixed;
  inset-inline-end: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 100;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--legalmed-accent);
  color: white;
  box-shadow: 0 4px 16px rgb(0 0 0 / 14%);
  visibility: hidden;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--yatbt-motion), transform var(--yatbt-motion), visibility var(--yatbt-motion);
}
.legalmed-back-top.is-visible {
  visibility: visible;
  opacity: 1;
  transform: none;
}
.legalmed-back-top:is(:hover, :focus-visible) { color: white; }
.legalmed-back-top svg { transition: transform var(--yatbt-hover); }
.legalmed-back-top:is(:hover, :focus-visible) svg { transform: translateY(-2px); }
@media (min-width: 1081px) {
  .legalmed-header .yatbt-header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    min-height: 117px;
  }
  .legalmed-header .yatbt-brand,
  .legalmed-header .yatbt-primary-navigation { grid-area: 1 / 1; }
  .legalmed-header .yatbt-brand { justify-self: start; position: relative; z-index: 1; }
  .legalmed-header .yatbt-header-cta { min-width: clamp(150px, 16.7vw, 240px); }
  .legalmed-header .yatbt-brand .custom-logo { width: clamp(230px, calc(30vw - 94px), 345px); }
  .legalmed-header .yatbt-primary-navigation {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0;
  }
  .legalmed-header-actions { grid-column: 3; justify-self: end; }
  .legalmed-header .yatbt-menu { grid-column: 2; justify-content: center; gap: clamp(2px, 1vw, 26px); }
  .legalmed-header .yatbt-menu > li > :is(a, .legalmed-submenu-toggle) {
    min-height: 56px;
    padding-inline: clamp(12px, 1.4vw, 22px);
    border-radius: 40px;
    font-size: 16px;
    font-weight: 550;
    white-space: nowrap;
    transition: background-color var(--yatbt-hover), color var(--yatbt-hover);
  }
  .legalmed-submenu-toggle::after { width: 7px; height: 7px; margin: 3px 0 0 2px; border: 0; background: currentColor; clip-path: polygon(100% 0,100% 100%,0 100%); transform: none; }
  .legalmed-submenu-toggle[aria-expanded="true"]::after { transform: rotate(180deg); }
}
@media (min-width: 1081px) and (max-width: 1399px) {
  .legalmed-header-actions { gap: 8px; }
  .legalmed-header-circle { width: 44px; height: 44px; }
  .legalmed-header .yatbt-header-cta { min-width: 130px; padding-inline: 20px; }
}

.legalmed-hero {
  margin-block: 0 clamp(15px, 2vw, 28px);
}

.legalmed-hero-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(16px, 3vw, 48px);
  min-height: clamp(560px, 43vw, 780px);
  align-items: end;
  padding: clamp(40px, 4.8vw, 88px) clamp(30px, 4vw, 76px);
  isolation: isolate;
  overflow: hidden;
  border-radius: clamp(18px, 1.9vw, 34px) clamp(18px, 1.9vw, 34px) clamp(18px, 1.9vw, 34px) 8px;
  background: var(--yatbt-section-background, #101a2b);
  color: var(--yatbt-section-text, #fffdf9);
}

.legalmed-hero-media,
.legalmed-hero-media img,
.legalmed-hero-media::after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.legalmed-hero-media {
  z-index: -1;
}

.legalmed-hero-media img {
  display: block;
  object-fit: cover;
  object-position: 64% 43%;
}

.legalmed-hero-media::after {
  background:
    radial-gradient(ellipse at 3% 98%, rgb(39 66 74 / 46%), transparent 57%),
    linear-gradient(90deg, rgb(12 22 34 / 70%), rgb(12 22 34 / 52%) 36%, transparent 73%),
    linear-gradient(0deg, rgb(11 19 30 / 38%), transparent 56%);
  content: "";
}

.legalmed-hero-copy {
  min-width: 0;
}



.legalmed-hero h1 {
  margin: 0;
  color: inherit;
  font: 400 clamp(48px, 6.25vw, 120px)/.98 "Inter", sans-serif;
  letter-spacing: -.06em;
}

.legalmed-hero h1 em {
  display: block;
  margin-top: .11em;
  color: inherit;
  font: italic 400 .88em/1.04 Georgia, serif;
  letter-spacing: -.045em;
}

.legalmed-hero-description {
  max-width: 49ch;
  margin-top: clamp(18px, 2vw, 30px);
  color: inherit;
  font-size: clamp(15px, 1.35vw, 18px);
  line-height: 1.6;
}

.legalmed-hero-description:empty {
  display: none;
}

.legalmed-hero-description p {
  margin: 0;
}

.legalmed-hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
  justify-self: end;
  margin-bottom: 6px;
}

.legalmed-hero-button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 12px 21px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: white;
  background: var(--legalmed-accent);
  font-size: 14px;
  font-weight: 720;
  text-decoration: none;
  transition: background-color var(--yatbt-hover), box-shadow var(--yatbt-hover);
}

.legalmed-hero-button:hover {
  color: white;
  background: var(--legalmed-accent);
  box-shadow: 0 7px 24px rgb(7 15 25 / 25%);
}

.legalmed-hero-secondary {
  color: inherit;
}

@media (width > 760px) and (width < 1100px) {
  .legalmed-hero-media::after {
    background: linear-gradient(90deg, rgb(12 22 34 / 78%), rgb(12 22 34 / 56%) 45%, transparent 86%);
  }

}

@media (max-width: 1080px) {
  .legalmed-header .yatbt-menu {
    gap: 0;
  }

  .legalmed-header .yatbt-primary-navigation {
    gap: 0;
  }

  .legalmed-header .yatbt-menu > li > .sub-menu {
    width: auto;
  }

  .legalmed-header .yatbt-menu > li > a,
  .legalmed-header .yatbt-menu > li > .legalmed-submenu-toggle {
    justify-content: space-between;
    width: 100%;
    min-height: 48px;
    padding-inline: 10px;
  }

  .legalmed-header .yatbt-header-inner {
    min-height: 70px;
  }
}

@media (max-width: 900px) {
  .legalmed-utility {
    grid-template-columns: 1fr auto;
    column-gap: 12px;
    padding-block: 3px 8px;
    font-size: 12px;
  }

  .legalmed-language {
    grid-column: 2;
    grid-row: 1;
    padding: 0;
    border: 0;
  }

  .legalmed-utility-contact {
    grid-column: 1 / -1;
    justify-content: flex-start;
    flex-wrap: wrap;
    column-gap: 18px;
    row-gap: 0;
  }

}

@media (max-width: 760px) {
  .legalmed-hero-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    min-height: 0;
    padding: clamp(225px, 59vw, 338px) clamp(19px, 5vw, 30px) 24px;
    border-radius: 20px 20px 20px 7px;
  }

  .legalmed-hero-media {
    height: clamp(284px, 75vw, 420px);
  }

  .legalmed-hero-media img {
    object-position: 76% 35%;
  }

  .legalmed-hero-media::after {
    background: linear-gradient(0deg, var(--yatbt-section-background, #101a2b), transparent 48%);
  }

  .legalmed-hero-actions {
    margin-bottom: 0;
  }

  .legalmed-hero h1 {
    font-size: clamp(33px, 9.3vw, 66px);
  }

}

@media (max-width: 360px) {
  .legalmed-utility-phones {
    gap: 5px;
    font-size: 11px;
  }

  .legalmed-utility-phones a + a {
    padding-inline-start: 5px;
  }
}

@media (max-width: 1080px) {
  .yatbt-js .legalmed-header > .legalmed-utility { display: none; }
  .legalmed-header .yatbt-nav-toggle { padding: 8px; min-height: 44px; border: none; background: transparent; color: #181818; }
  .legalmed-header .yatbt-nav-toggle-label { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; }
  .legalmed-header .yatbt-nav-toggle-icon { border-block-start: 2px solid currentColor; padding-top: 4px; }
  .legalmed-header-actions { flex-wrap: wrap; margin-top: 16px; gap: 8px; }
  .legalmed-header-circle { width: 44px; height: 44px; }
  .legalmed-header .yatbt-header-cta { width: auto; min-width: 122px; min-height: 44px; margin: 0; padding-inline: 18px; }
  .legalmed-header nav .legalmed-utility { display: flex; flex-wrap: wrap; width: 100%; padding: 14px 0 0; gap: 4px 16px; margin-top: 14px; border-top: 1px solid #ddd; }
  .legalmed-header nav .legalmed-utility-contact { flex-wrap: wrap; justify-content: flex-start; gap: 2px 12px; }
  .legalmed-header nav .legalmed-utility-phones { flex-wrap: wrap; }
  .legalmed-header nav .legalmed-utility::after { content: none; }
}

/* Both menu levels follow the site accent. */
.legalmed-header {
  --legalmed-menu-wine: color-mix(in srgb, var(--legalmed-accent) 74%, #675861);
  --legalmed-menu-tint: color-mix(in srgb, var(--legalmed-accent) 8%, white);
  --legalmed-menu-highlight: color-mix(in srgb, var(--legalmed-accent) 14%, white);
}
@media (min-width: 1081px) {
  .legalmed-header .yatbt-menu > li > .legalmed-submenu-pair {
    padding-inline: 16px 10px;
    min-height: 56px;
    border-radius: 40px;
    transition: background-color .5s ease-in-out;
  }
  .legalmed-header .yatbt-menu > li > .legalmed-submenu-pair a {
    color: inherit; font-size: 16px; font-weight: 600;
  }
  .legalmed-header .yatbt-menu > li.is-submenu-open > :is(.legalmed-submenu-pair,.legalmed-submenu-toggle),
  .legalmed-header .yatbt-menu > li > .legalmed-submenu-toggle:hover {
    color: var(--legalmed-accent); background: var(--legalmed-menu-tint);
  }
  .legalmed-header .yatbt-menu > li > .legalmed-submenu-pair button { background: transparent; color: inherit; }
  .legalmed-header .yatbt-menu li { position: relative; }
  .legalmed-header .yatbt-menu > li > .sub-menu,
  .legalmed-header .yatbt-menu .sub-menu .sub-menu {
    position: absolute; box-sizing: border-box; width: 260px; margin: 0; padding: 20px 10px;
    background: var(--legalmed-menu-wine); color: white; border: 0; border-radius: 30px; box-shadow: none;
    transition: opacity .5s ease-in-out, transform .5s ease-in-out, visibility .5s;
  }
  .legalmed-header .yatbt-menu > li > .sub-menu { inset: calc(100% + 13px) auto auto -31px; }
  .legalmed-header .yatbt-menu > li:last-child > .sub-menu { inset-inline: -31px auto; }
  .legalmed-header .yatbt-menu .sub-menu .sub-menu { inset: -20px auto auto calc(100% + 13px); }
  .legalmed-header .yatbt-menu .sub-menu .sub-menu.opens-left { inset-inline: auto calc(100% + 13px); }
  .legalmed-header .yatbt-menu > li > .sub-menu::before,
  .legalmed-header .sub-menu .sub-menu::before { content: ""; position: absolute; }
  .legalmed-header .yatbt-menu > li > .sub-menu::before { inset: -13px 0 100%; }
  .legalmed-header .sub-menu .sub-menu::before { inset: 0 100% 0 -14px; }
  .legalmed-header .sub-menu .sub-menu.opens-left::before { inset: 0 -14px 0 100%; }
  .yatbt-js .legalmed-header .yatbt-menu .sub-menu li > .sub-menu { display: block; }
  .yatbt-js .legalmed-header .yatbt-menu .sub-menu li:not(.is-submenu-open) > .sub-menu {
    visibility: hidden; opacity: 0; pointer-events: none; transform: translateX(-5px);
  }
  .legalmed-header .sub-menu > li + li { margin-top: 2px; }
  .legalmed-header .yatbt-menu .sub-menu :is(a,button) {
    color: white; background: transparent; font: 600 15px/19px "Legalmed Jakarta",sans-serif;
    text-align: start; border: none; border-radius: 0; min-height: 39px; padding: 10px;
    transition: color .3s ease;
  }
  .legalmed-header .sub-menu > li > button { width: 100%; justify-content: space-between; }
  .legalmed-header .sub-menu .legalmed-submenu-pair > a { flex: 1; min-width: 0; }
  .legalmed-header .sub-menu .legalmed-submenu-pair > button { padding-inline: 9px; }
  .legalmed-header .yatbt-menu .sub-menu li:is(:hover,:focus-within,.is-submenu-open) > :is(a,button),
  .legalmed-header .yatbt-menu .sub-menu li:is(:hover,:focus-within,.is-submenu-open) > .legalmed-submenu-pair > :is(a,button),
  .legalmed-header .yatbt-menu .sub-menu a[aria-current="page"] { color: var(--legalmed-menu-highlight); background: transparent; }
  .legalmed-header .sub-menu .legalmed-submenu-toggle::after { transform: rotate(-45deg); }
}
@media (max-width: 1080px) {
  .legalmed-header .yatbt-menu > li > .sub-menu { width: 100%; padding: 6px 8px; border-radius: 12px; background: var(--legalmed-menu-tint); }
  .legalmed-header .yatbt-menu .sub-menu :is(a,button) { min-height: 44px; border-bottom: 0; }
  .legalmed-header .legalmed-submenu-pair > a { flex: 1; }
  .legalmed-header .legalmed-submenu-pair > button { justify-content: center; min-width: 44px; }
  .legalmed-header .yatbt-menu .sub-menu .sub-menu { background: transparent; border-color: color-mix(in srgb, var(--legalmed-accent) 24%, white); }
}
@media (prefers-reduced-motion: reduce) {
  .legalmed-header .yatbt-menu > li > .sub-menu, .legalmed-header .legalmed-submenu-toggle::after { transition: none; }
}
