/* =========================================================
   Safe Keyboard — Dokumen Legal
   Stylesheet bersama untuk kebijakan-privasi.html,
   syarat-ketentuan.html, dan hapus-akun.html.
   Diselaraskan dengan desain landing page (Plus Jakarta Sans,
   palet hijau brand, kartu putih membulat).
   ========================================================= */

:root {
  --ink: #1a1a1a;
  --ink-soft: #5b6169;
  --ink-muted: #8a9099;

  --paper: #f3f5f2;
  --paper-card: #ffffff;
  --line: #e9e9ea;

  --brand-50: #eef9f0;
  --brand-100: #d7f1dd;
  --brand-300: #7fd097;
  --brand-500: #22a24c;
  --brand-600: #178a3e;
  --brand-700: #116c31;

  /* alias lama, dipakai oleh style inline di beberapa halaman */
  --pine: var(--brand-500);
  --pine-soft: var(--brand-50);
  --pine-light: var(--brand-300);

  --amber: #f59e0b;
  --amber-soft: #fffbeb;
  --amber-text: #92400e;
  --danger: #e23636;

  --shadow-card: 0 4px 24px rgba(16, 32, 20, 0.06);
  --radius: 20px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system,
    "Segoe UI", Roboto, sans-serif;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--brand-100);
  color: var(--brand-700);
}

a {
  color: var(--brand-600);
}

/* ---------- Navigasi dokumen (menyambungkan seluruh halaman) ---------- */

.doc-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  flex-wrap: wrap;
  padding: 12px 24px;
  background: rgba(243, 245, 242, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.doc-nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}
.doc-nav-brand img {
  display: block;
  width: 28px;
  height: 28px;
}

.doc-nav-links {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.doc-nav-links a {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.doc-nav-links a:hover {
  background: var(--brand-50);
  color: var(--brand-700);
}
.doc-nav-links a[aria-current="page"] {
  background: var(--brand-500);
  color: #ffffff;
}

/* ---------- Header ---------- */

header.hero {
  padding: 52px 24px 36px;
  background: linear-gradient(to bottom, var(--brand-50), var(--paper));
  border-bottom: 1px solid var(--line);
}
.hero-inner {
  max-width: 760px;
  margin: 0 auto;
}

.home-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-600);
  text-decoration: none;
  margin-bottom: 18px;
}
.home-link:hover {
  text-decoration: underline;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 16px;
  padding: 5px 12px 5px 10px;
  background: var(--brand-50);
  color: var(--brand-700);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
}
.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--brand-500);
}

h1 {
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

.meta {
  font-size: 13.5px;
  color: var(--ink-soft);
}
.meta a {
  color: var(--brand-600);
  font-weight: 600;
}

.shield-row {
  display: flex;
  gap: 8px;
  margin-top: 22px;
  flex-wrap: wrap;
}
.pill {
  display: inline-flex;
  align-items: center;
  font-size: 12.5px;
  font-weight: 600;
  background: var(--paper-card);
  color: var(--brand-700);
  border: 1px solid var(--brand-100);
  padding: 6px 13px;
  border-radius: 999px;
}

/* ---------- Kolom isi ---------- */

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px 100px;
}

/* ---------- Daftar isi ---------- */

nav.toc {
  margin: 40px 0 8px;
  padding: 22px 24px;
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}
nav.toc p {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 11px;
  color: var(--ink-muted);
  margin: 0 0 12px;
  font-weight: 800;
}
nav.toc ol {
  margin: 0;
  padding-left: 20px;
  columns: 2;
  column-gap: 28px;
  font-size: 14px;
}
nav.toc li {
  margin-bottom: 7px;
  break-inside: avoid;
}
nav.toc a {
  color: var(--ink);
  text-decoration: none;
}
nav.toc a:hover {
  color: var(--brand-700);
  text-decoration: underline;
}

/* ---------- Section ---------- */

section {
  margin-top: 44px;
  scroll-margin-top: 88px;
}
section h2 {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
section h2 .num {
  font-weight: 700;
  font-size: 13px;
  color: #ffffff;
  background: var(--brand-500);
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

h3 {
  font-size: 15.5px;
  font-weight: 700;
  margin: 24px 0 8px;
  color: var(--brand-700);
}
p {
  margin: 0 0 14px;
}
ul {
  margin: 0 0 14px;
  padding-left: 22px;
}
li {
  margin-bottom: 8px;
}
li::marker {
  color: var(--brand-500);
}
strong {
  color: var(--ink);
  font-weight: 700;
}

/* ---------- Kotak sorotan ---------- */

.not-collect {
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  border-radius: 16px;
  padding: 20px 22px;
}
.not-collect p:first-child {
  margin-top: 0;
}
.not-collect ul {
  margin-bottom: 0;
}

.callout {
  border-left: 3px solid var(--amber);
  background: var(--amber-soft);
  padding: 15px 18px;
  border-radius: 0 12px 12px 0;
  font-size: 14px;
  color: var(--amber-text);
}

/* ---------- Tabel ---------- */

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin: 6px 0 16px;
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
th,
td {
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
tr:last-child th,
tr:last-child td {
  border-bottom: 0;
}
th {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  font-weight: 800;
  background: var(--brand-50);
}

/* ---------- Kartu tier (syarat-ketentuan) ---------- */

.tier-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-bottom: 16px;
  background: var(--paper-card);
  box-shadow: var(--shadow-card);
}
.tier-card h3 {
  margin-top: 0;
  font-size: 16px;
  color: var(--ink);
}
.tier-card table {
  margin-bottom: 12px;
}

/* ---------- Langkah bernomor (hapus-akun) ---------- */

ol.steps {
  padding-left: 0;
  list-style: none;
  counter-reset: step;
  margin: 0 0 14px;
}
ol.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 46px;
  margin-bottom: 18px;
}
ol.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -1px;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--brand-500);
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.retain-table td:first-child {
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}

/* ---------- Kartu kontak ---------- */

.contact-card {
  background: #161616;
  color: #e7ece8;
  border-radius: var(--radius);
  padding: 26px 26px;
  margin-top: 10px;
}
.contact-card h3 {
  color: var(--brand-300);
  margin-top: 0;
}
.contact-card a {
  color: #ffffff;
  font-weight: 700;
}
.contact-card .role {
  font-size: 13px;
  color: #a9b7ac;
}

/* ---------- Catatan penutup (syarat-ketentuan) ---------- */

em.closing {
  display: block;
  margin-top: 48px;
  padding: 20px 22px;
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  border-radius: 16px;
  font-style: italic;
  font-size: 14px;
  color: var(--ink-soft);
}

/* ---------- Footer ---------- */

footer {
  margin-top: 64px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--ink-soft);
  text-align: center;
}
.doc-foot-links {
  display: flex;
  gap: 8px 18px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.doc-foot-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 600;
}
.doc-foot-links a:hover {
  color: var(--brand-700);
}
a.back-top {
  display: inline-block;
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--brand-600);
  font-weight: 600;
}

@media (max-width: 560px) {
  nav.toc ol {
    columns: 1;
  }
  header.hero {
    padding: 36px 20px 28px;
  }
  .doc-nav {
    padding: 10px 18px;
  }
}
