/* ---------- Terms page: long-form legal reading layout ---------- */

/* Hero: short, warm-paper, minimal */
.terms-hero {
  background: var(--paper);
  padding-top: clamp(40px, 5vw, 80px);
  padding-bottom: clamp(36px, 4.5vw, 64px);
  border-bottom: 1px solid var(--line);
}
.terms-hero__crumb {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 32px;
}
.terms-hero__crumb a { color: inherit; }
.terms-hero__crumb span { margin: 0 10px; opacity: 0.5; }
.terms-hero__crumb span:last-child { opacity: 1; }

.terms-hero__inner {
  max-width: 900px;
}
.terms-hero__eye {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--lalu-red);
  margin-bottom: 20px;
}
.terms-hero__headline {
  font-family: var(--f-sans);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.02;
  text-transform: uppercase;
  font-size: clamp(34px, 5vw, 72px);
  margin: 0 0 20px;
}
.terms-hero__sub {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 18px;
}
.terms-hero__meta {
  font-size: clamp(15px, 1.1vw, 16px);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 56ch;
  margin: 0;
}

/* Two column main: sticky TOC + reading column */
.terms-main {
  background: var(--paper);
  padding: clamp(48px, 6vw, 96px) 0 clamp(48px, 6vw, 96px);
}
.terms-main__grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: clamp(48px, 6vw, 120px);
  align-items: start;
}
.terms-main__side {
  position: sticky;
  top: calc(var(--nav-h, 72px) + 24px);
}
@media (max-width: 900px) {
  .terms-main__grid { grid-template-columns: 1fr; gap: 40px; }
  .terms-main__side { position: static; }
}

/* Table of contents */
.terms-toc {
  padding-right: 8px;
}
.terms-toc__eye {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
}
.terms-toc__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.terms-toc__item a {
  display: flex;
  gap: 12px;
  padding: 8px 10px 8px 0;
  color: var(--ink-2);
  font-family: var(--f-sans);
  font-size: 14px;
  line-height: 1.35;
  text-decoration: none;
  border-left: 2px solid transparent;
  padding-left: 12px;
  margin-left: -14px;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.terms-toc__item a:hover {
  color: var(--lalu-red);
}
.terms-toc__item.is-active a {
  color: var(--ink);
  border-left-color: var(--lalu-red);
  font-weight: 500;
}
.terms-toc__num {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--muted);
  padding-top: 2px;
  flex-shrink: 0;
}
.terms-toc__item.is-active .terms-toc__num { color: var(--lalu-red); }
.terms-toc__label { flex: 1; }

/* Reading column: ~680px max */
.terms-body {
  max-width: 680px;
}
.terms-section {
  padding: clamp(32px, 4vw, 56px) 0;
  border-bottom: 1px solid var(--line);
}
.terms-section:first-child { padding-top: 0; }
.terms-section:last-child { border-bottom: none; padding-bottom: 0; }

.terms-section__num {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lalu-red);
  margin-bottom: 14px;
}
.terms-section__head {
  font-family: var(--f-display);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.1;
  font-size: clamp(26px, 3vw, 40px);
  color: var(--ink);
  margin: 0 0 20px;
}
.terms-section__p {
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-2);
  margin: 0 0 16px;
}
.terms-section__p:last-child { margin-bottom: 0; }
.terms-section__p a {
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  transition: border-color 0.15s, color 0.15s;
  word-break: break-word;
}
.terms-section__p a:hover {
  color: var(--lalu-red);
  border-bottom-color: var(--lalu-red);
}

/* Light reveal: legal pages stay calm */
.terms-section.fade-up {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.terms-section.fade-up.is-in {
  opacity: 1;
  transform: translateY(0);
}

/* Questions card: warm neutral closer */
.terms-questions {
  background: var(--paper-2);
  padding: clamp(48px, 6vw, 96px) 0;
  border-top: 1px solid var(--line);
}
.terms-questions__card {
  max-width: 680px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: clamp(32px, 4vw, 56px);
}
.terms-questions__eye {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lalu-red);
  margin-bottom: 14px;
}
.terms-questions__head {
  font-family: var(--f-sans);
  font-weight: 500;
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
  color: var(--ink);
}
.terms-questions__body {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0 0 24px;
  max-width: 52ch;
}
.terms-questions__links {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.terms-questions__mail {
  font-family: var(--f-sans);
  font-size: clamp(16px, 1.4vw, 20px);
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s, color 0.15s;
}
.terms-questions__mail:hover {
  color: var(--lalu-red);
  border-bottom-color: var(--lalu-red);
}
.terms-questions__contact {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}
.terms-questions__contact:hover { color: var(--lalu-red); }

/* Anchor offset so links land below sticky nav */
.terms-section {
  scroll-margin-top: calc(var(--nav-h, 72px) + 20px);
}
