/* ============================================
   LYNKVA — legal.css
   Halaman kebijakan (syarat, privasi, konten,
   cookie). Dokumen panjang yang harus enak
   dibaca: satu kolom teks sempit, daftar isi
   lengket di kiri, semuanya memakai token
   design system landing page.
   ============================================ */

/* ---------- Hero ---------- */
.lg-hero {
  padding: clamp(4rem, 9vw, 7rem) 0 clamp(2rem, 4vw, 3rem);
  text-align: center;
}

.lg-eyebrow {
  display: inline-block;
  margin-bottom: 1.2rem;
  padding: 0.375rem 1rem;
  border-radius: var(--r-pill);
  background: var(--pill-gray);
  font-size: var(--t-small);
  color: var(--text-gray-2);
}

/* version + effective date — the part that makes consent provable later */
.lg-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 0.75rem;
  margin-top: 1.5rem;
}

.lg-meta span {
  padding: 0.3125rem 0.75rem;
  border-radius: var(--r-pill);
  background: var(--pill-gray);
  font-size: var(--t-small);
  color: var(--text-gray-2);
}

.lg-meta .lg-version {
  background: var(--accent-tint);
  color: var(--accent-hover);
  font-weight: 500;
}

/* ---------- Two-column layout ---------- */
.lg {
  display: grid;
  grid-template-columns: 15.625rem minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.lg-nav {
  position: sticky;
  top: 6rem;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 7.5rem);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.lg-nav .label {
  margin-bottom: 0.9rem;
  font-size: var(--t-small);
  color: var(--text-gray);
}

.lg-nav a {
  padding: 0.4375rem 0;
  border-bottom: 1px solid transparent;
  color: var(--text-gray-2);
  font-size: var(--t-small);
  line-height: 1.45;
  text-decoration: none;
  transition: color 0.15s ease;
}

.lg-nav a:hover {
  color: var(--ink);
}

/* ---------- Document body ---------- */
.lg-doc {
  max-width: 44rem;
}

.lg-doc section + section {
  margin-top: clamp(2.25rem, 4vw, 3rem);
}

.lg-doc h2 {
  margin-bottom: 0.9rem;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  /* keeps the anchor clear of the sticky header */
  scroll-margin-top: 6.5rem;
}

.lg-doc h3 {
  margin: 1.75rem 0 0.6rem;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--ink-2);
}

.lg-doc p,
.lg-doc li {
  color: var(--text-gray-2);
  font-size: var(--t-body);
  line-height: 1.72;
}

.lg-doc p + p {
  margin-top: 0.9rem;
}

.lg-doc ul,
.lg-doc ol {
  margin: 0.9rem 0 0;
  padding-left: 1.35rem;
}

.lg-doc li + li {
  margin-top: 0.5rem;
}

.lg-doc a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.lg-doc a:hover {
  color: var(--accent-hover);
}

.lg-doc strong {
  color: var(--ink-2);
  font-weight: 600;
}

/* definition list for the glossary section */
.lg-defs {
  margin-top: 1rem;
  padding: 0;
  list-style: none;
}

.lg-defs li {
  padding: 0.75rem 0;
  border-top: 1px solid var(--line-dot);
}

.lg-defs li:last-child {
  border-bottom: 1px solid var(--line-dot);
}

.lg-defs b {
  display: block;
  margin-bottom: 0.15rem;
  color: var(--ink-2);
  font-weight: 600;
}

/* callout for the clauses that carry real legal weight */
.lg-note {
  margin-top: 1.1rem;
  padding: 1.1rem 1.25rem;
  border-radius: 1rem;
  background: var(--card-gray);
}

.lg-note p {
  color: var(--ink-2);
}

.lg-note--accent {
  background: var(--accent-tint);
}

.lg-note--accent p {
  color: var(--accent-hover);
}

/* ---------- Where consent actually happens ---------- */
.lg-consent {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding: clamp(1.5rem, 3vw, 2rem);
  border: 1px solid var(--line-dot);
  border-radius: 1.5rem;
}

.lg-consent h2 {
  margin-bottom: 0.75rem;
}

.lg-consent p {
  color: var(--text-gray-2);
}

/* ---------- Closing CTA ---------- */
.lg-cta {
  margin: 0 var(--edge) clamp(2rem, 4vw, 3rem);
  padding: clamp(2.5rem, 6vw, 4.5rem) var(--gutter);
  border-radius: var(--r-panel);
  background: var(--card-gray);
  text-align: center;
}

.lg-cta h2 {
  max-width: 34rem;
  margin: 0 auto;
  font-size: var(--t-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.12;
  color: var(--ink);
}

.lg-cta h2 .muted {
  color: var(--head-gray);
}

.lg-cta p {
  max-width: 30rem;
  margin: 1.1rem auto 0;
  color: var(--text-gray);
  font-size: var(--t-body);
  line-height: 1.6;
}

.lg-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-top: 1.75rem;
}

.lg-cta-note {
  font-size: var(--t-small);
  color: var(--text-gray);
}

/* ---------- Mobile ---------- */
@media (max-width: 60rem) {
  .lg {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }

  /* the index becomes a plain block above the text — sticky is useless here */
  .lg-nav {
    position: static;
    max-height: none;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--line-dot);
    overflow: visible;
  }

  .lg-doc {
    max-width: none;
  }
}
