/*
 * Privacy Policy page.
 *
 * Token-aligned with the sitemap, blog, about and product pages:
 *   --junj-pp-orange: #ee7700
 *   --junj-pp-paper:  #f5f1ee
 *   --junj-pp-ink:    #282421
 *   --junj-pp-muted:  #595656
 *   --junj-pp-rule:   #e2e2e2
 *
 * Layout: dark hero (orange accent + paper typography), then a two-column
 * body with a sticky TOC aside and a long-form content rail.
 */

@font-face {
  font-family: "Outfit";
  src: url("/wp-content/themes/junj/assets/fonts/Outfit-SemiBold.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Outfit";
  src: url("/wp-content/themes/junj/assets/fonts/Outfit-Medium.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Outfit";
  src: url("/wp-content/themes/junj/assets/fonts/Outfit-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

.privacy-page,
.privacy-page * {
  box-sizing: border-box;
}

.privacy-page {
  --junj-pp-orange: #ee7700;
  --junj-pp-orange-strong: #d96a00;
  --junj-pp-paper: #f5f1ee;
  --junj-pp-paper-strong: #ece6df;
  --junj-pp-ink: #282421;
  --junj-pp-ink-soft: #3a3531;
  --junj-pp-muted: #595656;
  --junj-pp-muted-soft: #7d7770;
  --junj-pp-rule: #e2e2e2;
  --junj-pp-rule-strong: #cfcac4;
  --junj-pp-on-dark: #f6f1ec;
  --junj-pp-on-dark-muted: rgba(246, 241, 236, 0.72);
  display: block;
  color: var(--junj-pp-ink);
  background: var(--junj-pp-paper);
  font-family: "Outfit", Arial, sans-serif;
  letter-spacing: 0;
}

.privacy-hero {
  position: relative;
  isolation: isolate;
  background: var(--junj-pp-ink);
  color: var(--junj-pp-on-dark);
  overflow: hidden;
}

.privacy-hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.32;
}

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

.privacy-hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 48px;
  width: calc(100% - 48px);
  max-width: 1440px;
  margin: 0 auto;
  padding: 188px 0 132px;
}

.privacy-hero__copy {
  max-width: 820px;
}

.privacy-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  margin-bottom: 28px;
  border: 1px solid rgba(246, 241, 236, 0.22);
  border-radius: 999px;
  color: var(--junj-pp-on-dark);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.privacy-hero__eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--junj-pp-orange);
  box-shadow: 0 0 0 4px rgba(238, 119, 0, 0.22);
}

.privacy-hero__title {
  margin: 0 0 28px;
  font-size: clamp(42px, 6.4vw, 88px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: var(--junj-pp-on-dark);
}

.privacy-hero__summary {
  margin: 0;
  max-width: 640px;
  color: var(--junj-pp-on-dark-muted);
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.6;
}

.privacy-hero__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 36px 0 0;
  padding-top: 24px;
  border-top: 1px solid rgba(246, 241, 236, 0.18);
  color: var(--junj-pp-on-dark-muted);
  font-size: 14px;
}

.privacy-hero__meta-label {
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.privacy-hero__meta-value {
  color: var(--junj-pp-on-dark);
  font-weight: 500;
}

.privacy-hero__accent {
  position: relative;
  width: clamp(180px, 22vw, 280px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(246, 241, 236, 0.18);
  background: rgba(238, 119, 0, 0.18);
}

.privacy-hero__accent img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.privacy-hero__rule {
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0, rgba(246, 241, 236, 0.28) 24px, rgba(246, 241, 236, 0.28) calc(100% - 24px), transparent 100%);
}

.privacy-body {
  position: relative;
  padding: 96px 0 120px;
  background: var(--junj-pp-paper);
}

.privacy-body__inner {
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  gap: 80px;
  width: calc(100% - 48px);
  max-width: 1440px;
  margin: 0 auto;
  align-items: start;
}

.privacy-toc {
  position: sticky;
  top: 132px;
  padding: 28px 28px 32px;
  background: #fff;
  border: 1px solid var(--junj-pp-rule);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(40, 36, 33, 0.08);
}

.privacy-toc__label {
  margin: 0 0 18px;
  color: var(--junj-pp-muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.privacy-toc__list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.privacy-toc__list li + li {
  margin-top: 14px;
}

.privacy-toc__link {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--junj-pp-ink);
  text-decoration: none;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.privacy-toc__link:hover,
.privacy-toc__link:focus-visible {
  background: var(--junj-pp-paper-strong);
  color: var(--junj-pp-ink);
  outline: none;
}

.privacy-toc__link:focus-visible {
  box-shadow: 0 0 0 2px var(--junj-pp-orange);
}

.privacy-toc__index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 24px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(238, 119, 0, 0.12);
  color: var(--junj-pp-orange-strong);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.privacy-toc__text {
  display: block;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
  color: inherit;
}

.privacy-toc__link:hover .privacy-toc__index,
.privacy-toc__link:focus-visible .privacy-toc__index {
  background: var(--junj-pp-orange);
  color: #fff;
}

.privacy-toc__contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--junj-pp-ink);
  color: var(--junj-pp-on-dark);
  font-size: 14px;
  text-decoration: none;
  transition: background-color 0.18s ease, transform 0.18s ease;
}

.privacy-toc__contact:hover,
.privacy-toc__contact:focus-visible {
  background: var(--junj-pp-orange);
  color: #fff;
  outline: none;
}

.privacy-toc__contact-label {
  font-weight: 500;
}

.privacy-toc__contact-value {
  font-size: 16px;
  font-weight: 600;
  transition: transform 0.18s ease;
}

.privacy-toc__contact:hover .privacy-toc__contact-value,
.privacy-toc__contact:focus-visible .privacy-toc__contact-value {
  transform: translateX(4px);
}

.privacy-content {
  max-width: 760px;
}

.privacy-content__intro {
  margin: 0 0 56px;
  padding: 28px 32px;
  border-left: 4px solid var(--junj-pp-orange);
  background: #fff;
  border-radius: 0 14px 14px 0;
  color: var(--junj-pp-ink);
  font-size: 19px;
  line-height: 1.55;
}

.privacy-content__sections {
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.privacy-section {
  padding: 32px 32px 36px;
  background: #fff;
  border: 1px solid var(--junj-pp-rule);
  border-radius: 18px;
  box-shadow: 0 12px 32px rgba(40, 36, 33, 0.05);
}

.privacy-section__header {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--junj-pp-rule);
}

.privacy-section__index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--junj-pp-orange);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.privacy-section__title {
  margin: 0;
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 600;
  line-height: 1.2;
  color: var(--junj-pp-ink);
  letter-spacing: -0.005em;
}

.privacy-section__body p {
  margin: 0 0 16px;
  color: var(--junj-pp-ink-soft);
  font-size: 16px;
  line-height: 1.7;
}

.privacy-section__body p:last-child {
  margin-bottom: 0;
}

.privacy-section__list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.privacy-section__list li {
  position: relative;
  padding: 10px 0 10px 28px;
  border-bottom: 1px dashed var(--junj-pp-rule);
  color: var(--junj-pp-ink-soft);
  font-size: 16px;
  line-height: 1.6;
}

.privacy-section__list li:last-child {
  border-bottom: none;
}

.privacy-section__list li::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 0;
  width: 14px;
  height: 2px;
  background: var(--junj-pp-orange);
  border-radius: 2px;
}

.privacy-section__more {
  margin: 24px 0 0;
}

.privacy-section__more-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  color: var(--junj-pp-orange);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-bottom: 1px solid var(--junj-pp-orange);
  transition: gap 0.18s ease, color 0.18s ease;
}

.privacy-section__more-link:hover,
.privacy-section__more-link:focus-visible {
  color: var(--junj-pp-orange-strong);
  gap: 14px;
  outline: none;
}

.privacy-contact {
  margin-top: 56px;
  padding: 32px 36px;
  background: var(--junj-pp-ink);
  color: var(--junj-pp-on-dark);
  border-radius: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
}

.privacy-contact__title {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 600;
  color: var(--junj-pp-on-dark);
}

.privacy-contact__summary {
  margin: 0;
  color: var(--junj-pp-on-dark-muted);
  font-size: 16px;
  line-height: 1.6;
}

.privacy-contact__action {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  background: var(--junj-pp-orange);
  color: #fff;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: background-color 0.18s ease, transform 0.18s ease;
}

.privacy-contact__action:hover,
.privacy-contact__action:focus-visible {
  background: var(--junj-pp-orange-strong);
  transform: translateY(-1px);
  outline: none;
}

.privacy-page .shared-contact {
  margin-top: 0;
}

@media (max-width: 1180px) {
  .privacy-hero__inner {
    padding: 160px 0 96px;
    gap: 32px;
  }

  .privacy-body {
    padding: 72px 0 96px;
  }

  .privacy-body__inner {
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
    gap: 48px;
  }
}

@media (max-width: 991px) {
  .privacy-hero__inner {
    grid-template-columns: minmax(0, 1fr);
    padding: 140px 0 72px;
  }

  .privacy-hero__accent {
    width: 180px;
  }

  .privacy-body {
    padding: 56px 0 72px;
  }

  .privacy-body__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
    width: calc(100% - 40px);
  }

  .privacy-toc {
    position: static;
  }
}

@media (max-width: 767px) {
  .privacy-hero__inner {
    padding: 116px 0 56px;
    width: calc(100% - 32px);
  }

  .privacy-hero__summary {
    font-size: 16px;
  }

  .privacy-hero__accent {
    display: none;
  }

  .privacy-body {
    padding: 44px 0 56px;
  }

  .privacy-body__inner {
    width: calc(100% - 32px);
  }

  .privacy-content__intro,
  .privacy-section,
  .privacy-contact {
    padding: 24px;
  }

  .privacy-contact {
    grid-template-columns: minmax(0, 1fr);
  }

  .privacy-contact__action {
    justify-self: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .privacy-page *,
  .privacy-page *::before,
  .privacy-page *::after {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
  }
}