/* ==========================================================================
   PT Buka Jalan Inovasi: Legal & Policy Pages Stylesheet (legal.css)
   ========================================================================== */
:root {
  --paper: #FAF9F5;
  --surface: #FFFFFF;
  --kotak: #F2F0E8;
  --ink: #182232;
  --redup: #465262;
  --slate: #2E435C;
  --slate-hover: #1E2D40;
  --hijau: #1F6647;
  --hijau-tua: #154A33;
  --marka: #E4B32A;
  --garis: #DDD9CE;
  --focus-ring: #1E40AF;
}

[data-theme="dark"] {
  --paper: #0F1622;
  --surface: #172030;
  --kotak: #1E293B;
  --ink: #F3F5F8;
  --redup: #B4C0CF;
  --slate: #93C5FD;
  --slate-hover: #BFDBFE;
  --hijau: #34D399;
  --hijau-tua: #6EE7B7;
  --marka: #E4B32A;
  --garis: #2C3A4F;
  --focus-ring: #E4B32A;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-padding-top: 1.25rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 1.04rem;
  line-height: 1.7;
  overflow-x: clip;
}

a[href], button, summary {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

.marka {
  height: 4px;
  background: repeating-linear-gradient(90deg, var(--marka) 0 36px, transparent 36px 56px);
  background-color: #1E2D40;
}

header.situs {
  border-bottom: 1px solid var(--garis);
  background: var(--surface);
  padding: 0.9rem 1.25rem;
}

header.situs .dalam,
main,
footer.situs .dalam {
  max-width: 48rem;
  margin: 0 auto;
}

header.situs .dalam {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-weight: 800;
  font-size: 1.02rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.015em;
}

.wordmark:hover {
  color: var(--slate);
}

.bahasa {
  font-size: 0.9rem;
  color: var(--redup);
  margin: 0;
}

.bahasa strong {
  color: var(--ink);
}

.bahasa a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 4px;
  font-weight: 700;
}

main {
  padding: 2.4rem 1.25rem 3.2rem;
}

h1 {
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  line-height: 1.22;
  margin: 0 0 0.4rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 1.24rem;
  line-height: 1.3;
  margin: 2.3rem 0 0.65rem;
  color: var(--slate);
}

h3 {
  font-size: 1.06rem;
  margin: 1.75rem 0 0.5rem;
}

p {
  margin: 0.75rem 0;
}

ul, ol {
  padding-left: 1.35rem;
  margin: 0.75rem 0;
}

li {
  margin: 0.38rem 0;
}

a {
  color: var(--slate);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--slate-hover);
}

.tanggal {
  color: var(--redup);
  font-size: 0.94rem;
  margin-bottom: 1.6rem;
}

.ringkas {
  border-left: 4px solid #1F6647;
  background: var(--kotak);
  padding: 1rem 1.15rem;
  margin: 1.4rem 0;
  border-radius: 0 8px 8px 0;
}

.ringkas p:first-child { margin-top: 0; }
.ringkas p:last-child { margin-bottom: 0; }

.tabel {
  overflow-x: auto;
  margin: 1.1rem 0;
  border-radius: 8px;
}

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.94rem;
  min-width: 32rem;
  background: var(--surface);
}

th {
  text-align: left;
  background: var(--kotak);
  color: var(--ink);
  font-weight: 700;
}

th, td {
  border: 1px solid var(--garis);
  padding: 0.6rem 0.75rem;
  vertical-align: top;
  line-height: 1.5;
}

.tombol {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  background: #1F6647;
  color: #FFFFFF;
  text-decoration: none;
  font-weight: 700;
  padding: 0.7rem 1.35rem;
  border-radius: 8px;
  margin: 0.45rem 0;
}

.tombol:hover {
  background: #154A33;
  color: #FFFFFF;
}

footer.situs {
  border-top: 1px solid var(--garis);
  background: var(--kotak);
  padding: 1.8rem 1.25rem 2.2rem;
  color: var(--redup);
  font-size: 0.92rem;
}

footer.situs p {
  margin: 0.35rem 0;
}

footer.situs .legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin: 0.6rem 0;
}

footer.situs .legal-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

@media (max-width: 520px) {
  body { font-size: 0.98rem; }
  main { padding: 1.8rem 1rem 2.5rem; }
}
