/* =========
   PAGES THEME (Legal / Static Pages)
   ========= */

:root {
  --pg-bg: #ffffff;
  --pg-muted: #64748b; /* slate-500/600 */
  --pg-text: #0f172a; /* slate-900 */
  --pg-border: #e2e8f0; /* slate-200 */
  --pg-card: #ffffff;
  --pg-soft: #f8fafc; /* slate-50 */
  --pg-hero: #020617; /* slate-950 */
  --pg-hero2: #0b1220; /* dark */
  --pg-accent: #0ea5e9; /* sky-500 */
  --pg-radius: 24px;
}

.pages {
  background: var(--pg-bg);
  color: var(--pg-text);
}

.pages .container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

.pages .hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 36px;
  color: #fff;
  background: linear-gradient(
    135deg,
    var(--pg-hero),
    var(--pg-hero2),
    var(--pg-hero)
  );
}

.pages .hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
      420px 420px at 12% 30%,
      rgba(14, 165, 233, 0.22),
      transparent 60%
    ),
    radial-gradient(
      460px 460px at 88% 0%,
      rgba(16, 185, 129, 0.16),
      transparent 60%
    );
  pointer-events: none;
}

.pages .hero-inner {
  position: relative;
}

.pages .breadcrumb {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
}
.pages .breadcrumb a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}
.pages .breadcrumb a:hover {
  color: rgba(255, 255, 255, 0.95);
}

.pages .badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.pages .badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #34d399; /* emerald */
}

.pages .title {
  margin-top: 14px;
  font-size: 34px;
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: -0.02em;
}
@media (min-width: 640px) {
  .pages .title {
    font-size: 40px;
  }
}

.pages .subtitle {
  margin-top: 12px;
  max-width: 720px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.7;
}

.pages .meta-row {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.pages .pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
}

.pages .section {
  padding: 28px 0 56px;
}

.pages .grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 1024px) {
  .pages .grid {
    grid-template-columns: 360px 1fr;
    gap: 24px;
    align-items: start;
  }
}

.pages .card {
  background: var(--pg-card);
  border: 1px solid var(--pg-border);
  border-radius: var(--pg-radius);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.04);
}

.pages .card-pad {
  padding: 22px;
}
@media (min-width: 640px) {
  .pages .card-pad {
    padding: 26px;
  }
}

.pages .sticky {
  position: sticky;
  top: 112px;
}

.pages .toc-title {
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 12px;
}

.pages .toc a {
  display: block;
  padding: 10px 12px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 14px;
  color: #334155; /* slate-700 */
  text-decoration: none;
}
.pages .toc a:hover {
  background: var(--pg-soft);
  color: #0f172a;
}

.pages .toc a.is-active {
  background: #fff;
  border: 1px solid var(--pg-border);
  color: #0f172a;
}

.pages .hint {
  background: var(--pg-soft);
  border: 1px solid var(--pg-border);
  border-radius: 18px;
  padding: 14px;
  color: #334155;
  font-size: 14px;
  line-height: 1.65;
}

.pages .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 14px;
  font-weight: 800;
  font-size: 14px;
  border: 1px solid var(--pg-border);
  background: #fff;
  color: #334155;
  text-decoration: none;
}
.pages .btn:hover {
  background: var(--pg-soft);
}

.pages .btn-primary {
  background: #0f172a;
  border-color: #0f172a;
  color: #fff;
}
.pages .btn-primary:hover {
  background: #111c33;
}

.pages .content h2 {
  font-size: 18px;
  font-weight: 900;
  margin: 26px 0 10px;
  scroll-margin-top: 120px;
}
.pages .content p {
  margin: 12px 0;
  color: #334155;
  line-height: 1.75;
}
.pages .content ul {
  margin: 12px 0 12px 18px;
  padding-left: 14px;
}
.pages .content li {
  margin: 8px 0;
  color: #334155;
  line-height: 1.75;
}

.pages .callout {
  border-radius: 20px;
  padding: 16px;
  border: 1px solid var(--pg-border);
  background: var(--pg-soft);
}
.pages .callout strong {
  color: var(--pg-text);
}

.pages .danger {
  border-color: #fecaca; /* rose-200 */
  background: #fff1f2; /* rose-50 */
}
.pages .danger .danger-title {
  font-weight: 900;
  color: #881337;
  margin-bottom: 6px;
}
.pages .danger .chips {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 12px;
}
@media (min-width: 640px) {
  .pages .danger .chips {
    grid-template-columns: 1fr 1fr;
  }
}
.pages .danger .chip {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid #fecaca;
  border-radius: 16px;
  padding: 12px 14px;
  color: #7f1d1d;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.45;
}

.pages .footer-note {
  margin-top: 16px;
  color: #64748b;
  font-size: 13px;
  line-height: 1.65;
}

/* PRINT */
@media print {
  header,
  .pages .sticky,
  .pages .breadcrumb,
  .pages .meta-row,
  .pages .btn,
  .pages .hint {
    display: none !important;
  }
  .pages .hero {
    padding: 24px 0 10px;
    background: #fff;
    color: #000;
  }
  .pages .hero::before {
    display: none;
  }
  .pages .subtitle {
    color: #111;
  }
  .pages .card {
    box-shadow: none;
  }
  .pages .grid {
    grid-template-columns: 1fr !important;
  }
}

.pg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 14px;
  font-weight: 800;
  font-size: 14px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #334155;
  text-decoration: none;
}
.pg-btn:hover {
  background: #f8fafc;
}
.pg-btn-primary {
  background: #0f172a;
  border-color: #0f172a;
  color: #fff;
}
.pg-btn-primary:hover {
  background: #111c33;
}

/* ====== MOBILE HEADER WRAP ====== */
@media (max-width: 480px) {
  header .container {
    padding: 0 12px !important;
  }
  header a[style*="Ace Net Payment"] {
    gap: 10px !important;
  }
}

/* ====== ASIDE STICKY: hanya desktop ====== */
.pages .sticky {
  position: static; /* default mobile */
  top: auto;
}

@media (min-width: 1024px) {
  .pages .sticky {
    position: sticky;
    top: 112px;
  }
}

/* ====== MOBILE NAV DRAWER ====== */
.mnav {
  display: none;
  padding: 10px 16px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(2, 6, 23, 0.92);
  backdrop-filter: blur(10px);
}

.mnav.is-open {
  display: block;
}

.mnav-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  gap: 8px;
}

.mnav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
}

.mnav-link.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
}

.mnav-cta {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 14px;
  border-radius: 14px;
  font-weight: 900;
  text-decoration: none;
  background: #fff;
  color: #0f172a;
}

