/* ============================================================
   VINOVE — Legal Pages (Privacy, Terms)
   VNV-VIS-001 v1.0 · VNV-VOX-001 v4.1

   §0  Header   — dark typographic
   §1  Content  — light single-column readable
   ============================================================ */


/* ╔═══════════════════════════════════════════════════════╗
   §0  HEADER
   ╚═══════════════════════════════════════════════════════╝ */

#legal-header {
  background: var(--ink);
  padding-top: calc(var(--nav-h) + clamp(3.5rem, 7vw, 6rem));
  padding-bottom: clamp(3rem, 5vw, 5rem);
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  position: relative;
  overflow: hidden;
}

/* Background image + overlay */
.page-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(160deg, rgba(9,12,21,.9) 0%, rgba(9,12,21,.6) 45%, rgba(9,12,21,.82) 100%),
    linear-gradient(to right, rgba(9,12,21,.6) 0%, transparent 65%);
}

#legal-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  pointer-events: none;
  z-index: 2;
}

.legal-header-inner {
  max-width: var(--max);
  margin: 0 auto;
  position: relative;
  z-index: 3;
}

.legal-breadcrumb {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.legal-breadcrumb a,
.legal-breadcrumb span {
  font-size: .8125rem;
  color: var(--ink-text-muted);
  text-decoration: none;
}

.legal-breadcrumb a:hover {
  color: rgba(255,255,255,.72);
}

.legal-breadcrumb-sep {
  color: var(--ink-text-muted);
  font-size: .75rem;
}

.legal-breadcrumb span:last-child {
  color: rgba(255,255,255,.55);
}

#legal-header h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.03em;
  color: #fff;
  margin: 0 0 1rem;
}

.legal-updated {
  font-size: .9375rem;
  color: var(--ink-text-muted);
  margin: 0;
}

.legal-scope-note {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-top: 1.5rem;
  padding: .5rem .875rem;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 6px;
  font-size: .8125rem;
  color: var(--ink-text-muted);
}

.legal-scope-note .scope-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--terra);
  flex-shrink: 0;
}


/* ╔═══════════════════════════════════════════════════════╗
   §1  CONTENT
   ╚═══════════════════════════════════════════════════════╝ */

#legal-content {
  background: var(--paper);
  padding: clamp(4rem, 8vw, 7rem) var(--gutter);
}

.legal-content-inner {
  max-width: 72ch;
  margin: 0 auto;
}

/* Hub page (document list) aligns to the same full width as the header,
   so the list left-edge lines up with the "Legal." hero instead of sitting
   in a narrow centred column. Prose pages keep the 72ch reading width. */
.legal-content-inner:has(.legal-doc-list) {
  max-width: var(--max);
}

.legal-section {
  padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
  border-bottom: 1px solid #E8E7E3;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.legal-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.legal-section h2 {
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -.018em;
  line-height: 1.25;
  color: var(--text-strong);
  margin: 0 0 1rem;
}

.legal-section p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-body);
  margin: 0 0 1rem;
}

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

.legal-section ul {
  margin: .5rem 0 1rem 0;
  padding: 0;
  list-style: none;
}

.legal-section ul li {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-body);
  padding-left: 1.25rem;
  position: relative;
}

.legal-section ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .75em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--text-muted);
}

.legal-section a {
  color: var(--terra);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-section a:hover {
  color: var(--terra-hover);
}

/* contact callout at bottom */
.legal-contact-block {
  background: var(--surface-2);
  border-radius: 10px;
  padding: 1.5rem 1.75rem;
  margin-top: 1rem;
}

.legal-contact-block p {
  margin: 0;
  color: var(--text-body);
}

.legal-contact-block strong {
  color: var(--text-strong);
}


/* ╔═══════════════════════════════════════════════════════╗
   §2  HUB PAGE — document list cards
   ╚═══════════════════════════════════════════════════════╝ */

.legal-doc-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.legal-doc-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid #E8E7E3;
  text-decoration: none;
  transition: background .15s ease, padding-left .15s ease;
}

.legal-doc-card:first-child {
  border-top: 1px solid #E8E7E3;
}

.legal-doc-card:hover {
  padding-left: .25rem;
}

.legal-doc-card-body {
  flex: 1;
  min-width: 0;
}

.legal-doc-card-title {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -.015em;
  color: var(--text-strong);
  margin-bottom: .25rem;
  transition: color .15s ease;
}

.legal-doc-card:hover .legal-doc-card-title {
  color: var(--terra);
}

.legal-doc-card-desc {
  font-size: .9375rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.legal-doc-card-arrow {
  width: 16px;
  height: 16px;
  stroke: var(--text-muted);
  fill: none;
  flex-shrink: 0;
  transition: stroke .15s ease, transform .15s ease;
}

.legal-doc-card:hover .legal-doc-card-arrow {
  stroke: var(--terra);
  transform: translateX(3px);
}
