/* Local tokens — kept independent of home.css so header/footer work as a
   standalone module on any page, not just the ones that load home.css. */
:root {
  --ares-blue: #5a8eac;
  --ares-ink: #12203a;
  --ares-muted: #5b6675;
  --ares-surface: #f5f7fb;
  --ares-line: #e3e7ee;
}

/* ================= Layout ================= */
/* main.min.css fixes ".container" at width:1170px from 1200px up and never
   widens it further. Give very large screens more breathing room. */
@media (min-width: 1600px) {
  .container {
    width: 1400px;
    max-width: 1400px;
  }
}

/* ================= Header ================= */
.header-utility {
  background: #12203a;
  padding: 0.4rem 0;
  font-size: 0.78rem;
}

.header-utility-phone {
  color: #cdd8ea;
  text-decoration: none;
  gap: 0.35rem;
  transition: color 0.15s ease;
}

.header-utility-phone svg {
  fill: #cdd8ea;
}

.header-utility-phone:hover {
  color: #fff;
}

.header-utility .english {
  color: #cdd8ea;
  text-decoration: none;
  transition: color 0.15s ease;
}

.header-utility .english:hover {
  color: #fff;
}

.navbar-brand img {
  margin-top: 10px;
}

.header-main {
  position: sticky;
  top: 0;
  z-index: 1032;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid #e3e7ee;
  box-shadow: 0 6px 24px -18px rgba(18, 32, 58, 0.5);
}

#header .nav-main-target {
  font-weight: 600;
  color: #12203a;
  letter-spacing: 0.01em;
  border-bottom: 2px solid transparent;
  padding: calc(1.75rem - 1px) 1rem;
  transition:
    color 0.25s ease,
    border-color 0.25s ease;
}

#header .act > .nav-main-target,
#header .nav-main-target:hover {
  color: #2858aa;
  border-color: #2858aa;
}

/* Home hero: header floats transparent over the banner until scrolled past it.
   #header is used (not just .header-main) to out-specificity the base
   "#header, .slider { position: relative }" reset in main.min.css. */
body.is-home #header.header-main {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: transparent;
  border-bottom-color: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition:
    background-color 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    backdrop-filter 0.25s ease;
}

body.is-home #header.header-main.is-scrolled {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom-color: #e3e7ee;
  box-shadow: 0 6px 24px -18px rgba(18, 32, 58, 0.5);
}

body.is-home .navbar-brand svg,
body.is-home .navbar-brand img {
  transition: filter 0.25s ease;
}

body.is-home .header-main.is-scrolled .navbar-brand svg,
body.is-home .header-main.is-scrolled .navbar-brand img {
  filter: none;
}

body.is-home #header .nav-main-target {
  color: var(--home-ink);
}

body.is-home #header:not(.is-scrolled) .act > .nav-main-target,
body.is-home #header:not(.is-scrolled) .nav-main-target:hover {
  color: #2858aa;
  border-bottom-color: transparent;
}

body.is-home #header.is-scrolled .nav-main-target {
  color: #12203a;
}

body.is-home #header.is-scrolled .act > .nav-main-target,
body.is-home #header.is-scrolled .nav-main-target:hover {
  color: #2858aa;
}

#header .nav-cta {
  background: #5a8eac;
  color: #fff !important;
  border-radius: 2rem;
  padding: 0.55rem 1.35rem !important;
  margin: 1.1rem 0;
  border-bottom: none !important;
  transition:
    background-color 0.18s ease,
    transform 0.18s ease;
}

#header .nav-cta:hover {
  background: #2150a0;
  transform: translateY(-1px);
}

#header .under-nav-table {
  border-radius: 1rem;
  box-shadow: 0 24px 48px -20px rgba(18, 32, 58, 0.35);
  overflow: hidden;
  border: 1px solid #eef1f6;
}

/* Dropdowns stay in the render tree (display forced on, overriding the
   jQuery show()/hide() inline styles from main.min.js) so opacity/transform
   can transition instead of snapping open. Visibility/pointer-events keep
   them invisible and non-interactive while "closed". */
#header .under-nav.nav-mega,
#header .under-nav.nav-mini {
  display: block !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-10px);
  transition:
    opacity 0.3s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1),
    visibility 0s linear 0.3s;
}

#header li:hover > .under-nav.nav-mega,
#header li:hover > .under-nav.nav-mini {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  transform: translateY(0);
  transition:
    opacity 0.3s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
}

#header .under-nav.nav-mega .under-nav-table,
#header .under-nav.nav-mini .under-nav-table {
  pointer-events: none;
}

#header li:hover > .under-nav.nav-mega .under-nav-table,
#header li:hover > .under-nav.nav-mini .under-nav-table {
  pointer-events: all;
}

/* Safety net for nav-mega.js: browsers don't always fire a final
   mouseleave on the <li>/.under-nav when the cursor exits the window
   fast (or the tab loses focus) mid-hover, so :hover can stay "on" and
   leave the dropdown visually stuck open. nav-mega.js adds this class
   whenever the pointer leaves the document/window, forcing it shut. */
body.nav-mega-force-close #header .under-nav.nav-mega,
body.nav-mega-force-close #header .under-nav.nav-mini {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: none !important;
}

/* ---- 產品與服務 mega menu ---- */
#header .nav-mega-panel {
  display: grid;
  grid-template-columns: 0.85fr 1.3fr 1.1fr 0.8fr;
  gap: 0 2rem;
  max-width: 1080px;
  margin: 0 auto;
  padding: 2rem 2rem 1.75rem;
}

#header .nav-mega-col + .nav-mega-col {
  border-left: 1px solid var(--ares-line);
  padding-left: 2rem;
}

#header .nav-mega-head {
  position: relative;
  display: block;
  padding-bottom: 0.85rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ares-ink);
}

/* Underline is always on (no hover needed) and deepens in color left-to-right. */
#header .nav-mega-head::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, var(--ares-blue), #a9c3e8 );
}

#header .nav-mega-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

#header .nav-mega-list a {
  display: block;
  padding: 0.4rem 0;
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--ares-muted);
  white-space: normal;
  transition:
    color 0.15s ease,
    padding-left 0.15s ease;
}

#header .nav-mega-list a:hover {
  color: var(--ares-blue);
}

/* ---- 電子報 mini menu ---- */
#header .nav-mini {
  width: auto;
  right: -10rem;
}

#header .nav-mini-panel {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  width: 19rem;
  padding: 1.5rem;
}

#header .nav-mini-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  flex: none;
  border-radius: 50%;
  background: var(--ares-surface);
}

#header .nav-mini-body {
  flex: 1;
  min-width: 0;
}

#header .nav-mini-body .nav-mega-list a {
  padding: 0.3rem 0;
}

/* ---- Search ---- */
/* #search-area is forced on for the same reason as the nav dropdowns above:
   header-search_.js toggles the .is-open class, main.min.js's inline
   display:none/block from the old click handler is overridden and ignored. */
#search-area {
  display: block !important;
  position: absolute;
  top: 100%;
  right: 0;
  height: auto;
  width: 22rem;
  max-width: calc(100vw - 2rem);
  min-width: 0;
  margin-top: 0.85rem;
  padding: 1.25rem;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 24px 48px -20px rgba(18, 32, 58, 0.35);
  border: 1px solid #eef1f6;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-10px);
  transition:
    opacity 0.3s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1),
    visibility 0s linear 0.3s;
}

#search-area.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  transform: translateY(0);
  transition:
    opacity 0.3s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
}

#searchbox {
  border-radius: 0.75rem;
  background: #718bbe;
  padding: 0 0.35rem 0 1rem;
  gap: 0.5rem;
  border: 1px solid #718bbe;
}

#searchbox input[name="q"] {
  border-bottom: none;
  background: transparent;
  color: var(--ares-ink);
  font-size: 0.9rem;
}

#searchbox input[name="q"]::placeholder {
  color: var(--ares-muted);
  font-size: 0.85rem;
}

#searchbox .formbutton {
  width: 2.25rem;
  height: 2rem;
  margin: 0.25rem;
  border-radius: 50%;
  background-color: var(--ares-blue);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 1rem;
  transition: background-color 0.18s ease;
}

#searchbox .formbutton:hover {
  background-color: #1c3f7d;
}

/* ---- Mobile nav drawer ---- */
/* Search lives only inside the drawer below 1024px; the standalone icon
   dropdown is desktop-only (merged into the drawer on mobile). */
@media (max-width: 1023.98px) {
  #search-toggle {
    display: none;
  }
}

.navbar-toggle:before,
.navbar-toggle:after,
.navbar-toggle span {
  background-color: var(--ares-ink);
}

body.is-home .header-main:not(.is-scrolled) .navbar-toggle:before,
body.is-home .header-main:not(.is-scrolled) .navbar-toggle:after,
body.is-home .header-main:not(.is-scrolled) .navbar-toggle span {
  background-color: #fff;
}

/* Backdrop stays in the render tree (same reasoning as the dropdowns above)
   so opacity/transform can transition instead of the old fadeToggle snap;
   mobile-nav_.js drives the .is-open class, main.min.js's inline
   display:none/block is overridden and ignored. */
#navbar-toggle-menu {
  display: block !important;
  position: fixed;
  inset: 0;
  /* main.min.css's #navbar-toggle-menu also sets width:100vw/height:100vh;
     on mobile Safari "vw" can be a few px wider than the real, visible
     viewport (it's sized for the browser chrome collapsed), so this fixed,
     always-in-the-DOM overlay would push the page into horizontal scroll
     even while closed. Overriding back to 100% (resolved against the same
     inset(0,0,0,0) box) avoids that. */
  width: 100%;
  height: 100%;
  /* The real culprit: .mobile-drawer sits inside this box at right:0 and
     slides fully off-screen with translateX(100%) while "closed". A
     transform doesn't clip anything, so that off-screen copy of the whole
     drawer (nav list, search form, etc.) still extends past the right edge
     and inflates the page's scrollable width, causing a horizontal
     scrollbar even though nothing is visibly wrong. Clipping it here is
     harmless since the drawer content is only ever meant to be seen once
     translateX resets to 0 (.is-open), which is still inside this box. */
  overflow: hidden;
  z-index: 1600;
  background: rgba(18, 32, 58, 0.55);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.3s ease,
    visibility 0s linear 0.3s;
}

#navbar-toggle-menu.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  transition: opacity 0.3s ease;
}

.mobile-drawer {
  position: absolute;
  top: 0;
  right: 0;
  width: min(22rem, 88vw);
  height: 100%;
  height: 100dvh;
  overflow-y: auto;
  background: #fff;
  box-shadow: -24px 0 48px -20px rgba(18, 32, 58, 0.35);
  padding: 1.25rem 1.5rem 2rem;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
}

#navbar-toggle-menu.is-open .mobile-drawer {
  transform: translateX(0);
}

.mobile-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--ares-line);
}

.mobile-drawer-brand svg {
  display: block;
  width: 7rem;
  height: auto;
}

.mobile-drawer-head .navbar-toggle {
  flex: none;
}

.mobile-search {
  margin-bottom: 1.25rem;
}

.mobile-search .d-flex {
  border-radius: 0.75rem;
  background: var(--ares-surface);
  border: 1px solid var(--ares-line);
  padding: 0 0.35rem 0 1rem;
  align-items: center;
  gap: 0.5rem;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.mobile-search .d-flex:focus-within {
  border-color: var(--ares-blue);
  box-shadow: 0 0 0 3px rgba(40, 88, 170, 0.15);
}

.mobile-search input[name="q"] {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  height: 2.75rem;
  color: var(--ares-ink);
  font-size: 0.9rem;
}

.mobile-search input[name="q"]::placeholder {
  color: var(--ares-muted);
}

/* The focus ring is handled by the wrapper's :focus-within above instead of
   the browser's default (often a heavy black box on mobile Chrome). */
.mobile-search input[name="q"]:focus-visible,
.mobile-search-submit:focus-visible {
  outline: none;
}

.mobile-search-submit {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  margin: 0.25rem 0;
  border: none;
  border-radius: 50%;
  background: var(--ares-blue);
  color: #fff;
  transition: background-color 0.18s ease;
}

.mobile-search-submit:hover {
  background: #1c3f7d;
}

.mobile-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-nav-list > li {
  border-bottom: 1px solid var(--ares-line);
}

.mobile-nav-list > li > a,
.mobile-nav-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0.1rem;
  font-weight: 600;
  font-size: 1rem;
  color: var(--ares-ink);
  cursor: pointer;
  transition: color 0.15s ease;
}

.mobile-nav-list > li > a:hover,
.mobile-nav-list summary:hover {
  color: var(--ares-blue);
}

.mobile-nav-list summary {
  list-style: none;
}

.mobile-nav-list summary a {
  color: inherit;
  text-decoration: none;
}

.mobile-nav-list summary::-webkit-details-marker {
  display: none;
}

.mobile-nav-list summary::after {
  content: "";
  flex: none;
  width: 0.6rem;
  height: 0.6rem;
  margin-left: 0.5rem;
  border-right: 2px solid var(--ares-muted);
  border-bottom: 2px solid var(--ares-muted);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.mobile-nav-list details[open] summary::after {
  transform: rotate(-135deg);
}

.mobile-nav-sublist {
  list-style: none;
  margin: 0 0 0.75rem;
  padding: 0;
}

.mobile-nav-sublist a {
  display: block;
  padding: 0.55rem 0.1rem 0.55rem 1rem;
  font-size: 0.9rem;
  color: var(--ares-muted);
  transition: color 0.15s ease;
}

.mobile-nav-sublist a:hover {
  color: var(--ares-blue);
}

.mobile-nav-list .english {
  color: var(--ares-blue);
}

.mobile-nav-cta {
  display: block;
  margin-top: 1.5rem;
  padding: 0.85rem 1rem;
  border-radius: 2rem;
  background: var(--ares-blue);
  color: #fff !important;
  font-weight: 700;
  text-align: center;
  transition: background-color 0.18s ease;
}

.mobile-nav-cta:hover {
  background: #1c3f7d;
  color: #fff;
}

@media (min-width: 1024px) {
  #navbar-toggle-menu {
    display: none !important;
  }
}

/* ================= Footer ================= */
/* Self-contained band: no negative-margin overlap into whatever section
   precedes it, since this partial is included on every page and can't
   assume what sits above it. */
.footer-contact {
  background: var(--ares-surface);
  padding: 4rem 0;
}

.contact-card-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
  background: #fff;
  border-radius: 1.5rem;
  box-shadow: 0 20px 40px -26px rgba(18, 32, 58, 0.3);
  padding: 2.5rem 2.75rem;
}

.contact-card-main {
  flex: 1 1 260px;
}

.contact-card-main .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ares-blue);
  text-transform: uppercase;
}

.contact-card-main h2 {
  color: var(--ares-ink);
  font-size: clamp(1.4rem, 2vw, 1.75rem);
  font-weight: 700;
  margin: 0.5rem 0 0.75rem;
}

.contact-card-main p {
  color: var(--ares-muted);
  max-width: 26rem;
  margin: 0 0 1.35rem;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.6rem;
  border-radius: 2rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.hero-btn-primary {
  background: var(--ares-blue);
  color: #fff;
  box-shadow: 0 10px 24px -10px rgba(40, 88, 170, .55);
}

.hero-btn-primary:hover {
  background: #2150a0;
  color: #fff;
  transform: translateY(-2px);
}

.contact-card-list {
  flex: 1 1 320px;
  display: grid;
  gap: 0.75rem;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.85rem 1rem;
  border-radius: 0.85rem;
  background: var(--ares-surface);
  text-decoration: none;
  color: var(--ares-ink);
  transition:
    background-color 0.18s ease,
    transform 0.18s ease;
}

.contact-row:hover {
  background: #eef2fa;
  transform: translateX(4px);
}

.contact-row-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  flex: none;
  border-radius: 50%;
  background: #fff;
}

.contact-row-text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.contact-row-text strong {
  font-size: 0.95rem;
  color: var(--ares-ink);
}

.contact-row-text small {
  color: var(--ares-muted);
}

@media (max-width: 767.98px) {
  .footer-contact {
    padding: 2.5rem 0;
  }

  .contact-card-panel {
    padding: 1.75rem;
  }
}

.footer-main {
  position: relative;
  padding-top: 4.5rem;
  background: #2150a0 !important;
  color: #b9c2d4;
}

.footer-main::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--ares-blue), #4fc1be);
}

.footer-row {
  /* Bootstrap's .row goes negative-margin: -(gutter/2) on each side, offset
     by matching padding on its .col-*. On mobile the .container's own
     padding (0.75rem/12px) is smaller than half of 4rem (32px), so the row
     bled 20px past the container/viewport edge and forced a horizontal
     scrollbar. Only widen the gutter once the container has room for it. */
  --bs-gutter-x: 1.5rem;
}

@media (min-width: 768px) {
  .footer-row {
    --bs-gutter-x: 4rem;
  }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 2rem;
}

.footer-logo-link {
  display: inline-block;
}

.footer-logo-link svg {
  display: block;
  width: 140px;
  max-width: 100%;
  height: auto;
  filter: brightness(0) invert(1);
}

.footer-social-vertical {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .footer-brand {
    margin-bottom: 0;
  }

  .footer-links-row {
    --bs-gutter-x: 4rem;
    justify-content: center;
    gap: 2rem;
    padding-top: 1rem;
  }
}

.footer-main .footer-title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  border-bottom: none;
  padding-bottom: 1rem;
}

.footer-main .footer-title a {
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}

.footer-main ul {
  padding-top: 0 !important;
}

.footer-main ul li a {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0;
  color: #b9c2d4;
  transition:
    color 0.15s ease,
    padding-left 0.15s ease;
}

.footer-main ul li a:hover {
  opacity: 1 !important;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  /* background: rgba(255, 255, 255, .08); */
  /* transition: background-color .18s ease, transform .18s ease; */
}

.footer-social a:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

.footer-social svg,
.footer-social img {
  filter: brightness(0) invert(78%);
  transition: filter 0.18s ease;
}

.footer-social a:hover svg,
.footer-social a:hover img {
  filter: brightness(0) invert(100%);
}

.footer-social-line-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex: none;
  border-radius: 50%;
  border: 1.5px solid #c7c7c7;
  background-color: #c7c7c7;
  color: #2858aa;
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition:
    color 0.18s ease,
    border-color 0.18s ease;
}

.footer-social a:hover .footer-social-line-badge {
  color: #fff;
  border-color: #fff;
}

.footer-social-vertical a {
  width: auto;
  height: auto;
  justify-content: flex-start;
  border-radius: 0;
  padding: 0 0 0 1rem;
  gap: 0.75rem;
  background: transparent;
}

.footer-social-vertical a:hover {
  background: transparent;
  transform: none;
}

.footer-social-label {
  color: #c7c7c7;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.footer-social a:hover .footer-social-label {
  color: #fff;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  color: #b9c2d4;
  font-size: 13px;
}

.footer-legal a {
  color: #b9c2d4;
}

.footer-legal a:hover {
  color: #fff;
}

.footer-legal-sep {
  display: inline-block;
  width: 1px;
  height: 12px;
  background: #b9c2d4;
}

/* ---- Scroll to top ---- */
/* Deliberately its own class rather than the legacy ".back-to-top" so it
   doesn't pick up main.min.js's old scroll-linked fadeIn/fadeOut and
   footer-proximity ".abs" toggling (dead code in this layout anyway, since
   no ".back-to-top.abs" rule is loaded here). back-to-top_.js drives the
   .is-visible class instead, fixed to the viewport at all times. */
.scroll-top {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background: #fff;
  color: var(--ares-blue);
  border: 1px solid var(--ares-line);
  box-shadow: 0 14px 28px -12px rgba(18, 32, 58, 0.35);
  z-index: 900;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(14px) scale(0.85);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    visibility 0s linear 0.25s,
    box-shadow 0.18s ease,
    background-color 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease;
}

.scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  transform: translateY(0) scale(1);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.18s ease,
    background-color 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease;
}

.scroll-top svg {
  display: block;
}

.scroll-top:hover {
  background: var(--ares-blue);
  color: #fff;
  border-color: var(--ares-blue);
  box-shadow: 0 18px 32px -12px rgba(18, 32, 58, 0.45);
  transform: translateY(-3px) scale(1);
}

.scroll-top:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 4px rgba(40, 88, 170, 0.3),
    0 14px 28px -12px rgba(18, 32, 58, 0.5);
}

@media (max-width: 767.98px) {
  .scroll-top {
    width: 2.75rem;
    height: 2.75rem;
    bottom: 1rem;
    right: 1rem;
  }
}

@media (max-width: 767.98px) {
  .header-utility-phone span {
    display: none;
  }
}
