/* ============================================================
   DPAI — Privacy Policy ("Inflight Reading")
   Extends styles/site.css and reuses the generic TOC + clause
   patterns from styles/terms.css. Only the net-new patterns live
   here: the glossy "inflight magazine" summary spread (cover +
   table of contents) on a floating pointer-tilt / glare scene.
   ============================================================ */

/* ---- Hero (centered legal variant — mirrors .terms-hero) ---- */
.privacy-hero .wrap {
  max-width: 860px;
  text-align: center;
  padding-top: clamp(52px, 8vw, 100px);
  padding-bottom: clamp(46px, 7vw, 84px);
}
.privacy-hero h1 {
  font-size: clamp(2.2rem, 5.6vw, 3.6rem);
  margin: 16px 0 18px;
  letter-spacing: -0.02em;
}
.privacy-hero .hero-sub { margin-inline: auto; }

/* ============================================================
   30-SECOND SUMMARY — the "inflight magazine" spread
   A glossy navy cover (left) bound to a paper contents page
   (right), floating with pointer-tilt + glare like the homepage
   outro boarding pass.
   ============================================================ */
.privacy-summary { padding-top: clamp(40px, 6vw, 64px); }

.mag-scene { perspective: 1200px; }
.mag-float { animation: mag-float 6s ease-in-out infinite; will-change: transform; }
@keyframes mag-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.magazine {
  position: relative;
  max-width: 920px;
  margin-inline: auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.18s ease, box-shadow 0.25s ease;
  box-shadow: 0 44px 96px -42px rgba(10, 28, 43, 0.6);
}
.mag-scene:hover .magazine { box-shadow: 0 64px 120px -40px rgba(10, 28, 43, 0.6); }

/* pointer-tracking gloss */
.mag-glare {
  position: absolute; inset: 0; z-index: 8; pointer-events: none; border-radius: inherit;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0) 46%);
  opacity: 0; transition: opacity 0.3s ease; mix-blend-mode: screen;
}
.mag-scene:hover .mag-glare { opacity: 1; }

/* ---- Two-page spread ---- */
.mag-body { display: grid; grid-template-columns: 1.04fr auto 0.96fr; min-height: 440px; }

/* ============================================================
   LEFT PAGE · the glossy cover
   ============================================================ */
.mag-cover {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: clamp(26px, 3.4vw, 40px);
  color: #fff;
  background:
    radial-gradient(120% 80% at 78% 8%, rgba(58, 163, 227, 0.45), rgba(58, 163, 227, 0) 60%),
    radial-gradient(120% 90% at 12% 100%, rgba(240, 180, 41, 0.28), rgba(240, 180, 41, 0) 55%),
    linear-gradient(155deg, var(--navy) 0%, var(--navy-2) 52%, #0c2438 100%);
  isolation: isolate;
  overflow: hidden;
}
/* glossy magazine sheen sweeping the cover */
.mag-cover::after {
  content: "";
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(118deg, rgba(255, 255, 255, 0) 38%, rgba(255, 255, 255, 0.16) 50%, rgba(255, 255, 255, 0) 62%);
}
.mag-cover > * { position: relative; z-index: 1; }

/* nameplate / masthead */
.mag-nameplate {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--gold);
}
.mag-logo {
  font-size: clamp(2rem, 5.4vw, 3rem);
  font-weight: 700;
  letter-spacing: 0.22em;
  line-height: 0.9;
  text-indent: 0.22em; /* optical centering for the tracked caps */
  background: linear-gradient(100deg, #cfeaff 8%, #fff 46%, var(--gold) 96%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.mag-tag {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: #9fc0d8;
}

/* coverlines */
.mag-coverlines { margin-top: auto; }
.mag-issue {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.mag-headline {
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  color: #fff;
}
.mag-headline span {
  display: block;
  background: linear-gradient(100deg, #6fc1f0 10%, var(--gold) 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.mag-dek {
  font-size: 0.96rem;
  line-height: 1.5;
  color: #c8dcec;
  max-width: 38ch;
}

/* cover footer · faux barcode + complimentary note */
.mag-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.mag-barcode {
  width: 88px; height: 30px; flex: none; border-radius: 3px;
  background: repeating-linear-gradient(90deg,
    #eaf3fb 0 2px, transparent 2px 4px,
    #eaf3fb 4px 5px, transparent 5px 9px,
    #eaf3fb 9px 12px, transparent 12px 13px);
  opacity: 0.92;
}
.mag-complimentary {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8fb0c8;
  text-align: right;
  max-width: 18ch;
  line-height: 1.4;
}

/* ============================================================
   CENTER · the magazine spine (binding)
   ============================================================ */
.mag-spine {
  width: 18px;
  background:
    linear-gradient(90deg,
      rgba(10, 28, 43, 0.28) 0%,
      rgba(10, 28, 43, 0.08) 24%,
      rgba(10, 28, 43, 0) 46%,
      rgba(10, 28, 43, 0.05) 54%,
      rgba(10, 28, 43, 0.12) 100%);
}

/* ============================================================
   RIGHT PAGE · "In this issue" contents
   ============================================================ */
.mag-contents {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: clamp(24px, 3.2vw, 38px) clamp(24px, 3.4vw, 40px);
  background:
    linear-gradient(180deg, #fffdf8 0%, #fffaef 100%);
}
.mag-contents-lab {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 8px;
}
.mag-contents-lab::after {
  content: "";
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  border-radius: 2px;
}

.mag-toc { list-style: none; margin: 0; padding: 0; }
.mag-toc li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 11px 0;
  border-bottom: 1px dashed var(--line);
}
.mag-toc li:last-child { border-bottom: 0; }
.mag-feat {
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
}
.mag-feat small {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink-soft);
}
.mag-dots {
  flex: 1;
  min-width: 14px;
  align-self: flex-end;
  margin-bottom: 4px;
  border-bottom: 1.5px dotted var(--ink-faint);
  opacity: 0.6;
}
.mag-pg {
  flex: none;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--gold-deep);
  font-variant-numeric: tabular-nums;
  transition: color 0.18s ease, transform 0.18s ease;
}
.mag-pg:hover { color: var(--blue-deep); transform: translateX(2px); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 720px) {
  .mag-body { grid-template-columns: 1fr; }
  .mag-spine {
    width: auto;
    height: 14px;
    background: linear-gradient(180deg,
      rgba(10, 28, 43, 0.16), rgba(10, 28, 43, 0) 70%);
  }
  .mag-cover { min-height: 360px; }
}

@media (prefers-reduced-motion: reduce) {
  .mag-float { animation: none; }
  .magazine { transform: none !important; }
}
