/* Halaman dasar (Privasi & Terma): gaya sama dengan laman utama, dioptimumkan untuk bacaan panjang. */
:root {
  --leaf: #58cc02; --leaf-deep: #46a302; --leaf-soft: #e9f9d8; --sky: #1cb0f6; --sun: #ffc800;
  --ink: #26332b; --muted: #5f6f64; --line: #dfe8d6; --bg: #f7faf2; --card: #ffffff;
  --font-display: 'Nunito', ui-rounded, 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Nunito', ui-rounded, 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --leaf: #6fd61c; --leaf-deep: #58cc02; --leaf-soft: #1f3a16; --sky: #4cc3fa; --sun: #ffd23f;
  --ink: #eef5ea; --muted: #a9b8ad; --line: #2c3d35; --bg: #111b20; --card: #1a2a31; color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 17px; line-height: 1.65; font-weight: 600; -webkit-font-smoothing: antialiased; }
a { color: var(--leaf-deep); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 900; margin: 0; text-wrap: balance; letter-spacing: -.02em; line-height: 1.15; }
p, ul { margin: 0; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 8px; }
html:not(.ms) .l-ms, html.ms .l-en { display: none !important; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--bg); }
header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(10px); border-bottom: 2px solid var(--line); }
.nav { display: flex; align-items: center; gap: 16px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-weight: 900; font-size: 22px; color: var(--leaf-deep); }
.logo-mark { width: 36px; height: 36px; border-radius: 11px; background: var(--leaf); display: grid; place-items: center; box-shadow: 0 3px 0 var(--leaf-deep); }
.nav-end { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.theme-btn { width: 40px; height: 40px; border-radius: 12px; border: 2px solid var(--line); background: var(--card); color: var(--muted); display: grid; place-items: center; cursor: pointer; }
.theme-btn .i-sun, :root[data-theme="dark"] .theme-btn .i-moon { display: none; }
:root[data-theme="dark"] .theme-btn .i-sun { display: block; }
.lang { display: flex; border: 2px solid var(--line); border-radius: 12px; padding: 3px; background: var(--card); }
.lang button { border: 0; background: none; font: inherit; font-weight: 800; font-size: 13px; color: var(--muted); padding: 5px 10px; border-radius: 9px; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--leaf-soft); color: var(--leaf-deep); }

.doc { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; padding-block: 48px 80px; align-items: start; }
.toc { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 4px; font-size: 15px; }
.toc b { font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.toc a { text-decoration: none; color: var(--muted); font-weight: 800; padding: 5px 0; }
.toc a:hover { color: var(--ink); }
.doc-head { display: flex; flex-direction: column; gap: 12px; padding-bottom: 28px; margin-bottom: 8px; border-bottom: 2px solid var(--line); }
.eyebrow { font-family: var(--font-mono); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--leaf-deep); }
.doc-head h1 { font-size: clamp(34px, 5vw, 50px); }
.meta { color: var(--muted); font-size: 15px; }
.summary { background: var(--leaf-soft); border-radius: 18px; padding: 18px 22px; display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.summary b { font-family: var(--font-display); font-size: 16px; }
.summary ul { padding-left: 20px; display: flex; flex-direction: column; gap: 4px; font-size: 16px; }
article section { padding-top: 32px; display: flex; flex-direction: column; gap: 12px; max-width: 70ch; scroll-margin-top: 90px; }
article h2 { font-size: 24px; }
article ul { padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
article p, article li { color: var(--ink); }
.muted { color: var(--muted); }
.fill { background: color-mix(in srgb, var(--sun) 30%, transparent); border-radius: 6px; padding: 0 6px; font-family: var(--font-mono); font-size: .9em; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
.tbl { overflow-x: auto; border: 2px solid var(--line); border-radius: 16px; background: var(--card); }
th, td { text-align: left; padding: 12px 14px; border-bottom: 2px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
th { font-family: var(--font-display); font-weight: 900; background: var(--bg); }

footer { padding-block: 32px calc(32px + env(safe-area-inset-bottom, 0px)); border-top: 2px solid var(--line); color: var(--muted); font-size: 15px; }
.foot { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
.foot nav { display: flex; flex-wrap: wrap; gap: 18px; margin-left: auto; }
.foot a { text-decoration: none; font-weight: 800; color: var(--muted); }
.foot a:hover, .foot a[aria-current] { color: var(--ink); }

@media (max-width: 860px) {
  .doc { grid-template-columns: 1fr; gap: 24px; padding-block: 32px 64px; }
  .toc { position: static; flex-direction: row; flex-wrap: wrap; gap: 6px 16px; }
  .toc b { width: 100%; margin: 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
