/* ============================================================
   ONESTIC — Legal Pages Styles
   ============================================================ */

/* ── Light page base ── */
body.legal-page {
  background: #F4F4F4;
  color: #1D1D1D;
}

body.legal-page .site-header {
  top: 0;
  background: #F4F4F4;
  border-bottom: 0.5px solid rgba(29, 29, 29, 0.15);
}

body.legal-page .site-header.scrolled {
  background: #F4F4F4;
}

body.legal-page .header-tagline {
  color: #1D1D1D;
}

body.legal-page .header-inner {
  padding: 20px var(--padding-x) 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

body.legal-page .header-right {
  justify-self: end;
}

body.legal-page .header-divider {
  border-color: rgba(29, 29, 29, 0.15);
}

body.legal-page .btn-cta {
  border-color: rgba(29, 29, 29, 0.6);
  color: #1D1D1D;
}

body.legal-page .btn-cta:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #1D1D1D;
}

body.legal-page .lang-select {
  border-color: rgba(29, 29, 29, 0.4);
  color: rgba(29, 29, 29, 0.8);
}

body.legal-page .lang-select:hover {
  border-color: rgba(29, 29, 29, 0.8);
  color: #1D1D1D;
}

body.legal-page .lang-select option {
  background: #F4F4F4;
  color: #1D1D1D;
}

/* Back button */
.header-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 400;
  color: #1D1D1D;
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.2s ease;
  white-space: nowrap;
}

.header-back:hover {
  opacity: 1;
}

.header-back-arrow {
  font-size: 16px;
  line-height: 1;
}

/* Header logo — always visible on legal pages, inverted to black for light bg */
body.legal-page .header-logo {
  opacity: 1;
  filter: brightness(0);
}

/* ── Legal Hero ── */
.legal-hero {
  padding: 120px var(--padding-x) 60px;
  max-width: var(--max-width);
  margin: 0 auto;
  border-bottom: 0.5px solid rgba(29, 29, 29, 0.15);
}

.legal-hero-inner {
  max-width: 800px;
}

.legal-hero h1 {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: -2px;
  color: #1D1D1D;
  margin-bottom: 20px;
}

.legal-meta {
  font-size: 14px;
  font-weight: 400;
  color: #999999;
}

/* ── Legal Content ── */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--padding-x) 80px;
}

/* ── Legal Section ── */
.legal-section {
  padding: 48px 0;
  border-bottom: 0.5px solid rgba(29, 29, 29, 0.1);
}

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

.legal-section h2 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #1D1D1D;
  margin-bottom: 20px;
}

.legal-section p {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.7;
  color: #444444;
  margin-bottom: 12px;
}

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

.legal-section ul {
  margin: 12px 0 12px 20px;
  list-style: disc;
}

.legal-section ul li {
  font-size: 15px;
  line-height: 1.7;
  color: #444444;
  margin-bottom: 6px;
}

.legal-section a {
  color: #1D1D1D;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-section a:hover {
  color: #000000;
}

/* ── Scroll-reveal (same pattern as main site) ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── Footer overrides for legal pages ── */
body.legal-page .site-footer {
  margin-top: 0;
}

/* ── Responsive — Tablet ── */
@media (max-width: 1023px) {
  .legal-hero {
    padding: 100px var(--padding-x) 48px;
  }

  .legal-hero h1 {
    font-size: 48px;
    letter-spacing: -1.5px;
  }
}

/* ── Responsive — Mobile ── */
@media (max-width: 767px) {
  body.legal-page .header-inner {
    padding: 16px var(--padding-x) 0;
  }

  body.legal-page .header-logo {
    display: none;
  }

  .legal-hero {
    padding: 80px var(--padding-x) 40px;
  }

  .legal-hero h1 {
    font-size: 36px;
    letter-spacing: -1px;
  }

  .legal-content {
    padding: 0 var(--padding-x) 60px;
  }

  .legal-section {
    padding: 36px 0;
  }

  .legal-section h2 {
    font-size: 15px;
  }

  .legal-section p,
  .legal-section ul li {
    font-size: 14px;
  }
}
