/**
 * Terms & Conditions — Ban Teck Han Apple shell.
 */

body.bth-apple-terms {
  --bth-terms-ink: #1d1d1f;
  --bth-terms-muted: #6e6e73;
  --bth-terms-soft: #86868b;
  --bth-terms-red: #b91c1c;
  --bth-terms-red-deep: #991b1b;
  --bth-terms-paper: #f3f1ee;
  color: var(--bth-terms-ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(1000px 460px at 10% -12%, rgba(185, 28, 28, 0.09), transparent 58%),
    radial-gradient(860px 400px at 96% 8%, rgba(29, 29, 31, 0.045), transparent 55%),
    linear-gradient(180deg, #f6f5f2 0%, #fff 42%, #f6f5f2 100%);
}

.bth-terms-main {
  position: relative;
  overflow: clip;
  background: transparent;
  color: var(--bth-terms-ink);
}

.bth-terms-main::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: min(64vh, 520px);
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 50% 0%, rgba(255, 255, 255, 0.88), transparent 72%),
    repeating-linear-gradient(
      -12deg,
      transparent 0,
      transparent 12px,
      rgba(29, 29, 31, 0.016) 12px,
      rgba(29, 29, 31, 0.016) 13px
    );
  mask-image: linear-gradient(180deg, #000 40%, transparent);
}

.bth-terms-shell {
  position: relative;
  z-index: 1;
  width: min(860px, 92vw);
  margin: 0 auto;
  padding: clamp(28px, 4.5vw, 52px) 0 clamp(72px, 9vw, 112px);
}

.bth-terms-hero {
  margin: 0 0 clamp(24px, 3.5vw, 36px);
}

.bth-terms-eyebrow {
  margin: 0 0 12px;
  color: var(--bth-terms-red);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.bth-terms-title {
  margin: 0;
  font-size: clamp(40px, 6vw, 60px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.bth-terms-lead {
  margin: 16px 0 0;
  max-width: 52ch;
  color: var(--bth-terms-muted);
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.55;
}

.bth-terms-toc {
  margin: 0 0 clamp(28px, 4vw, 40px);
  padding: 0 0 4px;
  border-bottom: 1px solid rgba(29, 29, 31, 0.08);
}

.bth-terms-toc__label {
  margin: 0 0 10px;
  color: var(--bth-terms-soft);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bth-terms-toc__list {
  list-style: none;
  margin: 0;
  padding: 0 0 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  columns: unset;
}

.bth-terms-toc__list li {
  margin: 0;
  padding: 0;
}

.bth-terms-toc__list a {
  display: inline;
  color: var(--bth-terms-muted);
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.45;
  text-decoration: none !important;
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.bth-terms-toc__list a:hover,
.bth-terms-toc__list a:focus,
.bth-terms-toc__list a:focus-visible,
.bth-terms-toc__list a:active {
  color: var(--bth-terms-red);
  border-bottom-color: rgba(185, 28, 28, 0.35);
  text-decoration: none !important;
}

.bth-terms-doc {
  margin: 0 0 clamp(28px, 4vw, 40px);
}

.bth-terms-intro {
  margin: 0 0 clamp(28px, 4vw, 36px);
  color: var(--bth-terms-ink);
  font-size: clamp(15.5px, 1.7vw, 17px);
  line-height: 1.7;
}

.bth-terms-intro p {
  margin: 0 0 1em;
}

.bth-terms-intro p:last-child {
  margin-bottom: 0;
}

.bth-terms-intro a {
  color: var(--bth-terms-red);
  font-weight: 600;
  text-decoration: none !important;
  border-bottom: 1px solid rgba(185, 28, 28, 0.35);
}

.bth-terms-intro a:hover,
.bth-terms-intro a:focus,
.bth-terms-intro a:focus-visible,
.bth-terms-intro a:active {
  color: var(--bth-terms-red-deep);
  border-bottom-color: var(--bth-terms-red-deep);
  text-decoration: none !important;
}

.bth-terms-section {
  margin: 0 0 clamp(28px, 4vw, 36px);
  padding-top: 4px;
  scroll-margin-top: 96px;
}

.bth-terms-section__title {
  margin: 0 0 14px;
  font-size: clamp(20px, 2.6vw, 24px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.25;
  color: var(--bth-terms-ink);
}

.bth-terms-section__body {
  color: var(--bth-terms-ink);
  font-size: clamp(15px, 1.6vw, 16.5px);
  line-height: 1.7;
}

.bth-terms-section__body p {
  margin: 0 0 0.9em;
}

.bth-terms-section__body p:last-child {
  margin-bottom: 0;
}

.bth-terms-section__body ol,
.bth-terms-section__body ul {
  margin: 0 0 0.9em;
  padding-left: 1.35em;
}

.bth-terms-section__body ol ol,
.bth-terms-section__body ul ul,
.bth-terms-section__body ol ul,
.bth-terms-section__body ul ol {
  margin: 0.45em 0;
}

.bth-terms-section__body li {
  margin: 0.35em 0;
  padding-left: 0.15em;
}

.bth-terms-section__body a {
  color: var(--bth-terms-red);
  font-weight: 600;
  text-decoration: none !important;
  border-bottom: 1px solid rgba(185, 28, 28, 0.35);
}

.bth-terms-section__body a:hover,
.bth-terms-section__body a:focus,
.bth-terms-section__body a:focus-visible,
.bth-terms-section__body a:active {
  color: var(--bth-terms-red-deep);
  border-bottom-color: var(--bth-terms-red-deep);
  text-decoration: none !important;
}

.bth-terms-section__body strong {
  font-weight: 600;
}

.bth-terms-cta {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 4vw, 40px) clamp(22px, 3.5vw, 36px);
  border-radius: 28px;
  background:
    radial-gradient(520px 240px at 92% 0%, rgba(185, 28, 28, 0.36), transparent 60%),
    linear-gradient(145deg, #141416 0%, #1d1d1f 50%, #2a1212 100%);
  color: #fff;
}

.bth-terms-cta__title {
  margin: 0;
  font-size: clamp(22px, 3.2vw, 30px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.bth-terms-cta__lead {
  margin: 12px 0 0;
  max-width: 46ch;
  color: rgba(255, 255, 255, 0.72);
  font-size: 16px;
  line-height: 1.55;
}

.bth-terms-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.bth-terms-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 148px;
  padding: 13px 24px;
  border-radius: 980px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none !important;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.bth-terms-btn:hover,
.bth-terms-btn:focus,
.bth-terms-btn:focus-visible,
.bth-terms-btn:active {
  text-decoration: none !important;
  transform: translateY(-1px);
}

.bth-terms-btn--primary {
  background: var(--bth-terms-red);
  color: #fff !important;
}

.bth-terms-btn--primary:hover,
.bth-terms-btn--primary:focus-visible {
  background: var(--bth-terms-red-deep);
  color: #fff !important;
}

.bth-terms-btn--ghost {
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff !important;
  background: transparent;
}

.bth-terms-btn--ghost:hover,
.bth-terms-btn--ghost:focus-visible {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff !important;
}

@media (prefers-reduced-motion: reduce) {
  .bth-terms-btn,
  .bth-terms-toc__list a {
    transition: none !important;
  }

  .bth-terms-btn:hover,
  .bth-terms-btn:focus,
  .bth-terms-btn:focus-visible,
  .bth-terms-btn:active {
    transform: none;
  }
}

@media (max-width: 560px) {
  .bth-terms-toc__list {
    gap: 4px 12px;
  }

  .bth-terms-toc__list a {
    font-size: 13px;
  }

  .bth-terms-section {
    scroll-margin-top: 80px;
  }

  .bth-terms-cta__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .bth-terms-btn {
    min-width: 0;
    width: 100%;
  }
}
