/* ============================================================
   Gaya halaman legal publik Sila Sejiwa
   (kebijakan privasi, syarat & ketentuan, panduan komunitas,
   hapus akun). Dipakai oleh halaman di folder privasi/, syarat/,
   panduan-komunitas/, dan hapus-akun/.
   Palet sama dengan panel admin (assets/styles.css).
   ============================================================ */

:root {
  --bg: #fffaf6;
  --surface: #ffffff;
  --primary: #ff7a8a;
  --primary-deep: #e4576c;
  --gold: #f6c87a;
  --mint: #7fd9c0;
  --lavender: #b9a3f0;
  --text: #3d2e3c;
  --muted: #8b7c88;
  --faint: #b4a7b0;
  --line: #f1e4e8;
  --radius: 22px;
  --shadow: 0 24px 50px -32px rgba(228, 87, 108, 0.45);
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial,
    sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(160deg, #fffbf7 0%, #ffeef1 55%, #f6efff 100%);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ------------------------------------------------------------ header */
.site-head {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  padding: 14px clamp(16px, 5vw, 48px);
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: linear-gradient(120deg, #ff7a8a, #ff9f6b);
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  box-shadow: 0 12px 22px -14px rgba(228, 87, 108, 0.95);
}

.brand-text strong {
  display: block;
  font-size: 15px;
  letter-spacing: 0.2px;
}
.brand-text small {
  display: block;
  font-size: 11px;
  color: var(--faint);
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.site-nav a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  text-decoration: none;
  transition: background 0.16s ease, color 0.16s ease;
}
.site-nav a:hover { background: #fff1f3; color: var(--primary-deep); }
.site-nav a[aria-current="page"] {
  background: linear-gradient(120deg, #ff7a8a, #ff9f6b);
  color: #fff;
}

/* ------------------------------------------------------------- main */
.wrap {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: clamp(28px, 6vw, 56px) clamp(16px, 5vw, 32px) 48px;
}

.eyebrow {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--primary-deep);
}

.wrap h1 {
  margin: 0 0 10px;
  font-size: clamp(28px, 4.4vw, 40px);
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.subtitle {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 16px;
  max-width: 60ch;
}

.updated {
  display: inline-block;
  margin: 0 0 28px;
  padding: 6px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--faint);
  font-size: 12px;
  font-weight: 700;
}

/* -------------------------------------------------------- doc card */
.doc {
  padding: clamp(20px, 4vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.doc section + section {
  margin-top: 28px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.doc h2 {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.35;
  color: var(--text);
}

.doc p {
  margin: 0 0 10px;
  color: #4b3949;
}
.doc p:last-child { margin-bottom: 0; }

.doc ul {
  margin: 8px 0 14px;
  padding: 0;
  list-style: none;
}
.doc ul:last-child { margin-bottom: 0; }

.doc li {
  position: relative;
  margin: 0 0 8px;
  padding: 10px 14px 10px 38px;
  border-radius: 14px;
  background: #fff7f8;
  color: #4b3949;
  font-size: 15px;
}
.doc li::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 19px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(120deg, #ff7a8a, #ff9f6b);
}

.doc a,
.wrap a {
  color: var(--primary-deep);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ------------------------------------------------------- callout/note */
.callout {
  margin: 0 0 26px;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px dashed #ffc9d2;
  background: #fff6f7;
  color: #6a5158;
  font-size: 14px;
}

.callout strong { color: var(--primary-deep); }

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li {
  position: relative;
  margin: 0 0 12px;
  padding: 12px 16px 12px 50px;
  border-radius: 16px;
  background: #fff7f8;
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 14px;
  top: 12px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(120deg, #ff7a8a, #ff9f6b);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  background: linear-gradient(120deg, #ff7a8a, #ff9f6b);
  color: #fff !important;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none !important;
  box-shadow: 0 18px 30px -22px rgba(228, 87, 108, 0.95);
  transition: transform 0.16s ease;
}
.btn:hover { transform: translateY(-1px); }

/* ------------------------------------------------------------ footer */
.site-foot {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 clamp(16px, 5vw, 32px) 56px;
  color: var(--faint);
  font-size: 13px;
}
.site-foot p { margin: 0 0 6px; }
.site-foot a { color: var(--muted); font-weight: 700; text-decoration: none; }
.site-foot a:hover { color: var(--primary-deep); }
.site-foot .foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin-bottom: 10px;
}

@media (max-width: 560px) {
  body { font-size: 15px; }
  .site-head { justify-content: center; text-align: center; }
  .doc li { padding: 10px 12px 10px 34px; }
  .doc li::before { left: 14px; }
}

@media print {
  body { background: #fff; }
  .site-head, .site-foot, .updated { display: none; }
  .doc { border: 0; box-shadow: none; padding: 0; }
}
