/* aboutus / privacy / terms — light theme (theme-ref-ofa377) */

.content_all > .ac_wrapper.aboutus-page {
  width: min(920px, 94%);
  height: auto;
  margin: 16px auto 32px;
  padding: 0;
}

.aboutus-font {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ref-text, #363636);
  font-family: "Noto Sans TC", "微軟正黑體", sans-serif;
}

.aboutus-font strong {
  color: var(--ref-primary, #003d79);
  font-weight: 600;
}

.aboutus-container {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* ── Hero ── */
.aboutus-hero {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 24px;
  padding: 28px 24px;
  border-radius: 16px;
  background: linear-gradient(
    135deg,
    rgba(137, 196, 244, 0.14) 0%,
    rgba(255, 255, 255, 0.98) 52%,
    var(--ref-bg, #f4f7f9) 100%
  );
  border: 1px solid rgba(0, 61, 121, 0.12);
  box-shadow: 0 8px 24px rgba(0, 61, 121, 0.08);
}

.aboutus-hero-image {
  flex: none;
  width: min(520px, 92%);
  max-width: 520px;
  margin: 0 auto;
}

.aboutus-hero-image img {
  display: block;
  width: 100%;
  height: auto;
}

.aboutus-hero-text {
  flex: none;
  width: 100%;
  min-width: 0;
}

.aboutus-hero.legal-hero {
  flex-direction: row;
  align-items: flex-start;
  gap: 20px;
}

/* 橫向版（icon ＋ 文字）不能沿用直向版 .aboutus-hero-text 的
   `flex: none; width: 100%`：那等於要求佔滿父層整個內容寬度、又因為
   flex: none（= 0 0 auto）不准縮，於是整塊被 icon(52px) 與 gap(20px)
   往右推出卡片外 72px，文字就跑出格。改成填滿剩餘空間即可。
   min-width: 0 由原規則提供，是長字串在 flex 裡能換行的關鍵，別拿掉。 */
.aboutus-hero.legal-hero .aboutus-hero-text {
  flex: 1 1 auto;
  width: auto;
}

.legal-hero-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(180deg, var(--ref-secondary, #89c4f4) 0%, var(--ref-primary, #003d79) 100%);
  color: #fff;
  font-size: 1.35rem;
}

.aboutus-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--ref-primary, #003d79);
  margin-bottom: 8px;
}

.aboutus-h1,
.aboutus-font h1.aboutus-h1 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  line-height: 1.25;
  color: var(--ref-primary, #003d79);
  margin: 0 0 16px;
}

.aboutus-h2,
.aboutus-font h2.aboutus-h2 {
  font-size: clamp(1.15rem, 3vw, 1.45rem);
  line-height: 1.35;
  color: var(--ref-primary, #003d79);
  margin: 0 0 12px;
}

.aboutus-hero-text .aboutus-h2 {
  margin-top: 20px;
}

.aboutus-h3,
.aboutus-font h3.aboutus-h3 {
  font-size: 1.05rem;
  line-height: 1.4;
  color: var(--ref-primary, #003d79);
  margin: 0 0 8px;
}

.aboutus-h4,
.aboutus-font h4.aboutus-h4 {
  font-size: 0.98rem;
  line-height: 1.4;
  color: var(--ref-text, #363636);
  margin: 0 0 6px;
}

.aboutus-hero-text p,
.aboutus-section > p {
  color: var(--ref-text-muted, #666);
  margin: 0 0 14px;
}

.legal-update-date {
  font-size: 0.875rem;
  color: var(--ref-text-muted, #666);
  margin: 0;
}

/* ── Sections ── */
.aboutus-section {
  padding: 24px 20px;
  border-radius: 16px;
  background: var(--ref-surface, #ffffff);
  border: 1px solid var(--ref-border, #dddddd);
  box-shadow: 0 4px 16px rgba(0, 61, 121, 0.06);
}

.aboutus-section-head {
  margin-bottom: 20px;
}

.aboutus-feature-grid,
.aboutus-trust-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.aboutus-feature,
.aboutus-trust {
  padding: 18px 16px;
  border-radius: 12px;
  background: var(--ref-bg, #f4f7f9);
  border: 1px solid rgba(0, 61, 121, 0.08);
}

.aboutus-feature-icon,
.aboutus-trust-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  margin-bottom: 12px;
  background: linear-gradient(180deg, rgba(137, 196, 244, 0.35) 0%, rgba(0, 61, 121, 0.15) 100%);
  color: var(--ref-primary, #003d79);
  font-size: 1.1rem;
}

.aboutus-feature-icon i,
.aboutus-trust-icon i {
  margin-right: 0;
}

.aboutus-feature p,
.aboutus-trust p {
  color: var(--ref-text-muted, #666);
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.65;
}

/* ── Quote & prose ── */
.aboutus-quote {
  margin: 0 0 20px;
  padding: 16px 18px 16px 44px;
  border-left: 4px solid var(--ref-primary, #003d79);
  border-radius: 0 12px 12px 0;
  background: rgba(0, 61, 121, 0.06);
  position: relative;
}

.aboutus-quote i {
  position: absolute;
  left: 14px;
  top: 16px;
  color: var(--ref-secondary, #89c4f4);
  margin-right: 0;
}

.aboutus-quote p {
  margin: 0;
  color: var(--ref-text, #363636);
  font-weight: 500;
}

.aboutus-prose p {
  color: var(--ref-text-muted, #666);
  margin: 0 0 14px;
}

.aboutus-prose-closing {
  color: var(--ref-primary, #003d79) !important;
  font-weight: 600;
}

/* ── Legal lists ── */
.legal-list {
  margin: 0 0 16px;
  padding-left: 1.25rem;
  color: var(--ref-text-muted, #666);
}

.legal-list li {
  margin-bottom: 8px;
}

.legal-list li::marker {
  color: var(--ref-primary, #003d79);
}

.legal-emphasis {
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(0, 61, 121, 0.06);
  border-left: 3px solid var(--ref-primary, #003d79);
  color: var(--ref-text, #363636);
}

/* ── Logo slider（原圖多為白/淺色 Logo，需深色底才看得清） ── */
.aboutus-logo-slider.slider {
  width: 100%;
  margin-top: 4px;
  padding: 20px 16px 24px;
  border-radius: 16px;
  background: linear-gradient(
    135deg,
    var(--ref-primary, #003d79) 0%,
    var(--ref-third, #3a506b) 100%
  );
  border: 1px solid rgba(137, 196, 244, 0.28);
  box-shadow: 0 8px 24px rgba(0, 61, 121, 0.18);
}

.aboutus-logo-slider .slide-track {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.aboutus-logo-slider .slide {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  padding: 6px 4px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.aboutus-logo-slider .slide img {
  width: 100%;
  max-height: 48px;
  height: auto;
  object-fit: contain;
  filter: none !important;
  opacity: 0.92;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.aboutus-logo-slider .slide img:hover {
  filter: none !important;
  opacity: 1;
  transform: scale(1.04);
}

@media screen and (min-width: 768px) {
  .aboutus-logo-slider .slide-track {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
  }

  .aboutus-logo-slider .slide {
    min-height: 72px;
    padding: 8px 6px;
  }

  .aboutus-logo-slider .slide img {
    max-height: 56px;
  }
}

@media screen and (max-width: 767px) {
  .content_all > .ac_wrapper.aboutus-page {
    width: 100%;
    margin: 12px auto 24px;
    padding: 0 12px;
  }

  .aboutus-hero,
  .aboutus-section {
    padding: 18px 14px;
  }

  .aboutus-hero:not(.legal-hero) {
    gap: 16px;
  }

  .aboutus-hero-image {
    width: min(320px, 88%);
  }

  .aboutus-hero.legal-hero {
    flex-direction: column;
    gap: 14px;
  }

  /* 手機改回直向，且 .legal-hero 帶著 align-items: flex-start，
     此時 width: auto 會讓文字區縮成內容寬，所以要還原成滿版 */
  .aboutus-hero.legal-hero .aboutus-hero-text {
    width: 100%;
  }

  .aboutus-feature-grid,
  .aboutus-trust-grid {
    grid-template-columns: 1fr;
  }

  .aboutus-logo-slider.slider {
    padding: 14px 10px 16px;
  }

  /* 手機：3 欄放大 logo，減少格內留白 */
  .aboutus-logo-slider .slide-track {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .aboutus-logo-slider .slide {
    min-height: 72px;
    padding: 4px 2px;
  }

  .aboutus-logo-slider .slide img {
    max-height: 58px;
    width: 92%;
  }
}
