/* /terms and /privacy. The document sits in one pane and flows into columns,
   so it reads left to right across the screen instead of scrolling down. */

.shell-wide { width: min(1240px, calc(100% - 2.5rem)); }

.lg-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-bottom: clamp(1rem, 3vh, 1.75rem);
  --d: 60ms;
}

.lg-mark {
  display: inline-block;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  margin-bottom: 0.4rem;
}

.lg-title {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.8rem, min(5vw, 6vh), 2.6rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text);
}

.lg-updated {
  margin: 0.45rem 0 0;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--dim);
}

/* Segmented switch between the two documents. */
.lg-tabs {
  display: flex;
  padding: 0.25rem;
  border: 1px solid var(--rim);
  border-radius: 11px;
  background: var(--pane);
  font-family: var(--mono);
  font-size: 0.78rem;
}

.lg-tab {
  color: var(--muted);
  text-decoration: none;
  padding: 0.45rem 0.95rem;
  border-radius: 8px;
  transition: color 140ms ease, background-color 140ms ease;
}

.lg-tab:hover { color: var(--text); }

.lg-tab[aria-current="page"] {
  color: var(--ink);
  background: var(--skin);
}

.lg-tab:focus-visible {
  outline: 2px solid var(--skin);
  outline-offset: 2px;
}

.lg-doc {
  columns: 4 210px;
  column-gap: 1.8rem;
  column-rule: 1px solid var(--rim);
  padding: 1rem 1.4rem;
  background: var(--pane);
  border: 1px solid var(--rim);
  border-radius: 14px;
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.9);
  --d: 200ms;
}

.lg-sec {
  break-inside: avoid;
  margin-bottom: 0.75rem;
}

.lg-sec:last-child { margin-bottom: 0; }

.lg-sec h2 {
  margin: 0 0 0.3rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: -0.01em;
  color: var(--skin);
}

.lg-sec p {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.48;
  color: var(--muted);
}

.lg-sec a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: rgba(255, 158, 87, 0.5);
  text-underline-offset: 2px;
}

.lg-sec a:hover { color: var(--skin); }

@media (max-width: 560px) {
  .lg-tabs { width: 100%; }
  .lg-tab { flex: 1; text-align: center; }
}
