/* BeFit Privacy — Apple-inspired layout, brand tokens */

html:has([data-privacy-page]) {
  scroll-padding-top: 9.5rem;
}

.privacy-page {
  --privacy-max: 72rem;
  --privacy-pad: clamp(1.25rem, 4vw, 2.5rem);
  --privacy-ease: cubic-bezier(0.22, 1, 0.36, 1);
  background: #0b121c;
  color: #fff;
  padding-top: 5rem;
  overflow-x: clip;
}

.privacy-subnav {
  position: sticky;
  top: 5rem;
  z-index: 40;
  background: rgba(11, 18, 28, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.privacy-subnav__inner {
  max-width: var(--privacy-max);
  margin: 0 auto;
  padding: 0.75rem var(--privacy-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.privacy-subnav__brand {
  font-size: 0.8rem;
  font-weight: 700;
  color: #94a3b8;
  white-space: nowrap;
}

.privacy-subnav__links {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.15rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.privacy-subnav__links::-webkit-scrollbar {
  display: none;
}

.privacy-subnav__link {
  flex-shrink: 0;
  padding: 0.35rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: #64748b;
  text-decoration: none;
  border-radius: 999px;
  transition: color 0.25s ease, background 0.25s ease;
}

.privacy-subnav__link:hover {
  color: #cbd5e1;
}

.privacy-subnav__link.is-active {
  color: #fff;
  background: rgba(59, 130, 246, 0.15);
}

.privacy-section {
  max-width: var(--privacy-max);
  margin: 0 auto;
  padding: clamp(3.5rem, 10vh, 6rem) var(--privacy-pad);
}

.privacy-section--hero {
  position: relative;
  overflow: visible;
  padding: 0;
  padding-bottom: clamp(4rem, 12vh, 7rem);
  text-align: center;
  max-width: 100%;
}

.privacy-hero__glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 75% 55% at 50% 28%, rgba(59, 130, 246, 0.2) 0%, transparent 68%),
    radial-gradient(ellipse 40% 30% at 80% 55%, rgba(56, 189, 248, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

/* 首屏：手機為視覺焦點，完整顯示在導航下方 */
.privacy-hero__phone-panel {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: min(calc(88dvh - 8.75rem), 620px);
  padding: clamp(1rem, 3vh, 1.75rem) var(--privacy-pad) clamp(1.25rem, 3vh, 2rem);
}

.privacy-hero__device {
  flex-shrink: 0;
  width: min(260px, 82vw);
  max-height: min(calc(88dvh - 11rem), 560px);
  margin: 0 auto;
  border-radius: 2.25rem;
  border: 2px solid #334155;
  box-shadow:
    0 40px 80px -24px rgba(0, 0, 0, 0.75),
    0 0 56px rgba(59, 130, 246, 0.15);
  overflow: hidden;
  aspect-ratio: 390 / 844;
  background: #0b121c;
}

.privacy-hero__device img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

@media (min-width: 640px) {
  .privacy-hero__device {
    width: min(290px, 36vw);
    max-height: min(calc(88dvh - 11rem), 600px);
  }
}

@media (min-width: 1024px) {
  .privacy-hero__phone-panel {
    min-height: min(calc(88dvh - 8.75rem), 680px);
  }

  .privacy-hero__device {
    width: min(320px, 26vw);
    max-height: min(calc(88dvh - 11rem), 640px);
  }
}

/* 碌落：點 → 鎖 → 標題 → 條目 → 說明，逐項彈出 */
.privacy-hero__story {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 28rem;
  margin: 0 auto;
  padding: clamp(2.5rem, 8vh, 4rem) var(--privacy-pad) 0;
}

.privacy-hero__dots {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 0 auto 1.25rem;
  min-height: 0.75rem;
}

.privacy-hero__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #64748b;
}

.privacy-hero__dot:nth-child(3) {
  background: #38bdf8;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
}

.privacy-hero__lock {
  width: 3.25rem;
  height: 3.25rem;
  margin: 0 auto 1.75rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  color: #34d399;
  background: linear-gradient(145deg, rgba(52, 211, 153, 0.18), rgba(59, 130, 246, 0.12));
  border: 1px solid rgba(52, 211, 153, 0.35);
  box-shadow: 0 0 32px rgba(52, 211, 153, 0.2);
}

.privacy-hero__story .reveal-up,
.privacy-hero__story .reveal-pop {
  transition-duration: 0.75s;
  transition-timing-function: var(--privacy-ease);
}

.privacy-hero__title {
  margin: 0 0 1.25rem;
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: #fff;
}

.privacy-hero__points {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  text-align: left;
  max-width: 22rem;
  margin-left: auto;
  margin-right: auto;
}

.privacy-hero__points li {
  position: relative;
  padding-left: 1.35rem;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.45;
  color: #cbd5e1;
}

.privacy-hero__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: #3b82f6;
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.45);
}

.privacy-hero__lead {
  margin: 0 auto;
  max-width: 26rem;
  font-size: 0.9rem;
  line-height: 1.65;
  color: #94a3b8;
  text-align: center;
}

.privacy-statement {
  text-align: center;
  max-width: 42rem;
  margin: 0 auto;
}

.privacy-statement__icon {
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 1.5rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(52, 211, 153, 0.15));
  border: 1px solid rgba(59, 130, 246, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #38bdf8;
}

.privacy-statement__body {
  margin: 0;
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  font-weight: 600;
  line-height: 1.55;
  color: #e2e8f0;
}

.privacy-headline {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 4.5vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.privacy-headline--gradient {
  background: linear-gradient(90deg, #3b82f6 0%, #38bdf8 35%, #34d399 70%, #fbbf24 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.privacy-lead {
  margin: 0 0 2rem;
  max-width: 40rem;
  font-size: 1rem;
  line-height: 1.65;
  color: #94a3b8;
}

.privacy-lead--left {
  text-align: left;
}

.privacy-compare-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: linear-gradient(180deg, #151d2a 0%, #111827 100%);
  box-shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.6);
}

.privacy-compare {
  width: 100%;
  min-width: 32rem;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.privacy-compare thead th {
  padding: 1rem 1.1rem;
  text-align: left;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
  background: #1a2433;
}

.privacy-compare__th-befit {
  color: #93c5fd !important;
}

.privacy-compare tbody tr {
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

.privacy-compare tbody tr:hover {
  background: rgba(59, 130, 246, 0.05);
}

.privacy-compare__feature {
  padding: 1rem 1.1rem;
  font-weight: 600;
  color: #f1f5f9;
  vertical-align: top;
}

.privacy-compare__cell {
  padding: 1rem 1.1rem;
  vertical-align: top;
}

.privacy-compare__cell--yes {
  color: #e2e8f0;
  font-weight: 600;
  background: rgba(59, 130, 246, 0.06);
}

.privacy-compare__cell--yes::before {
  content: "✓ ";
  color: #34d399;
  font-weight: 800;
}

.privacy-compare__cell--no {
  color: #64748b;
}

.privacy-compare__cell--no::before {
  content: "— ";
  color: #475569;
  font-weight: 700;
}

.privacy-cards__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.privacy-cards__nav {
  display: flex;
  gap: 0.5rem;
}

.privacy-cards__btn {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(30, 41, 59, 0.8);
  color: #e2e8f0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.privacy-cards__btn:hover {
  background: rgba(59, 130, 246, 0.2);
  border-color: rgba(59, 130, 246, 0.35);
}

.privacy-cards__track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.5rem;
  scrollbar-width: none;
}

.privacy-cards__track::-webkit-scrollbar {
  display: none;
}

.privacy-card {
  flex: 0 0 min(300px, 82vw);
  scroll-snap-align: start;
  padding: 1.5rem;
  border-radius: 1.25rem;
  background: #1e293b;
  border: 1px solid rgba(148, 163, 184, 0.12);
  min-height: 220px;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s var(--privacy-ease), border-color 0.35s ease;
}

.privacy-card:hover {
  transform: translateY(-4px);
  border-color: rgba(59, 130, 246, 0.25);
}

.privacy-card__icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.privacy-card__icon--emerald {
  background: rgba(52, 211, 153, 0.15);
  color: #34d399;
}

.privacy-card__icon--cyan {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
}

.privacy-card__icon--blue {
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
}

.privacy-card__title {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
}

.privacy-card__title em {
  font-style: normal;
  color: #38bdf8;
}

.privacy-card__desc {
  margin: 0;
  flex: 1;
  font-size: 0.88rem;
  line-height: 1.55;
  color: #94a3b8;
}

.privacy-duo {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .privacy-duo {
    grid-template-columns: 1fr 1fr;
  }
}

.privacy-duo__card {
  padding: 1.75rem;
  border-radius: 1.25rem;
  background: #1a2332;
  border: 1px solid rgba(148, 163, 184, 0.1);
  position: relative;
  overflow: hidden;
}

.privacy-duo__card::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, transparent 65%);
  pointer-events: none;
}

.privacy-duo__visual {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.privacy-duo__visual img {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 1rem;
  box-shadow: 0 0 40px rgba(59, 130, 246, 0.35);
}

.privacy-duo__text {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.4;
  color: #f1f5f9;
}

.privacy-duo__text em {
  font-style: normal;
  color: #94a3b8;
}

.privacy-policy-block {
  max-width: 48rem;
  margin: 0 auto;
}

.privacy-policy-block__meta {
  text-align: center;
  margin-bottom: 2rem;
}

.privacy-policy-block__meta img {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  margin: 0 auto 1rem;
}

.privacy-policy-block .policy-content {
  /* inherits from inline + global policy styles */
}

@media (prefers-reduced-motion: reduce) {
  .privacy-card {
    transition: none;
  }
}
