/* ─────────────────────────────────────────────────────────────────────
   LEGAL PAGE — Terms, Privacy, Cookie, Return/Refund
   Narrow reading column with sticky TOC sidebar on desktop.
   ───────────────────────────────────────────────────────────────────── */

/* ── Breadcrumb wrapper (positioning only — styles from .vh-breadcrumb) ── */
.legal-breadcrumb {
  padding: 100px clamp(20px, 5vw, 48px) 0;
  max-width: calc(780px + 200px + 60px + clamp(20px, 5vw, 48px) * 2);
  margin: 0 auto;
}

/* ── Page grid: TOC + Content ── */
.legal-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 60px;
  max-width: calc(780px + 200px + 60px);
  margin: 0 auto;
  padding: 20px clamp(20px, 5vw, 48px) 80px;
}

/* ── Sidebar TOC ── */
.legal-toc {
  position: relative;
}
.legal-toc__nav {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
}
.legal-toc__link {
  display: block;
  padding: 6px 0 6px 12px;
  font-family: 'Onest', system-ui, sans-serif;
  font-size: 13px;
  line-height: 1.4;
  color: #8A8A8A;
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s, font-weight 0.2s;
}
.legal-toc__link:hover {
  color: #4A4A4A;
}
.legal-toc__link.is-active {
  color: #1A1A1A;
  font-weight: 600;
  border-left-color: #1A1A1A;
}

/* ── Content column ── */
.legal-content {
  max-width: 780px;
  width: 100%;
}

/* ── Header ── */
.legal-title {
  font-family: 'Geologica', 'Georgia', serif;
  font-size: 36px;
  font-weight: 600;
  color: #1A1A1A;
  line-height: 1.2;
  margin: 0 0 8px;
}
.legal-date {
  font-family: 'Onest', system-ui, sans-serif;
  font-size: 13px;
  color: #8A8A8A;
  margin: 0 0 48px;
}

/* ── Body typography ── */
.legal-body {
  font-family: 'Onest', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.75;
  color: #4A4A4A;
}
.legal-body p {
  margin: 0 0 16px;
}
.legal-body h2 {
  font-family: 'Onest', system-ui, sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: #1A1A1A;
  margin: 48px 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid #E5E2DD;
  line-height: 1.3;
}
.legal-body h2:first-child {
  margin-top: 0;
}
.legal-body h3 {
  font-family: 'Onest', system-ui, sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #1A1A1A;
  margin: 32px 0 12px;
  line-height: 1.4;
}
.legal-body ul,
.legal-body ol {
  padding-left: 24px;
  margin: 0 0 16px;
}
.legal-body li {
  margin-bottom: 8px;
  line-height: 1.65;
}
.legal-body a {
  color: #3B82F6;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(59, 130, 246, 0.3);
  transition: text-decoration-color 0.2s;
}
.legal-body a:hover {
  text-decoration-color: #3B82F6;
}
.legal-body strong,
.legal-body b {
  color: #1A1A1A;
  font-weight: 600;
}
.legal-body blockquote {
  border-left: 3px solid #E5E2DD;
  padding: 16px 20px;
  background: #FAF9F7;
  margin: 24px 0;
  font-size: 14px;
  color: #4A4A4A;
  border-radius: 0 6px 6px 0;
}
.legal-body blockquote p:last-child {
  margin-bottom: 0;
}
.legal-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
}
.legal-body th,
.legal-body td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid #E5E2DD;
}
.legal-body th {
  font-weight: 600;
  color: #1A1A1A;
  background: #FAF9F7;
}

/* ── Other Policies footer ── */
.legal-other {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid #E5E2DD;
}
.legal-other__title {
  font-family: 'Onest', system-ui, sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #1A1A1A;
  margin: 0 0 20px;
  padding: 0;
  border: none;
}
.legal-other__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.legal-other__card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px;
  background: #FAF9F7;
  border: 1px solid #E5E2DD;
  border-radius: 8px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.legal-other__card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}
.legal-other__card-title {
  font-family: 'Onest', system-ui, sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #1A1A1A;
}
.legal-other__card-desc {
  font-family: 'Onest', system-ui, sans-serif;
  font-size: 13px;
  color: #8A8A8A;
  line-height: 1.5;
}
.legal-other__card-arrow {
  margin-top: auto;
  color: #8A8A8A;
  transition: transform 0.2s, color 0.2s;
}
.legal-other__card:hover .legal-other__card-arrow {
  transform: translateX(4px);
  color: #1A1A1A;
}

/* ── Mobile ── */
@media (max-width: 1199px) {
  .legal-toc {
    display: none;
  }
  .legal-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

@media (max-width: 767px) {
  .legal-breadcrumb {
    padding-top: 80px;
  }
  .legal-grid {
    padding-top: 16px;
    padding-bottom: 48px;
  }
  .legal-title {
    font-size: 28px;
  }
  .legal-date {
    margin-bottom: 36px;
  }
  .legal-body {
    font-size: 14px;
    line-height: 1.8;
  }
  .legal-body h2 {
    font-size: 18px;
    margin-top: 36px;
  }
  .legal-body h3 {
    font-size: 15px;
    margin-top: 24px;
  }
  .legal-other__grid {
    grid-template-columns: 1fr;
  }
  .legal-other__card {
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }
  .legal-other__card-arrow {
    margin-top: 0;
    margin-left: auto;
    flex-shrink: 0;
  }
}

/* ── Print ── */
@media print {
  .legal-toc,
  .legal-breadcrumb,
  .legal-other {
    display: none;
  }
  .legal-grid {
    display: block;
  }
  .legal-body {
    font-size: 12pt;
    line-height: 1.6;
    color: #000;
  }
  .legal-body h2 {
    page-break-after: avoid;
  }
}
