/* Legal pages (/privacy/ /privasi/ /terms/ /syarat/ /dpa/ /dpa/en/), generated by scripts/build-legal.cjs.
   Tokens, container, nav and type follow the live redesign kit (/kit/kit.min.css, source redesign-drafts/site-v5/kit/kit.css).
   Fonts are the files the live site already serves from /kit/fonts/ (Inter and JetBrains Mono, latin subset, SIL OFL 1.1). */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 500; font-display: swap; src: url(/kit/fonts/inter-latin.woff2) format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400 500; font-display: swap; src: url(/kit/fonts/jetbrains-mono-latin.woff2) format("woff2"); }

:root {
  color-scheme: light;
  --paper: #F5F4F0; --paper-2: #FBFAF7; --ink: #141413; --muted: #6F6B64;
  --hair: #E2DED5; --hair-2: #D3CDC2; --accent: #C2492E; --accent-ink: #A93D25;
  --pad: 40px; --maxw: 1520px; --nav-h: 76px; --toc-w: 260px; --col-gap: 56px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --f-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.6 var(--f-sans); font-feature-settings: "cv11", "ss03";
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
b, strong { font-weight: 500; }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
.mono, .label, .lang { font-family: var(--f-mono); font-size: 12px; line-height: 1.5; letter-spacing: .02em; }
.label { text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.skip { position: fixed; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 14px; font: 500 14px/1 var(--f-sans); text-decoration: none; }
.skip:focus { top: 16px; }

/* nav: same bar as the redesign pages (brand, links, language, demo button) */
.top { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid var(--hair); }
.top__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--nav-h); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 28px; height: 28px; }
.brand__word { font: 500 14px/1 var(--f-sans); letter-spacing: .32em; margin-right: -.32em; }
.top__links { display: flex; gap: 32px; font-size: 15px; letter-spacing: -.005em; }
.top__links a { position: relative; padding: 6px 0; text-decoration: none; }
.top__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: 100% 50%; transition: transform .6s var(--ease); }
.top__links a:hover::after { transform: scaleX(1); transform-origin: 0 50%; }
.top__end { display: flex; align-items: center; gap: 24px; }
.lang { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--muted); }
.lang > span[aria-hidden] { display: block; width: 1px; height: 12px; background: var(--hair-2); }
.lang a { padding: 4px 2px; text-decoration: none; }
.lang a:hover, .lang [aria-current] { color: var(--ink); }
.btn { display: inline-flex; align-items: center; height: 40px; padding: 0 18px; border-radius: 999px; background: var(--ink); color: var(--paper); font: 500 14px/1 var(--f-sans); letter-spacing: -.01em; text-decoration: none; white-space: nowrap; transition: background-color .5s var(--ease); }
.btn:hover { background: #2a2926; }

/* compact document head: eyebrow, title, then version line and language switch on one row */
.head { padding: 36px 0 24px; border-bottom: 1px solid var(--hair); margin-bottom: 32px; }
.idx { display: flex; align-items: center; gap: 14px; margin: 0 0 14px; }
.idx i { display: block; width: 56px; height: 1px; background: currentColor; }
.head h1 { margin: 0; font-weight: 500; font-size: clamp(32px, 3.4vw, 52px); line-height: 1.04; letter-spacing: -.035em; text-wrap: balance; }
.head__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; margin-top: 14px; }
.meta { margin: 0; color: var(--muted); }
.meta strong { color: var(--ink); }
.banner { margin: 16px 0 0; padding: 10px 16px; border-left: 3px solid var(--accent); background: var(--paper-2); font-size: 15px; line-height: 1.5; }

/* layout: contents column + document, the document takes all remaining width */
.layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; padding-bottom: 56px; }
.toc { display: none; }
.toc ol, .toc-m ol { list-style: none; margin: 0; padding: 0; }
.toc a, .toc-m a { display: block; padding: 4px 0; font-size: 14px; line-height: 1.4; color: var(--muted); text-decoration: none; }
.toc a:hover, .toc-m a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.toc-m { border-bottom: 1px solid var(--hair); }
.toc-m summary { min-height: 44px; display: flex; align-items: center; justify-content: space-between; cursor: pointer; list-style: none; }
.toc-m summary::-webkit-details-marker { display: none; }
.toc-m summary::after { content: "+"; font-size: 16px; color: var(--ink); }
.toc-m[open] summary::after { content: "\2212"; }
.toc-m ol { padding: 0 0 12px; }
@media (min-width: 1000px) {
  .layout { grid-template-columns: var(--toc-w) minmax(0, 1fr); gap: var(--col-gap); }
  .toc { display: block; position: sticky; top: calc(var(--nav-h) + 24px); align-self: start; max-height: calc(100vh - var(--nav-h) - 48px); overflow-y: auto; padding-right: 8px; }
  .toc__h { margin: 0 0 8px; }
  .toc-m { display: none; }
}
@media (max-width: 999px) {
  .head { margin-bottom: 0; }
}

/* document body: no measure cap, text runs to the container edge */
.doc { min-width: 0; overflow-wrap: break-word; }
.doc h2 { margin: 2rem 0 .6rem; font-weight: 500; font-size: clamp(22px, 1.7vw, 27px); line-height: 1.2; letter-spacing: -.025em; }
.doc h2:first-child { margin-top: 0; }
.doc h3 { margin: 1.3rem 0 .4rem; font-weight: 500; font-size: 18px; line-height: 1.3; letter-spacing: -.012em; }
.doc p, .doc ul, .doc ol, .doc blockquote { margin: 0 0 .7em; }
.doc .clause { position: relative; padding-left: 3.2em; }
.doc .clause-no { position: absolute; left: 0; top: .2em; font: 400 13px/1.5 var(--f-mono); color: var(--muted); }
.doc .clause + ul, .doc .clause + ol { margin-left: 3.2em; }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li { margin-bottom: .3em; padding-left: .2em; }
.doc li::marker { color: var(--muted); }
.doc a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.doc a:hover { color: var(--ink); }
.doc code { font: .88em var(--f-mono); background: var(--paper-2); border: 1px solid var(--hair); padding: 0 4px; border-radius: 3px; }
.doc blockquote { padding: 2px 0 2px 16px; border-left: 2px solid var(--hair-2); color: var(--muted); }
.doc hr { border: 0; border-top: 1px solid var(--hair); margin: 1.5em 0; }
mark.ph { background: #F6E3A1; color: var(--ink); padding: 0 3px; border-radius: 2px; font: .84em var(--f-mono); overflow-wrap: anywhere; }
.table-wrap { margin: .4em 0 1em; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--hair); background: var(--paper-2); }
.table-wrap:focus-visible { outline-offset: 2px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.45; }
.doc th, .doc td { padding: 7px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--hair); }
.doc th { font: 500 11px/1.4 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.doc tr:last-child td { border-bottom: 0; }
.doc td:first-child { min-width: 9em; }

/* footer */
.foot { border-top: 1px solid var(--hair); }
.foot__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 32px; padding-top: 18px; padding-bottom: 20px; }
.foot__links { display: flex; flex-wrap: wrap; gap: 6px 24px; margin: 0; padding: 0; list-style: none; font-size: 14px; }
.foot__links a { text-decoration: none; }
.foot__links a:hover, .foot__links a[aria-current] { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.foot__copy { margin: 0; color: var(--muted); }

@media (max-width: 1100px) {
  .top__links { display: none; }
}
@media (max-width: 760px) {
  :root { --pad: 20px; --nav-h: 64px; }
  body { font-size: 16px; }
  .top__in { gap: 14px; }
  .top__end { gap: 14px; }
  .top__end > .lang { display: none; }
  .head { padding: 24px 0 18px; }
  .doc .clause { padding-left: 0; }
  .doc .clause-no { position: static; margin-right: .35em; }
  .doc .clause + ul, .doc .clause + ol { margin-left: 0; }
  .doc table { min-width: 520px; font-size: 14px; }
  .doc th, .doc td { padding: 6px 10px; }
}
@media (max-width: 380px) {
  .brand__word { display: none; }
}

@media print {
  @page { margin: 18mm 16mm; }
  body { background: #fff; color: #000; font-size: 10.5pt; line-height: 1.5; }
  .skip, .top__links, .top__end, .head .lang, .toc, .toc-m, .foot__links { display: none !important; }
  .top { position: static; }
  .top, .foot, .head { border: 0; }
  .wrap { max-width: none; padding: 0; }
  .head { padding: 0 0 12pt; margin: 0; }
  .head h1 { font-size: 24pt; }
  .layout { display: block; padding: 0; }
  .doc h2 { font-size: 14pt; break-after: avoid; }
  .doc h3 { font-size: 11.5pt; break-after: avoid; }
  .doc p, .doc li, .doc tr { break-inside: avoid; }
  .doc a { color: #000; }
  .table-wrap { overflow: visible; background: none; border-color: #999; }
  .doc table { min-width: 0; }
  .banner { background: none; border: 1px solid #000; border-left-width: 3px; }
  mark.ph { background: #eee; border: 1px solid #999; }
}

/* the nav carries the language switch above 760px; the header copy is for phones only */
@media (min-width: 761px) { .head .lang { display: none; } }
