/* ═══════════════════════════════════════════════════════════════
   privacy.css  —  Jertam Privacy Policy page
   Depends on: tokens.css, jertam.css (loaded first by _LegalLayout)
   WCAG 2.2: focus rings from tokens.css; colour contrast ≥ 4.5:1 on all text
   ═══════════════════════════════════════════════════════════════ */

/* ── Hero ───────────────────────────────────────────────────── */
.jt-privacy-hero {
  background: var(--jt-grad-splash);
  position: relative;
  overflow: hidden;
  padding-bottom: 60px;
}

/* Wave at bottom blends hero → page background */
.jt-privacy-hero__wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 100px;
  z-index: 1;
  pointer-events: none;
}
.jt-privacy-hero__wave path { fill: var(--jt-paper); }

/* Decorative blobs */
.jt-privacy-hero__blob {
  position: absolute;
  border-radius: 50%;
  z-index: 2;
  pointer-events: none;
}
.jt-privacy-hero__blob--orange {
  top: 60px;
  right: -40px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle at 35% 35%, #FFB36B, #F58220);
  box-shadow: 0 30px 80px rgba(245, 130, 32, 0.30);
}
.jt-privacy-hero__blob--sky {
  top: 260px;
  left: 40px;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle at 35% 35%, #A8DCEC, #2A99C9);
  opacity: 0.7;
}
.jt-privacy-hero__blob--white {
  top: 160px;
  right: 260px;
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.5);
}

/* Hero content layer sits above blobs */
.jt-privacy-hero__inner {
  position: relative;
  z-index: 3;
}

/* Breadcrumb on gradient bg */
.jt-privacy-hero .breadcrumb-item a {
  color: var(--jt-ink-2);
  text-decoration: none;
}
.jt-privacy-hero .breadcrumb-item a:hover { color: var(--jt-ink); text-decoration: underline; }
.jt-privacy-hero .breadcrumb-item.active,
.jt-privacy-hero .breadcrumb-item + .breadcrumb-item::before { color: var(--jt-ink-2); }

/* PDPA badge */
.jt-pdpa-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.75);
  padding: 8px 16px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--jt-green-700);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  margin-bottom: 24px;
}
.jt-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.jt-dot--orange { background: var(--jt-orange-500); }

/* H1 */
.jt-privacy-hero__title {
  font-family: var(--jt-font-display);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.95;
  color: var(--jt-ink);
  max-width: 900px;
  margin-bottom: 24px;
}
.jt-privacy-hero__title .jt-orange { color: var(--jt-orange-500); }

/* Intro paragraph */
.jt-privacy-hero__intro {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--jt-ink-2);
  max-width: 640px;
  margin-bottom: 32px;
}

/* Meta pills row */
.jt-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.75);
  padding: 10px 18px;
  border-radius: 16px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.jt-meta-pill__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.jt-meta-pill__label {
  font-family: var(--jt-font-mono);
  font-size: 10px;
  color: var(--jt-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  line-height: 1;
  margin-bottom: 2px;
}
.jt-meta-pill__value {
  font-size: 14px;
  font-weight: 700;
  color: var(--jt-ink);
  line-height: 1;
}

/* ── TOC sidebar ────────────────────────────────────────────── */
.jt-toc {
  position: sticky;
  /* 64 px nav + 24 px breathing room */
  top: 88px;
  background: white;
  border-radius: 20px;
  padding: 24px;
  border: 1px solid var(--jt-line);
}
.jt-toc__kicker {
  font-family: var(--jt-font-mono);
  font-size: 11px;
  color: var(--jt-orange-600);
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.jt-toc__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.jt-toc__link {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--jt-ink-2);
  font-weight: 500;
  font-size: 13px;
  line-height: 1.4;
  transition: background .12s, color .12s;
}
.jt-toc__link:hover {
  background: var(--jt-cream);
  color: var(--jt-ink);
}
.jt-toc__link:focus-visible {
  outline: 2px solid var(--jt-orange-500);
  outline-offset: 2px;
}
.jt-toc__link.is-active {
  background: var(--jt-orange-50);
  color: var(--jt-orange-700);
  font-weight: 600;
}
.jt-toc__num {
  font-family: var(--jt-font-mono);
  font-size: 10px;
  color: var(--jt-muted);
  padding-top: 2px;
  min-width: 18px;
  flex-shrink: 0;
}
.jt-toc__link.is-active .jt-toc__num { color: var(--jt-orange-500); }
.jt-toc__divider {
  margin: 16px 0;
  border-top: 1px dashed var(--jt-line);
}
.jt-toc__cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--jt-orange-600);
  font-weight: 600;
  text-decoration: none;
}
.jt-toc__cta:hover { color: var(--jt-orange-700); text-decoration: underline; }
.jt-toc__cta:focus-visible { outline: 2px solid var(--jt-orange-500); outline-offset: 2px; border-radius: 4px; }

/* ── Article body ───────────────────────────────────────────── */
.jt-privacy-article {
  display: flex;
  flex-direction: column;
  gap: 56px;
}

/* Each section scrolls clear of the sticky nav (WCAG 2.4.3) */
.jt-privacy-section { scroll-margin-top: 88px; }

.jt-privacy-section__header {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--jt-line);
}
.jt-privacy-section__num {
  font-family: var(--jt-font-mono);
  font-size: 12px;
  color: var(--jt-orange-600);
  letter-spacing: 0.6px;
  flex-shrink: 0;
}
.jt-privacy-section__title {
  font-family: var(--jt-font-display);
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--jt-ink);
  margin: 0;
}

.jt-privacy-section__body {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.jt-privacy-section__body p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--jt-ink-2);
  margin: 0;
}
.jt-privacy-section__body code {
  font-family: var(--jt-font-mono);
  font-size: 0.85em;
  background: var(--jt-cream);
  padding: 2px 8px;
  border-radius: 6px;
}

/* Bulleted lists */
.jt-privacy-section__body ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.jt-privacy-section__body ul li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 0.95rem;
  color: var(--jt-ink-2);
  line-height: 1.65;
}
.jt-privacy-section__body ul li::before {
  content: '';
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--jt-orange-500);
  margin-top: 10px;
}

/* ── Callouts ───────────────────────────────────────────────── */
.jt-callout {
  border-radius: 16px;
  padding: 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.jt-callout--info {
  background: var(--jt-green-50);
  border: 1.5px solid var(--jt-green-300);
}
.jt-callout--warn {
  background: var(--jt-orange-50);
  border: 1.5px solid var(--jt-orange-300);
}
.jt-callout__icon {
  font-size: 20px;
  line-height: 1;
  flex-shrink: 0;
}
.jt-callout__title {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 4px;
}
.jt-callout--info .jt-callout__title { color: var(--jt-green-700); }
.jt-callout--warn .jt-callout__title { color: var(--jt-orange-700); }
.jt-callout__body {
  font-size: 0.875rem;
  color: var(--jt-ink-2);
  line-height: 1.6;
  margin: 0;
}

/* ── Data grid (2-col icon cards) ───────────────────────────── */
.jt-data-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.jt-data-grid__item {
  background: white;
  border-radius: 14px;
  padding: 18px;
  border: 1px solid var(--jt-line);
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.jt-data-grid__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--jt-orange-50);
  color: var(--jt-orange-700);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 20px;
}
.jt-data-grid__title {
  font-weight: 700;
  font-size: 14px;
  color: var(--jt-ink);
  margin-bottom: 4px;
}
.jt-data-grid__body {
  font-size: 13px;
  color: var(--jt-ink-2);
  line-height: 1.55;
  margin: 0;
}

/* ── Rights grid (3-col numbered cards) ─────────────────────── */
.jt-rights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.jt-rights-card {
  background: white;
  border-radius: 14px;
  padding: 18px;
  border: 1px solid var(--jt-line);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.jt-rights-grid__num {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--jt-orange-500);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--jt-font-mono);
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}
.jt-rights-card__title {
  font-weight: 700;
  font-size: 13.5px;
  color: var(--jt-ink);
  margin: 0;
  line-height: 1.4;
}
.jt-rights-card__body {
  font-size: 12.5px;
  color: var(--jt-ink-2);
  line-height: 1.55;
  margin: 0;
}

/* ── Contact card (dark) ────────────────────────────────────── */
.jt-contact-card {
  background: var(--jt-ink);
  color: white;
  border-radius: 20px;
  padding: 32px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  position: relative;
  overflow: hidden;
}
/* Decorative circle behind content */
.jt-contact-card::before {
  content: '';
  position: absolute;
  right: -40px;
  top: -40px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: var(--jt-orange-500);
  opacity: 0.2;
  pointer-events: none;
}
.jt-contact-card__label {
  font-family: var(--jt-font-mono);
  font-size: 10px;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 6px;
}
.jt-contact-card a {
  color: var(--jt-orange-400);
  text-decoration: none;
  font-weight: 600;
}
.jt-contact-card a:hover { text-decoration: underline; }
.jt-contact-card a:focus-visible {
  outline: 2px solid var(--jt-orange-400);
  outline-offset: 2px;
  border-radius: 3px;
}
.jt-contact-card__note {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.65;
  margin-top: 16px;
}

/* ── CTA banner ─────────────────────────────────────────────── */
.jt-privacy-cta {
  background: var(--jt-grad-splash);
  border-radius: 28px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  min-height: 280px;
}
.jt-privacy-cta__text { padding: 48px; }
.jt-privacy-cta__title {
  font-family: var(--jt-font-display);
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: var(--jt-ink);
  margin: 16px 0 14px;
}
.jt-privacy-cta__body {
  font-size: 15px;
  color: var(--jt-ink-2);
  line-height: 1.6;
  margin-bottom: 24px;
}
.jt-privacy-cta__visual {
  display: flex;
  align-items: center;
  justify-content: center;
}
.jt-privacy-cta__ball {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #FFB36B, #F58220);
  box-shadow: 0 30px 80px rgba(245, 130, 32, 0.30);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Pill button used in hero meta + CTA */
.jt-btn-pill {
  border-radius: 9999px;
  padding: 10px 22px;
  font-weight: 600;
  font-size: 14px;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 992px) {
  .jt-toc { position: static; margin-bottom: 32px; }
  .jt-data-grid { grid-template-columns: 1fr; }
  .jt-rights-grid { grid-template-columns: repeat(2, 1fr); }
  .jt-contact-card { grid-template-columns: 1fr; }
  .jt-privacy-cta { grid-template-columns: 1fr; }
  .jt-privacy-cta__visual { display: none; }
}
@media (max-width: 576px) {
  .jt-privacy-hero__title { font-size: 2.5rem; }
  .jt-rights-grid { grid-template-columns: 1fr; }
  .jt-privacy-cta__text { padding: 32px 24px; }
  .jt-privacy-cta__title { font-size: 2rem; }
  .jt-contact-card { padding: 24px; }
}
