/* ===================================================================
   SCPL Holdings — Privacy Policy page
   Extends style3.css. Reuses the shared page masthead and adds a
   sticky-contents + editorial legal-prose layout.
   =================================================================== */

/* ===================================================================
   PAGE MASTHEAD — bottom-anchored, monochrome, left-aligned
   (mirrors the About/Contact masthead so the page reads as one site)
   =================================================================== */
.page-hero {
  position: relative;
  min-height: 52vh;
  display: flex;
  align-items: flex-end;
  background: var(--black);
  overflow: hidden;
}
.page-hero-bg { position: absolute; inset: 0; z-index: 0; }
.page-hero-bg img {
  width: 100%; height: 116%; object-fit: cover; object-position: center 38%;
  filter: grayscale(1) contrast(1.1) brightness(0.5);
  will-change: transform;
}
.page-hero-vignette {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 64% at 28% 54%, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.18) 52%, transparent 80%),
    linear-gradient(to bottom, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.1) 30%, rgba(0,0,0,0.55) 66%, rgba(0,0,0,0.96) 100%);
}
.page-hero-inner {
  position: relative; z-index: 2;
  padding-top: 150px;
  padding-bottom: 56px;
  max-width: 860px;
}
.page-hero-kicker {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--teal-bright); margin-bottom: 24px;
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.page-hero-kicker.in { opacity: 1; transform: none; }
.page-hero-rule {
  display: inline-block; width: 0; height: 2px; background: var(--teal-bright);
  transition: width 0.8s var(--ease) 0.25s;
}
.page-hero-kicker.in .page-hero-rule { width: 34px; }
.page-hero-title {
  font-size: clamp(2.2rem, 4.4vw, 3.8rem); font-weight: 700; line-height: 1.06;
  letter-spacing: -0.035em; color: var(--white); margin-bottom: 22px;
  opacity: 0; transform: translateY(28px);
  transition: opacity 1s var(--ease) 0.12s, transform 1s var(--ease) 0.12s;
}
.page-hero-title.in { opacity: 1; transform: none; }
.page-hero-sub {
  font-size: 1.02rem; line-height: 1.7; color: rgba(255,255,255,0.72); max-width: 60ch;
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.8s var(--ease) 0.35s, transform 0.8s var(--ease) 0.35s;
}
.page-hero-sub.in { opacity: 1; transform: none; }
.page-hero-meta {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 26px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em;
  color: rgba(255,255,255,0.6);
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.8s var(--ease) 0.5s, transform 0.8s var(--ease) 0.5s;
}
.page-hero-meta.in { opacity: 1; transform: none; }
.page-hero-meta::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--teal-bright); box-shadow: 0 0 8px var(--teal-bright);
}

/* ===================================================================
   LEGAL LAYOUT — sticky contents rail + prose column
   =================================================================== */
.legal {
  padding: clamp(64px, 9vw, 120px) 0 clamp(72px, 9vw, 120px);
  background: var(--white);
}
.legal-grid {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

/* --- contents rail --- */
.legal-toc {
  position: sticky; top: 110px;
  align-self: start;
}
.legal-toc-label {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 20px;
}
.legal-toc-label::before { content: ""; width: 24px; height: 2px; background: var(--teal); }
.legal-toc ol { counter-reset: toc; list-style: none; }
.legal-toc li { counter-increment: toc; }
.legal-toc a {
  display: flex; gap: 12px; align-items: baseline;
  padding: 7px 0;
  font-size: 0.9rem; line-height: 1.4; color: var(--muted);
  border-left: 2px solid transparent; padding-left: 14px; margin-left: -16px;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), padding-left 0.2s var(--ease);
}
.legal-toc a::before {
  content: counter(toc, decimal-leading-zero);
  font-size: 0.72rem; font-weight: 700; color: var(--teal-bright);
  flex-shrink: 0; min-width: 20px;
}
.legal-toc a:hover { color: var(--ink); border-color: var(--border); }
.legal-toc a.active { color: var(--ink); border-color: var(--teal); font-weight: 600; }

/* --- prose --- */
.legal-prose { max-width: 760px; }
.legal-intro {
  font-size: 1.12rem; line-height: 1.75; color: var(--body);
  padding-bottom: clamp(32px, 5vw, 48px);
  margin-bottom: clamp(32px, 5vw, 48px);
  border-bottom: 1px solid var(--border);
}
.legal-intro strong { color: var(--ink); font-weight: 600; }

.legal-section { padding-top: clamp(40px, 5vw, 56px); scroll-margin-top: 96px; }
.legal-section:first-of-type { padding-top: 0; }
.legal-section-num {
  display: block;
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--teal-bright); margin-bottom: 12px;
}
.legal-section h2 {
  font-size: clamp(1.45rem, 2.6vw, 1.9rem); font-weight: 700;
  line-height: 1.15; letter-spacing: -0.02em; color: var(--ink);
  margin-bottom: 18px;
}
.legal-section h3 {
  font-size: 1.08rem; font-weight: 700; color: var(--ink);
  margin: 30px 0 10px;
}
.legal-section p {
  font-size: 1rem; line-height: 1.78; color: var(--body); margin-bottom: 16px;
}
.legal-section p a { color: var(--teal); font-weight: 600; }
.legal-section p a:hover { color: var(--teal-dark); text-decoration: underline; text-underline-offset: 3px; }
.legal-section ul {
  list-style: none; margin: 0 0 20px; padding: 0;
}
.legal-section ul li {
  position: relative; padding-left: 26px; margin-bottom: 11px;
  font-size: 1rem; line-height: 1.7; color: var(--body);
}
.legal-section ul li::before {
  content: ""; position: absolute; left: 4px; top: 0.62em;
  width: 7px; height: 2px; background: var(--teal); border-radius: 2px;
}
.legal-section ul li strong { color: var(--ink); font-weight: 600; }

/* contact card at the foot of the policy */
.legal-contact {
  margin-top: clamp(40px, 5vw, 56px);
  padding: clamp(28px, 4vw, 40px);
  background: var(--teal-soft);
  border: 1px solid rgba(20,59,66,0.12);
  border-radius: 14px;
}
.legal-contact h3 { margin-top: 0; font-size: 1.15rem; }
.legal-contact p { margin-bottom: 10px; }
.legal-contact-rows { display: grid; gap: 4px; margin-top: 18px; }
.legal-contact-rows a {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 1rem; font-weight: 600; color: var(--teal);
  width: fit-content;
  transition: color 0.2s var(--ease), transform 0.2s var(--ease);
}
.legal-contact-rows a:hover { color: var(--teal-dark); transform: translateX(3px); }

/* ===================================================================
   RESPONSIVE
   =================================================================== */
@media (max-width: 980px) {
  .legal-grid { grid-template-columns: 1fr; gap: 0; }
  .legal-toc {
    position: static; margin-bottom: 48px;
    padding: 26px 28px; border: 1px solid var(--border); border-radius: 14px;
    background: var(--off-white);
  }
  .legal-toc ol { columns: 2; column-gap: 32px; }
  .legal-toc a { break-inside: avoid; }
}

@media (max-width: 720px) {
  .page-hero { min-height: 60vh; }
  .page-hero-inner { padding-top: 128px; padding-bottom: 48px; }
  .page-hero-title { font-size: clamp(1.75rem, 8.5vw, 2.4rem); line-height: 1.1; }
  .page-hero-sub { font-size: 1rem; }
  .legal-toc ol { columns: 1; }
  .legal-intro { font-size: 1.05rem; }
}

@media (max-width: 460px) {
  .page-hero-title { font-size: clamp(1.6rem, 8vw, 1.95rem); }
  .legal-toc { padding: 22px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .page-hero-kicker, .page-hero-title, .page-hero-sub, .page-hero-meta { opacity: 1 !important; transform: none !important; }
  .page-hero-rule { width: 34px !important; }
}
