/* Privacy page — calm long-form reading (tokens from config.css :root) */

/* —— Hero (static veil; no ambient drift on a legal page) —— */

.privacy-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  padding: clamp(3.5rem, 11vh, 6.5rem) var(--chrome-pad-x)
    clamp(2.75rem, 7vh, 4.25rem);
  text-align: center;
}

.privacy-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(
      70% 85% at 50% 30%,
      rgba(94, 58, 140, 0.34),
      transparent 62%
    ),
    radial-gradient(
      40% 50% at 84% 18%,
      rgba(0, 174, 239, 0.1),
      transparent 55%
    ),
    radial-gradient(
      38% 45% at 14% 82%,
      rgba(212, 175, 55, 0.1),
      transparent 55%
    );
}

.privacy-hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: min(44rem, 100%);
  margin: 0 auto;
}

.privacy-hero__eyebrow {
  margin: 0 0 0.85rem;
  font-family: var(--font-ui);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-gold);
  animation: privacy-enter var(--motion-enter) var(--ease-out) both;
}

.privacy-hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5.6vw, 3.5625rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: var(--color-text);
  animation: privacy-enter var(--motion-enter) var(--ease-out) 60ms both;
}

/* Gold hairline with a centred diamond under the title */
.privacy-hero__rule {
  position: relative;
  display: block;
  width: min(9rem, 50%);
  height: 1px;
  margin: 1.35rem auto 1.5rem;
  background: linear-gradient(
    90deg,
    transparent,
    var(--color-gold) 50%,
    transparent
  );
  animation: privacy-enter var(--motion-enter) var(--ease-out) 100ms both;
}

.privacy-hero__rule::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.45rem;
  height: 0.45rem;
  margin: -0.225rem 0 0 -0.225rem;
  background: var(--color-gold-soft);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.14);
  transform: rotate(45deg);
}

.privacy-hero__support {
  margin: 0 0 1rem;
  max-width: 36rem;
  font-family: var(--font-ui);
  font-size: clamp(1.1875rem, 2.3vw, 1.375rem);
  line-height: 1.55;
  color: var(--color-text-muted);
  animation: privacy-enter var(--motion-enter) var(--ease-out) 140ms both;
}

.privacy-hero__updated {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 1rem;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  animation: privacy-enter var(--motion-enter) var(--ease-out) 180ms both;
}

.privacy-hero__updated time {
  color: var(--color-gold-soft);
}

@keyframes privacy-enter {
  from {
    opacity: 0;
    transform: translateY(0.6rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* —— Reading column —— */

/* Section-header veils bleed past the phone side padding; clip at the viewport edge */
.privacy {
  overflow-x: clip;
}

.privacy__body {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 var(--chrome-pad-x) clamp(3.5rem, 9vh, 6rem);
  box-sizing: content-box;
}

.privacy__body p {
  margin: 0 0 1rem;
  font-family: var(--font-ui);
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--color-text-muted);
}

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

.privacy__link {
  color: var(--color-cyan);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  overflow-wrap: anywhere;
}

.privacy__link:hover,
.privacy__link:focus-visible {
  color: var(--color-gold-soft);
}

/* Gold diamond list markers */
.privacy-list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

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

.privacy-list li {
  position: relative;
  padding-left: 1.5rem;
  font-family: var(--font-ui);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--color-text-muted);
}

.privacy-list li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 0.15rem;
  width: 0.4rem;
  height: 0.4rem;
  background: var(--color-gold-soft);
  transform: rotate(45deg);
}

/* —— The short version —— */

.privacy-summary {
  margin: 0 0 clamp(1rem, 3vh, 1.5rem);
  padding: clamp(1.35rem, 3.5vw, 2rem);
  border: 1px solid var(--color-border-strong);
  border-radius: 0.25rem;
  background:
    radial-gradient(80% 90% at 0% 0%, rgba(94, 58, 140, 0.22), transparent 65%),
    var(--color-obsidian-raised);
}

.privacy-summary__title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-gold-soft);
}

.privacy-summary__list li {
  color: var(--color-text);
}

/* —— Numbered sections with gold hairline dividers —— */

.privacy-section {
  position: relative;
  padding: clamp(2.25rem, 5.5vh, 3rem) 0 0;
  margin-top: clamp(2.25rem, 5.5vh, 3rem);
}

.privacy-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    var(--color-border-strong),
    var(--color-border) 55%,
    transparent
  );
}

.privacy-section::after {
  content: "";
  position: absolute;
  top: -0.2rem;
  left: 0;
  width: 0.4rem;
  height: 0.4rem;
  background: var(--color-gold);
  transform: rotate(45deg);
}

.privacy-section__header {
  position: relative;
  isolation: isolate;
  margin: 0 0 1.1rem;
}

.privacy__body .privacy-section__number {
  margin: 0 0 0.4rem;
  font-family: var(--font-ui);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.16em;
  color: var(--color-gold);
}

.privacy-section__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-text);
}

.privacy-section__subtitle {
  margin: 1.5rem 0 0.6rem;
  font-family: var(--font-ui);
  font-size: 1.1875rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--color-text);
}

.privacy-section__header + .privacy-section__subtitle {
  margin-top: 0;
}

.privacy__body .privacy__contact {
  font-size: 1.1875rem;
}

/* —— Motion: scroll reveals + lever C header veil (Home / Contact family) —— */

@keyframes privacy-section-veil {
  0% {
    opacity: 0;
    transform: scale(0.92);
  }
  40% {
    opacity: 0.85;
    transform: scale(1.02);
  }
  100% {
    opacity: 0.32;
    transform: scale(1);
  }
}

.page-privacy [data-reveal] {
  opacity: 0;
  transform: translateY(0.85rem);
  transition:
    opacity var(--motion-enter) var(--ease-out),
    transform var(--motion-enter) var(--ease-out);
}

.page-privacy [data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.privacy-section[data-reveal] .privacy-section__header::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -0.85rem -1.25rem -0.6rem -1rem;
  border-radius: 0.35rem;
  background: radial-gradient(
    70% 80% at 20% 45%,
    rgba(94, 58, 140, 0.38),
    transparent 68%
  );
  opacity: 0;
  pointer-events: none;
}

.privacy-section[data-reveal].is-revealed .privacy-section__header::before {
  animation: privacy-section-veil calc(var(--motion-enter) * 1.35)
    var(--ease-out) both;
}

@media (prefers-reduced-motion: reduce) {
  .privacy-hero__eyebrow,
  .privacy-hero__title,
  .privacy-hero__rule,
  .privacy-hero__support,
  .privacy-hero__updated {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .privacy-section[data-reveal] .privacy-section__header::before {
    animation: none !important;
    opacity: 0.22;
  }

  .page-privacy [data-reveal],
  .page-privacy [data-reveal].is-revealed {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
