/* =========================================================
   LUMIVEX — Privacy Policy Page
   Elegant legal · dark luxury · glass
   ========================================================= */

.page-privacy {
  --priv-ink: rgba(255, 255, 255, 0.78);
  --priv-soft: rgba(255, 255, 255, 0.55);
}

/* ---------- Reading progress ---------- */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 10001;
  background: rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.reading-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-light));
  box-shadow: 0 0 16px var(--gold-glow);
  transition: width 0.08s linear;
  transform-origin: left center;
}

/* ---------- Hero ---------- */
.priv-hero {
  position: relative;
  min-height: 72vh;
  min-height: 72dvh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--header-h) + 4rem) 0 4.5rem;
  overflow: hidden;
}

.priv-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 70% 60% at 15% 20%, rgba(212, 175, 55, 0.14), transparent 55%),
    radial-gradient(ellipse 50% 45% at 85% 70%, rgba(212, 175, 55, 0.08), transparent 50%),
    linear-gradient(180deg, #0a0a0a 0%, #050505 100%);
}

.priv-hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  animation: privOrb 14s ease-in-out infinite;
}

.priv-orb-1 {
  width: 420px;
  height: 420px;
  top: -10%;
  right: 8%;
  background: rgba(212, 175, 55, 0.18);
}

.priv-orb-2 {
  width: 320px;
  height: 320px;
  bottom: 5%;
  left: -5%;
  background: rgba(240, 215, 140, 0.1);
  animation-delay: -5s;
}

@keyframes privOrb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, -30px) scale(1.08); }
}

.priv-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(212, 175, 55, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 175, 55, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black, transparent);
  opacity: 0.7;
}

.priv-hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
}

.ph-eyebrow {
  margin-bottom: 1.25rem;
}

.priv-hero-title {
  font-size: clamp(2.6rem, 5.8vw, 4.8rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 1.35rem;
}

.priv-hero-title em {
  font-style: italic;
  font-weight: 500;
  background: linear-gradient(120deg, #fff, var(--gold-light), var(--gold));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: privShine 7s linear infinite;
}

@keyframes privShine {
  to { background-position: 200% center; }
}

.ph-line {
  display: block;
  overflow: hidden;
}

.ph-line > span {
  display: inline-block;
}

.priv-hero-sub {
  color: var(--text-muted);
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  max-width: 52ch;
  line-height: 1.75;
  margin-bottom: 2.25rem;
}

.priv-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 0;
  overflow: hidden;
  max-width: 720px;
}

.priv-meta > div {
  padding: 1.15rem 1.25rem;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.priv-meta > div:last-child {
  border-right: none;
}

.priv-meta span {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.4rem;
}

.priv-meta strong {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gold-light);
}

/* ---------- Layout ---------- */
.priv-body {
  padding-top: 1rem;
}

.priv-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}

/* ---------- Sticky TOC ---------- */
.priv-toc {
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
  padding: 1.5rem 1.25rem;
  max-height: calc(100vh - var(--header-h) - 3rem);
  overflow-y: auto;
  scrollbar-width: thin;
}

.toc-label {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.15rem;
  font-weight: 600;
}

.toc-nav {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.toc-link {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.88rem;
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: color 0.3s, background 0.3s, border-color 0.3s;
}

.toc-link span {
  font-family: var(--font-num);
  font-size: 0.72rem;
  color: var(--text-dim);
  min-width: 1.4rem;
}

.toc-link:hover {
  color: var(--gold-light);
  background: rgba(212, 175, 55, 0.06);
}

.toc-link.is-active {
  color: #fff;
  background: rgba(212, 175, 55, 0.1);
  border-left-color: var(--gold);
}

.toc-link.is-active span {
  color: var(--gold);
}

.toc-top {
  appearance: none;
  margin-top: 1.25rem;
  width: 100%;
  padding: 0.65rem;
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--gold-light);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.3s, border-color 0.3s;
}

.toc-top:hover {
  background: rgba(212, 175, 55, 0.1);
  border-color: var(--gold);
}

.priv-toc-mobile {
  display: none;
  margin-bottom: 1.5rem;
  padding: 0;
}

.priv-toc-mobile summary {
  padding: 1rem 1.25rem;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--gold-light);
  list-style: none;
}

.priv-toc-mobile summary::-webkit-details-marker {
  display: none;
}

.priv-toc-mobile nav {
  display: flex;
  flex-direction: column;
  padding: 0 1rem 1rem;
  gap: 0.35rem;
}

.priv-toc-mobile a {
  color: var(--text-muted);
  font-size: 0.88rem;
  padding: 0.45rem 0.5rem;
  text-decoration: none;
}

.priv-toc-mobile a:hover {
  color: var(--gold-light);
}

/* ---------- Content cards ---------- */
.priv-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-bottom: 3rem;
}

.priv-card {
  padding: clamp(1.75rem, 3vw, 2.75rem);
  scroll-margin-top: calc(var(--header-h) + 1.5rem);
  transition: border-color 0.4s, box-shadow 0.4s;
}

.priv-card:hover {
  border-color: rgba(212, 175, 55, 0.35);
  box-shadow: 0 0 40px rgba(212, 175, 55, 0.06);
}

.priv-card-head {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  margin-bottom: 1.75rem;
  padding-bottom: 1.35rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.priv-num {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.9;
}

.priv-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.35rem;
}

.priv-card-head h2 {
  font-size: clamp(1.65rem, 2.5vw, 2.15rem);
  margin: 0;
  letter-spacing: -0.02em;
}

/* Typography */
.priv-prose {
  color: var(--priv-ink);
  font-size: 1.02rem;
  line-height: 1.8;
  max-width: 68ch;
}

.priv-prose p {
  margin-bottom: 1.15rem;
}

.priv-prose h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: #fff;
  margin: 1.75rem 0 0.85rem;
  font-weight: 500;
}

.priv-prose a {
  color: var(--gold-light);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(212, 175, 55, 0.4);
  transition: color 0.25s, text-decoration-color 0.25s;
}

.priv-prose a:hover {
  color: var(--gold);
  text-decoration-color: var(--gold);
}

.priv-prose strong {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
}

.priv-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.priv-list li {
  position: relative;
  padding-left: 1.35rem;
  color: var(--priv-soft);
  font-size: 0.98rem;
}

.priv-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  box-shadow: 0 0 10px var(--gold-glow);
}

.priv-list strong {
  color: var(--gold-light);
}

.priv-callout {
  margin: 1.5rem 0;
  padding: 1.25rem 1.4rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(212, 175, 55, 0.25);
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.08), rgba(255, 255, 255, 0.02));
}

.priv-callout.gold {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.12), rgba(212, 175, 55, 0.03));
}

.priv-callout strong {
  display: block;
  color: var(--gold-light);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
}

.priv-callout p {
  margin: 0;
  color: var(--priv-soft);
  font-size: 0.95rem;
}

.priv-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.5rem 0;
}

.priv-mini {
  padding: 1.15rem 1.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.priv-mini h4 {
  font-size: 1rem;
  color: var(--gold-light);
  margin-bottom: 0.4rem;
  font-family: var(--font-display);
  font-weight: 500;
}

.priv-mini p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--priv-soft);
}

/* Usage grid */
.usage-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}

.usage-item {
  padding: 1.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(212, 175, 55, 0.15);
  background: rgba(17, 17, 17, 0.5);
  transition: border-color 0.35s, transform 0.35s var(--ease);
}

.usage-item:hover {
  border-color: rgba(212, 175, 55, 0.4);
  transform: translateY(-3px);
}

.usage-icon {
  display: block;
  font-family: var(--font-num);
  font-size: 0.75rem;
  color: var(--gold);
  margin-bottom: 0.55rem;
  letter-spacing: 0.08em;
}

.usage-item h3 {
  font-size: 1.05rem !important;
  margin: 0 0 0.4rem !important;
}

.usage-item p {
  margin: 0 !important;
  font-size: 0.88rem;
  color: var(--priv-soft);
  line-height: 1.55;
}

.priv-note {
  font-size: 0.9rem !important;
  color: var(--text-dim) !important;
  font-style: italic;
}

/* Cookie table */
.cookie-table {
  margin: 1.5rem 0;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(212, 175, 55, 0.2);
  overflow: hidden;
}

.cookie-row {
  display: grid;
  grid-template-columns: 0.9fr 1.4fr 1fr;
  gap: 0.75rem;
  padding: 0.95rem 1.15rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.9rem;
  color: var(--priv-soft);
  align-items: center;
}

.cookie-row:last-child {
  border-bottom: none;
}

.cookie-head {
  background: rgba(212, 175, 55, 0.1);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

.cookie-row strong {
  color: var(--gold-light);
}

/* Security */
.security-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
  margin: 1.5rem 0;
}

.sec-item {
  padding: 1.25rem !important;
  background: rgba(17, 17, 17, 0.6) !important;
}

.sec-item h3 {
  font-size: 1.05rem !important;
  margin: 0 0 0.4rem !important;
  color: var(--gold-light);
}

.sec-item p {
  margin: 0 !important;
  font-size: 0.88rem;
  color: var(--priv-soft);
}

/* Rights */
.rights-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.rights-list li {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
  align-items: baseline;
}

.rights-list strong {
  color: var(--gold-light);
  font-size: 0.9rem;
}

.rights-list span {
  color: var(--priv-soft);
  font-size: 0.92rem;
}

/* Contact card */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}

.contact-block {
  padding: 1.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(212, 175, 55, 0.2);
  background: rgba(212, 175, 55, 0.04);
}

.contact-block > span {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.55rem;
}

.contact-block a {
  color: var(--gold-light);
  font-weight: 500;
  text-decoration: none;
}

.contact-block a:hover {
  color: var(--gold);
}

.contact-block p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--priv-soft);
  line-height: 1.55;
}

.priv-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin: 1.75rem 0 1.25rem;
}

.priv-update {
  font-size: 0.85rem !important;
  color: var(--text-dim) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 1.25rem;
  margin-bottom: 0 !important;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .priv-layout {
    grid-template-columns: 1fr;
  }

  .priv-toc {
    display: none;
  }

  .priv-toc-mobile {
    display: block;
    position: sticky;
    top: calc(var(--header-h) + 0.5rem);
    z-index: 50;
  }

  .priv-meta {
    grid-template-columns: 1fr 1fr;
  }

  .priv-meta > div {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .rights-list li {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }
}

@media (max-width: 640px) {
  .priv-hero {
    min-height: auto;
    padding-bottom: 3rem;
  }

  .priv-meta,
  .priv-grid-2,
  .usage-grid,
  .security-grid {
    grid-template-columns: 1fr;
  }

  .cookie-row {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .cookie-head {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .priv-hero-title em,
  .priv-hero-orb,
  .reading-progress-bar {
    animation: none !important;
    transition: none !important;
  }
}
