/* Executive Signature
   The supplied Bonnard Lawson artwork informs this composition only. Tenant
   and card assets remain independent: a company mark is never used as the
   profile photo, and a missing portrait never leaves an empty circle. */
.legal-signature-vcard {
  --signature-deep: var(--qardora-brand, #1e2932);
  --signature-paper: var(--qardora-surface, #fff);
  --signature-ink: var(--qardora-ink, #1d2428);
  --signature-muted: var(--qardora-muted, #697177);
  --signature-line: var(--qardora-border, #d8d9d5);
  --signature-accent: var(--qardora-icon, #b28b52);
  --signature-footer: var(--qardora-action, var(--qardora-brand, #1e2932));
  /* Mobile artwork dimensions scale with the card, without reserving an
     oversized footer on shorter phone screens. */
  --signature-footer-min-height: clamp(208px, 55vw, 252px);
  --signature-footer-gap: clamp(16px, 5vw, 26px);
  --signature-footer-padding-top: clamp(38px, 11.2vw, 54px);
  --signature-footer-padding-inline: clamp(28px, 8vw, 40px);
  --signature-footer-padding-bottom: clamp(20px, 5vw, 26px);
  --signature-qr-size: clamp(78px, 22vw, 102px);
  --signature-save-gap: clamp(12px, 5.5vw, 26px);
  --signature-social-size: clamp(38px, 10vw, 46px);
  --signature-footer-separator-height: min(19vw, 94px);
  --signature-stage-padding-top: clamp(36px, 12vw, 60px);
  --signature-stage-padding-inline: clamp(20px, 6.7vw, 34px);
  --signature-stage-padding-bottom: clamp(24px, 6.4vw, 32px);
  --signature-company-header-height: clamp(68px, 18.6vw, 94px);
  --signature-company-header-gap: clamp(20px, 5.6vw, 28px);
  --signature-company-logo-height: clamp(68px, 18.6vw, 94px);
  --signature-portrait-size: clamp(88px, 22vw, 108px);
  --signature-portrait-gap: clamp(16px, 4.4vw, 22px);
  --signature-contact-min-height: 48px;
  --signature-contact-padding: 6px 0;
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto;
  width: 100%;
  min-height: 100svh;
  margin: 0 auto;
  overflow: hidden;
  background: var(--signature-paper);
  color: var(--signature-ink);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  isolation: isolate;
}

.legal-signature-stage {
  position: relative;
  display: flex;
  min-height: 0;
  flex-direction: column;
  padding: var(--signature-stage-padding-top) var(--signature-stage-padding-inline) var(--signature-stage-padding-bottom);
  overflow: hidden;
  background: var(--signature-paper);
}
.legal-signature-stage::before {
  position: absolute;
  top: 0;
  right: var(--signature-stage-padding-inline);
  width: 62px;
  height: 5px;
  background: var(--signature-accent);
  content: "";
}

/* Company mark + personal portrait ----------------------------------------------------- */
.legal-signature-company-header {
  display: flex;
  width: min(100%, 380px);
  min-height: var(--signature-company-header-height);
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--signature-company-header-gap);
}
.legal-signature-company-logo {
  display: block;
  width: 100%;
  height: var(--signature-company-logo-height);
  object-fit: contain;
  object-position: center;
}
.legal-signature-company-wordmark,
.legal-signature-company-panel-wordmark {
  margin: 0;
  color: var(--signature-deep);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .13em;
  line-height: 1.25;
  text-transform: uppercase;
}
.legal-signature-portrait {
  display: grid;
  width: var(--signature-portrait-size);
  height: var(--signature-portrait-size);
  flex: 0 0 auto;
  place-items: center;
  align-self: center;
  margin: 0 auto var(--signature-portrait-gap);
  overflow: hidden;
  border: 2px solid color-mix(in srgb, var(--signature-accent) 78%, var(--signature-line));
  border-radius: 50%;
  background: var(--signature-paper);
  box-shadow: 0 10px 25px color-mix(in srgb, var(--signature-deep) 13%, transparent);
}
.legal-signature-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* With no portrait, the company mark moves into its former visual slot. */
.legal-signature-company-panel {
  display: flex;
  width: min(100%, 360px);
  min-height: 166px;
  align-items: center;
  justify-content: center;
  align-self: center;
  margin: 6px auto 24px;
  text-align: center;
}
.legal-signature-company-panel-logo {
  display: block;
  width: min(100%, 348px);
  max-height: 154px;
  object-fit: contain;
  object-position: center;
}
.legal-signature-company-panel-wordmark { max-width: 18ch; font-size: .9rem; }
.legal-signature-divider { display: none; }

/* Identity and details ------------------------------------------------------------------ */
.legal-signature-information { display: grid; min-width: 0; }
.legal-signature-bio { display: grid; justify-items: center; text-align: center; }
.legal-signature-company {
  margin: 0 0 8px;
  color: var(--signature-muted);
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .16em;
  line-height: 1.25;
  text-transform: uppercase;
}
.legal-signature-bio h1 {
  max-width: 15ch;
  margin: 0;
  color: var(--signature-ink);
  font-size: clamp(2.25rem, 11vw, 3.5rem);
  font-weight: 750;
  letter-spacing: -.055em;
  line-height: .95;
  overflow-wrap: anywhere;
}
.legal-signature-role {
  margin: 11px 0 0;
  color: var(--signature-muted);
  font-size: .94rem;
  font-weight: 650;
  line-height: 1.35;
}
.legal-signature-rule {
  display: block;
  width: 42px;
  height: 2px;
  margin-top: 17px;
  background: var(--signature-accent);
}
.legal-signature-contact {
  display: grid;
  margin-top: 25px;
  border-top: 1px solid var(--signature-line);
}
.legal-signature-contact > [data-contact-key] {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 19px;
  column-gap: 10px;
  min-height: var(--signature-contact-min-height);
  padding: var(--signature-contact-padding);
  border: 0;
  border-bottom: 1px solid var(--signature-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: inherit;
  text-decoration: none;
  transition: background .16s ease, padding .16s ease, color .16s ease;
}
.legal-signature-contact > a[href]:hover {
  padding-right: 4px;
  padding-left: 4px;
  background: color-mix(in srgb, var(--signature-accent) 6%, transparent);
  color: var(--signature-deep);
}
.legal-signature-contact > a[href]:focus-visible { outline: 2px solid var(--signature-accent); outline-offset: 2px; }
.legal-signature-contact-icon {
  display: grid !important;
  grid-column: 1 !important;
  grid-row: 1 / 3 !important;
  width: 29px;
  height: 29px;
  place-items: center;
  align-self: center;
  border-radius: 50%;
  background: var(--signature-accent);
  color: #fff;
}
.legal-signature-contact-icon svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.legal-signature-contact > a:not(.vcard-custom-field) > span:not(.legal-signature-contact-icon),
.legal-signature-contact > .vcard-custom-field > small {
  grid-column: 2;
  grid-row: 1;
  color: var(--signature-muted);
  font-size: .58rem;
  font-weight: 800;
  letter-spacing: .15em;
  line-height: 1.15;
  text-transform: uppercase;
}
.legal-signature-contact > a:not(.vcard-custom-field) > strong,
.legal-signature-contact > .vcard-custom-field > span:not(.legal-signature-contact-icon) {
  grid-column: 2;
  grid-row: 2;
  margin-top: 3px;
  font-size: .91rem;
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.legal-signature-contact-arrow,
.legal-signature-contact > .vcard-custom-field > svg {
  grid-column: 3;
  grid-row: 1 / 3;
  align-self: center;
  width: 17px;
  height: 17px;
  fill: none;
  stroke: var(--signature-accent);
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.legal-signature-contact > .vcard-custom-field { display: grid; grid-template-columns: 34px minmax(0, 1fr) 19px; column-gap: 10px; }
.legal-signature-contact > .vcard-custom-field:not(a) { cursor: default; }

/* Connection footer --------------------------------------------------------------------- */
.legal-signature-footer {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto;
  min-height: var(--signature-footer-min-height);
  gap: var(--signature-footer-gap);
  padding: var(--signature-footer-padding-top) var(--signature-footer-padding-inline) var(--signature-footer-padding-bottom);
  overflow: hidden;
  background: var(--signature-paper);
  color: #fff;
  isolation: isolate;
}
.legal-signature-footer::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  background: var(--signature-accent);
  /* Gold plane from the approved mobile artwork. */
  clip-path: polygon(0 0, 100% 30%, 100% 100%, 0 100%);
  content: "";
}
.legal-signature-footer::after {
  position: absolute;
  z-index: 0;
  inset: 0;
  background: var(--signature-footer);
  /* The deep plane begins just right of centre, as in the supplied footer. */
  clip-path: polygon(52.5% 14%, 100% 30%, 100% 100%, 52.5% 100%);
  content: "";
}
.legal-signature-footer-primary { position: relative; z-index: 1; min-width: 0; }
.legal-signature-connection {
  display: grid;
  grid-template-columns: var(--signature-qr-size) 1px minmax(0, 1fr);
  align-items: center;
  gap: var(--signature-save-gap);
}
.legal-signature-qr-slot {
  display: block;
  width: var(--signature-qr-size);
  height: var(--signature-qr-size);
  margin: 0;
}
.legal-signature-qr {
  display: grid;
  width: var(--signature-qr-size);
  height: var(--signature-qr-size);
  place-items: center;
  overflow: hidden;
  border: 5px solid #fff;
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 6px 18px #18202924;
}
.legal-signature-qr { object-fit: contain; image-rendering: pixelated; }
.legal-signature-footer-separator { width: 1px; height: var(--signature-footer-separator-height); background: #ffffffa8; }
.legal-signature-save {
  display: block;
  min-width: 0;
  color: #fff;
  text-decoration: none;
}
.legal-signature-save:focus-visible { outline: 2px solid #fff; outline-offset: 5px; }
.legal-signature-save-copy { display: grid; min-width: 0; gap: 5px; }
.legal-signature-save-copy strong { font-size: .96rem; font-weight: 800; letter-spacing: .01em; line-height: 1.15; }
.legal-signature-save-copy small { max-width: 14ch; font-size: .76rem; line-height: 1.35; opacity: .92; }
.legal-signature-social {
  position: relative;
  z-index: 1;
  display: flex;
  grid-column: 1;
  grid-row: 2;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  min-height: var(--signature-social-size);
  margin: 0;
  padding: 0;
}
.legal-signature-social:empty { display: none; }
.legal-signature-social a,
.legal-signature-share {
  position: relative;
  display: grid;
  width: var(--signature-social-size);
  height: var(--signature-social-size);
  place-items: center;
  border: 1px solid #ffffffb0;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  transition: background .16s ease, border-color .16s ease, transform .16s ease;
}
.legal-signature-social a::after {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  color: #fff;
  content: attr(aria-label);
  font-size: .58rem;
  font-weight: 650;
  line-height: 1;
  text-align: center;
  transform: translateX(-50%);
  white-space: nowrap;
}
.legal-signature-social svg { width: 18px; height: 18px; fill: currentColor; }
.legal-signature-share svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.legal-signature-share {
  z-index: 1;
  grid-column: 1;
  grid-row: 2;
  align-self: start;
  justify-self: end;
  width: 42px;
  height: 42px;
}
.legal-signature-share .sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  border: 0 !important;
  white-space: nowrap !important;
}
.legal-signature-social a:hover,
.legal-signature-social a:focus-visible,
.legal-signature-share:hover,
.legal-signature-share:focus-visible { border-color: #fff; background: #ffffff22; outline: none; transform: translateY(-2px); }
.legal-signature-share[data-copy-feedback="true"]::after {
  position: absolute;
  right: 0;
  bottom: calc(100% + 9px);
  padding: 6px 8px;
  border-radius: 5px;
  background: #fff;
  color: var(--signature-footer);
  content: "Link copied";
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .02em;
  line-height: 1;
  white-space: nowrap;
}

.legal-signature-vcard > .template-powered-by {
  display: flex !important;
  min-height: 36px !important;
  align-items: center;
  justify-content: center;
  padding: 9px 20px !important;
  border: 0 !important;
  background: var(--signature-paper) !important;
  color: var(--signature-muted) !important;
  font: 800 .61rem / 1 Inter, ui-sans-serif, system-ui, sans-serif !important;
  letter-spacing: .07em !important;
  text-align: center;
}
.legal-signature-vcard > .template-powered-by .template-powered-link { color: inherit; text-decoration: none; }
.legal-signature-vcard > .template-powered-by .template-powered-link:hover,
.legal-signature-vcard > .template-powered-by .template-powered-link:focus-visible { text-decoration: underline; text-underline-offset: 3px; }

/* Desktop is opt-in. The explicit exclusion is what makes the wide editor's
   Mobile preview use the real phone composition instead of this grid. */
@media (min-width: 760px) {
  body.public-card-classic:not([data-preview-device]):has(.legal-signature-vcard) { padding: 20px; }
  :where(body:not([data-preview-device="mobile"]), body[data-preview-device="desktop"]) .legal-signature-vcard {
    width: min(100%, 1200px);
    min-height: min(760px, calc(100svh - 40px));
    border: 1px solid color-mix(in srgb, var(--signature-line) 74%, transparent);
    border-radius: 18px;
    box-shadow: 0 28px 78px color-mix(in srgb, var(--signature-deep) 20%, transparent);
  }
  :where(body:not([data-preview-device="mobile"]), body[data-preview-device="desktop"]) .legal-signature-stage {
    --signature-stage-padding-top: 34px;
    --signature-stage-padding-inline: 66px;
    --signature-stage-padding-bottom: 30px;
    --signature-company-header-height: 118px;
    --signature-company-header-gap: 0px;
    --signature-company-logo-height: 118px;
    --signature-portrait-size: 132px;
    --signature-portrait-gap: 0px;
    --signature-contact-min-height: 57px;
    --signature-contact-padding: 9px 0;
    display: grid;
    grid-template-columns: clamp(190px, 24vw, 280px) 2px minmax(0, 570px) minmax(0, 1fr);
    grid-template-rows: 154px minmax(0, 1fr);
    column-gap: 36px;
    padding: 34px 66px 30px;
  }
  :where(body:not([data-preview-device="mobile"]), body[data-preview-device="desktop"]) .legal-signature-stage::before { right: 66px; width: 104px; height: 6px; }
  :where(body:not([data-preview-device="mobile"]), body[data-preview-device="desktop"]) .legal-signature-company-header {
    grid-column: 1 / -1;
    grid-row: 1;
    width: min(100%, 500px);
    max-width: calc(100% - 130px);
    min-height: 118px;
    align-self: start;
    justify-content: flex-start;
    margin: 0;
  }
  :where(body:not([data-preview-device="mobile"]), body[data-preview-device="desktop"]) .legal-signature-company-logo { height: 118px; object-position: left center; }
  :where(body:not([data-preview-device="mobile"]), body[data-preview-device="desktop"]) .legal-signature-portrait {
    grid-column: 1;
    grid-row: 2;
    width: 132px;
    height: 132px;
    align-self: center;
    justify-self: center;
    margin: 0;
  }
  :where(body:not([data-preview-device="mobile"]), body[data-preview-device="desktop"]) .legal-signature-divider {
    display: block;
    grid-column: 2;
    grid-row: 2;
    align-self: stretch;
    background: var(--signature-accent);
  }
  :where(body:not([data-preview-device="mobile"]), body[data-preview-device="desktop"]) .legal-signature-information { grid-column: 3; grid-row: 2; align-self: center; max-width: 570px; }
  :where(body:not([data-preview-device="mobile"]), body[data-preview-device="desktop"]) .legal-signature-bio { justify-items: start; text-align: left; }
  :where(body:not([data-preview-device="mobile"]), body[data-preview-device="desktop"]) .legal-signature-bio h1 { max-width: 16ch; font-size: clamp(2.45rem, 3.5vw, 3.55rem); }
  :where(body:not([data-preview-device="mobile"]), body[data-preview-device="desktop"]) .legal-signature-contact { margin-top: 26px; }
  :where(body:not([data-preview-device="mobile"]), body[data-preview-device="desktop"]) .legal-signature-vcard--without-profile .legal-signature-stage { grid-template-rows: minmax(0, 1fr); }
  :where(body:not([data-preview-device="mobile"]), body[data-preview-device="desktop"]) .legal-signature-vcard--without-profile .legal-signature-company-panel { grid-column: 1; grid-row: 1; width: min(100%, 320px); min-height: 190px; align-self: center; justify-self: center; margin: 0; }
  :where(body:not([data-preview-device="mobile"]), body[data-preview-device="desktop"]) .legal-signature-vcard--without-profile .legal-signature-company-panel-logo { width: min(100%, 312px); max-height: 180px; }
  :where(body:not([data-preview-device="mobile"]), body[data-preview-device="desktop"]) .legal-signature-vcard--without-profile .legal-signature-divider { grid-column: 2; grid-row: 1; }
  :where(body:not([data-preview-device="mobile"]), body[data-preview-device="desktop"]) .legal-signature-vcard--without-profile .legal-signature-information { grid-column: 3; grid-row: 1; }
  :where(body:not([data-preview-device="mobile"]), body[data-preview-device="desktop"]) .legal-signature-footer {
    --signature-footer-min-height: 154px;
    --signature-footer-gap: 32px;
    --signature-footer-padding-top: 22px;
    --signature-footer-padding-inline: 58px;
    --signature-footer-padding-bottom: 22px;
    --signature-qr-size: 94px;
    --signature-save-gap: 18px;
    --signature-social-size: 44px;
    --signature-footer-separator-height: 78px;
    grid-template-columns: minmax(350px, 46%) minmax(0, 1fr) auto;
    /* 121px content track + 22px vertical padding = the source 165px footer. */
    grid-template-rows: minmax(121px, auto);
    background: var(--signature-accent);
  }
  :where(body:not([data-preview-device="mobile"]), body[data-preview-device="desktop"]) .legal-signature-footer::before {
    background: var(--signature-footer);
    /* M660 510 H1200 V675 H570 — the desktop deep trapezoid. */
    clip-path: polygon(55% 0, 100% 0, 100% 100%, 47.5% 100%);
  }
  :where(body:not([data-preview-device="mobile"]), body[data-preview-device="desktop"]) .legal-signature-footer::after { display: none; }
  :where(body:not([data-preview-device="mobile"]), body[data-preview-device="desktop"]) .legal-signature-footer-primary { grid-column: 1; grid-row: 1; align-self: center; }
  :where(body:not([data-preview-device="mobile"]), body[data-preview-device="desktop"]) .legal-signature-connection { grid-template-columns: 94px 1px minmax(0, 1fr); gap: 18px; }
  :where(body:not([data-preview-device="mobile"]), body[data-preview-device="desktop"]) .legal-signature-qr,
  :where(body:not([data-preview-device="mobile"]), body[data-preview-device="desktop"]) .legal-signature-qr-slot { width: 94px; height: 94px; }
  :where(body:not([data-preview-device="mobile"]), body[data-preview-device="desktop"]) .legal-signature-footer-separator { height: 78px; }
  :where(body:not([data-preview-device="mobile"]), body[data-preview-device="desktop"]) .legal-signature-save-copy strong { font-size: 1.04rem; }
  :where(body:not([data-preview-device="mobile"]), body[data-preview-device="desktop"]) .legal-signature-save-copy small { font-size: .84rem; }
  :where(body:not([data-preview-device="mobile"]), body[data-preview-device="desktop"]) .legal-signature-social { grid-column: 2; grid-row: 1; align-self: center; justify-content: center; gap: clamp(18px, 3vw, 42px); min-height: 64px; padding: 0; }
  :where(body:not([data-preview-device="mobile"]), body[data-preview-device="desktop"]) .legal-signature-social a,
  :where(body:not([data-preview-device="mobile"]), body[data-preview-device="desktop"]) .legal-signature-share { width: 44px; height: 44px; }
  :where(body:not([data-preview-device="mobile"]), body[data-preview-device="desktop"]) .legal-signature-social a::after { font-size: .65rem; }
  :where(body:not([data-preview-device="mobile"]), body[data-preview-device="desktop"]) .legal-signature-share { grid-column: 3; grid-row: 1; align-self: center; justify-self: end; }
  body[data-preview-device="desktop"] .legal-signature-vcard { min-height: min(760px, calc(100svh - 150px)); }
}

/* The viewport can be wide while the preview device is Mobile. Reset every
   desktop-grid property so it remains a genuine mobile layout. */
body[data-preview-device="mobile"] .legal-signature-vcard {
  width: min(100%, 430px);
  min-height: 100svh;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
body[data-preview-device="mobile"] .legal-signature-stage { display: flex; flex-direction: column; }
body[data-preview-device="mobile"] .legal-signature-stage::before { width: 62px; height: 5px; }
body[data-preview-device="mobile"] .legal-signature-company-header { display: flex; width: min(100%, 380px); justify-content: center; }
body[data-preview-device="mobile"] .legal-signature-company-logo { object-position: center; }
body[data-preview-device="mobile"] .legal-signature-company-panel { width: min(100%, 360px); min-height: 166px; margin: 6px auto 24px; }
body[data-preview-device="mobile"] .legal-signature-company-panel-logo { width: min(100%, 348px); max-height: 154px; }
body[data-preview-device="mobile"] .legal-signature-divider { display: none; }
body[data-preview-device="mobile"] .legal-signature-information { display: grid; max-width: none; }
body[data-preview-device="mobile"] .legal-signature-bio { justify-items: center; text-align: center; }
body[data-preview-device="mobile"] .legal-signature-bio h1 { font-size: clamp(2.25rem, 11vw, 3.5rem); }
body[data-preview-device="mobile"] .legal-signature-contact { margin-top: 25px; }

/* The default composition is the supplied mobile artwork.  These dimensions
   are also the ones used by the editor's wide-screen Mobile preview. */
@media (max-width: 759px) {
  .legal-signature-qr { border-width: 6px; border-radius: 7px; }
  .legal-signature-save-copy { gap: 7px; }
  .legal-signature-save-copy strong { font-size: 1.05rem; }
  .legal-signature-save-copy small { max-width: 13ch; font-size: .84rem; line-height: 1.34; }
  .legal-signature-social {
    width: 100%;
    align-items: center;
  }
  .legal-signature-social a { flex: 0 0 auto; border-width: 1.5px; }
  .legal-signature-social a::after { display: none; }
  .legal-signature-social svg { width: 23px; height: 23px; }
  /* Sharing remains available from the desktop utility action.  Hiding this
     extra control on phone leaves a balanced four-icon connection rail. */
  .legal-signature-share { display: none; }
}

/* Short mobile viewports retain the complete card hierarchy before scrolling.
   Content remains readable, while the visual elements reduce together rather
   than letting the footer consume the available height. */
@media (max-width: 759px) and (max-height: 720px) {
  .legal-signature-vcard {
    --signature-stage-padding-top: 26px;
    --signature-stage-padding-bottom: 18px;
    --signature-company-header-height: 58px;
    --signature-company-logo-height: 58px;
    --signature-company-header-gap: 14px;
    --signature-portrait-size: 76px;
    --signature-portrait-gap: 12px;
    --signature-footer-min-height: 188px;
    --signature-footer-padding-top: 30px;
    --signature-footer-padding-bottom: 16px;
    --signature-qr-size: 72px;
    --signature-footer-separator-height: 72px;
    --signature-social-size: 36px;
  }
  .legal-signature-contact { margin-top: 18px; }
  .legal-signature-contact > [data-contact-key] { min-height: 42px; }
  .legal-signature-role { margin-top: 8px; }
  .legal-signature-rule { margin-top: 12px; }
}

@media (max-width: 390px) {
  .legal-signature-bio h1 { font-size: clamp(1.95rem, 10vw, 2.75rem); }
  .legal-signature-contact > [data-contact-key] { grid-template-columns: 31px minmax(0, 1fr) 17px; column-gap: 8px; }
  .legal-signature-contact-icon { width: 27px; height: 27px; }
  .legal-signature-contact > a:not(.vcard-custom-field) > strong,
  .legal-signature-contact > .vcard-custom-field > span:not(.legal-signature-contact-icon) { font-size: .85rem; }
}

@media (prefers-reduced-motion: no-preference) {
  .legal-signature-company-header,
  .legal-signature-company-panel,
  .legal-signature-portrait,
  .legal-signature-information,
  .legal-signature-footer { animation: legal-signature-enter .28s ease both; }
  .legal-signature-portrait,
  .legal-signature-company-panel { animation-delay: .04s; }
  .legal-signature-information { animation-delay: .08s; }
  .legal-signature-footer { animation-delay: .12s; }
  @keyframes legal-signature-enter { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
}
