/* ============================================================
   99Hosts — Dokumen Legal (scoped .lg-page)
   Diadaptasi dari blok Paymenter PageBuilder ke CMS:
   - Variabel tema Paymenter diganti nilai konkret CMS (primary #0948b3).
   - Hack full-width Paymenter & margin negatif dihapus (di CMS
     halaman berada di alur normal setelah header.tpl).
   Dipakai bersama oleh: terms-of-service, privacy-policy, sla,
   acceptable-usage-policy.
   ============================================================ */
:where(.lg-page) {
  --lg-primary: 218 90% 37%;   /* #0948b3 — brand 99Hosts */
  --lg-accent:  168 78% 42%;   /* teal aksen */
  --lg-base:    222 47% 11%;
  --lg-muted:   220 12% 46%;
  --lg-line:    220 16% 90%;
  --lg-bg:      210 40% 98%;
  --lg-surface: 0 0% 100%;
  --lg-radius:  16px;
  --lg-shadow-sm: 0 1px 2px rgba(15,23,42,.06), 0 1px 3px rgba(15,23,42,.05);
  --lg-shadow: 0 4px 6px -2px rgba(15,23,42,.05), 0 16px 34px -14px rgba(15,23,42,.16);
}
.lg-page, .lg-page *, .lg-page *::before, .lg-page *::after { box-sizing: border-box; }
.lg-page { color: hsl(var(--lg-base)); line-height: 1.7; width: 100%; -webkit-font-smoothing: antialiased; }
.lg-page :where(h1, h2, h3, h4, p, ul, ol, figure, blockquote, table) { margin: 0; padding: 0; }
.lg-page :where(ul, ol) { list-style: none; }
.lg-page :where(a) { text-decoration: none; color: inherit; }
.lg-page :where(img, svg) { display: inline-block; vertical-align: middle; max-width: 100%; }
.lg-page :where([id]) { scroll-margin-top: 96px; }
.lg-page .lg-wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* Hero disamakan dengan website utama (.hp-hero): gradient biru gelap,
   teks putih, padding-atas besar agar bebas dari navbar fixed-top transparan. */
.lg-hero { position: relative; overflow: hidden; color: #fff; padding: 9.5rem 0 3.75rem;
  background: linear-gradient(125deg, #0948b3 0%, #062f78 100%); }
.lg-hero-inner { max-width: 820px; }
.lg-doctype { display: inline-flex; align-items: center; gap: 9px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: #fff; background: rgba(255,255,255,.14); padding: 8px 15px; border-radius: 999px; margin-bottom: 20px; }
.lg-hero h1 { font-size: clamp(2rem, 4.4vw, 3rem); font-weight: 850; letter-spacing: -.03em; line-height: 1.08; margin: 0 0 16px; color: #fff; }
.lg-hero-lead { font-size: 1.1rem; color: rgba(255,255,255,.85); max-width: 660px; margin: 0 0 24px; }
.lg-meta { display: flex; flex-wrap: wrap; gap: 10px; }
.lg-metapill { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; color: #fff;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); padding: 8px 14px; border-radius: 999px; }
.lg-metapill i { color: #fff; }

.lg-doc { display: grid; grid-template-columns: 264px 1fr; gap: 50px; align-items: start; padding: 56px 0 40px; }
.lg-doc > * { min-width: 0; }
.lg-toc { position: sticky; top: 96px; background: hsl(var(--lg-surface)); border: 1px solid hsl(var(--lg-line)); border-radius: var(--lg-radius); padding: 22px 18px; box-shadow: var(--lg-shadow-sm); }
.lg-toc-h { display: flex; align-items: center; gap: 9px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: hsl(var(--lg-muted)); margin: 0 0 14px; padding: 0 8px; }
.lg-toc-h i { color: hsl(var(--lg-accent)); }
.lg-toc ol { counter-reset: lgtoc; display: grid; gap: 2px; }
.lg-toc a { position: relative; display: flex; gap: 11px; align-items: baseline; padding: 8px 10px; border-radius: 9px; font-size: 13.5px; font-weight: 600; color: hsl(var(--lg-muted)); border-left: 2px solid transparent; transition: background .15s, color .15s, border-color .15s; }
.lg-toc a::before { counter-increment: lgtoc; content: counter(lgtoc, decimal-leading-zero); font-family: ui-monospace, Menlo, monospace; font-size: 11px; font-weight: 800; color: hsl(var(--lg-accent)); flex: none; }
.lg-toc a:hover { background: hsl(var(--lg-accent) / .08); color: hsl(var(--lg-base)); border-left-color: hsl(var(--lg-accent)); }

.lg-body { counter-reset: lgsec; max-width: 780px; }
.lg-intro { font-size: 1.06rem; color: hsl(var(--lg-base)); background: hsl(var(--lg-accent) / .05); border: 1px solid hsl(var(--lg-accent) / .18); border-radius: var(--lg-radius); padding: 22px 24px; margin-bottom: 8px; }
.lg-sec { padding-top: 16px; margin-top: 34px; border-top: 1px solid hsl(var(--lg-line)); }
.lg-sec:first-of-type { border-top: 0; }
.lg-sec h2 { display: flex; align-items: center; gap: 14px; font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; margin: 0 0 14px; }
.lg-sec h2::before { counter-increment: lgsec; content: counter(lgsec, decimal-leading-zero); flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  background: linear-gradient(140deg, hsl(var(--lg-accent) / .18), hsl(var(--lg-accent) / .05)); color: hsl(var(--lg-accent)); font-size: 14px; font-weight: 850; font-family: ui-monospace, Menlo, monospace; }
.lg-sec:target h2::before { box-shadow: 0 0 0 4px hsl(var(--lg-accent) / .18); }
.lg-sec p { color: hsl(var(--lg-muted)); margin: 0 0 14px; }
.lg-sec p strong { color: hsl(var(--lg-base)); font-weight: 700; }
/* Link teks di dalam isi memakai warna brand utama (bukan inherit dari reset). */
.lg-intro a, .lg-sec p a, .lg-sec li a { color: hsl(var(--lg-primary)); font-weight: 600; }
.lg-intro a:hover, .lg-sec p a:hover, .lg-sec li a:hover { text-decoration: underline; }
.lg-sec h3 { font-size: 1.02rem; font-weight: 800; margin: 20px 0 10px; }
.lg-list { display: grid; gap: 10px; margin: 0 0 16px; }
.lg-list li { position: relative; padding-left: 26px; color: hsl(var(--lg-muted)); }
.lg-list li::before { content: ""; position: absolute; left: 4px; top: 10px; width: 7px; height: 7px; border-radius: 50%; background: hsl(var(--lg-accent)); }
.lg-list li strong { color: hsl(var(--lg-base)); font-weight: 700; }
.lg-xlist li::before { content: "\00d7"; top: 0; left: 3px; width: auto; height: auto; border-radius: 0; background: none; color: hsl(var(--lg-accent)); font-weight: 900; font-size: 15px; line-height: 1.6; }
.lg-note { display: flex; gap: 13px; background: hsl(var(--lg-accent) / .07); border: 1px solid hsl(var(--lg-accent) / .25); border-left: 4px solid hsl(var(--lg-accent)); border-radius: 12px; padding: 16px 18px; margin: 4px 0 16px; }
.lg-note i { color: hsl(var(--lg-accent)); font-size: 17px; margin-top: 2px; flex: none; }
.lg-note p { margin: 0; font-size: 14px; color: hsl(var(--lg-base)); }
.lg-top { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: hsl(var(--lg-accent)); margin-top: 4px; }

.lg-table-wrap { overflow-x: auto; border: 1px solid hsl(var(--lg-line)); border-radius: var(--lg-radius); box-shadow: var(--lg-shadow-sm); margin: 6px 0 18px; background: hsl(var(--lg-surface)); }
.lg-table { width: 100%; border-collapse: collapse; min-width: 520px; }
.lg-table th { text-align: left; font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: hsl(var(--lg-muted)); background: hsl(var(--lg-bg)); padding: 13px 18px; border-bottom: 1px solid hsl(var(--lg-line)); white-space: nowrap; }
.lg-table td { padding: 13px 18px; font-size: 14px; border-bottom: 1px solid hsl(var(--lg-line)); color: hsl(var(--lg-muted)); }
.lg-table tbody tr:last-child td { border-bottom: 0; }
.lg-table tbody tr:hover { background: hsl(var(--lg-accent) / .05); }
.lg-table td strong { color: hsl(var(--lg-base)); font-weight: 700; }
.lg-thi { color: hsl(var(--lg-accent)); font-weight: 850; }

.lg-extra { background: hsl(var(--lg-bg)); border-top: 1px solid hsl(var(--lg-line)); padding: 60px 0 76px; }
.lg-more-h { text-align: center; font-size: 1.3rem; font-weight: 800; margin: 0 0 6px; }
.lg-more-sub { text-align: center; color: hsl(var(--lg-muted)); margin: 0 0 30px; }
.lg-more { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 40px; }
.lg-more > * { min-width: 0; }
.lg-more-card { display: flex; align-items: center; gap: 14px; background: hsl(var(--lg-surface)); border: 1px solid hsl(var(--lg-line)); border-radius: var(--lg-radius); padding: 20px; transition: transform .18s ease, box-shadow .18s ease, border-color .18s; }
.lg-more-card:hover { transform: translateY(-4px); box-shadow: var(--lg-shadow); border-color: hsl(var(--lg-primary) / .4); }
.lg-more-ic { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; background: hsl(var(--lg-primary) / .1); color: hsl(var(--lg-primary)); font-size: 19px; }
.lg-more-card b { display: block; font-size: 15px; font-weight: 800; }
.lg-more-card span { font-size: 12.5px; color: hsl(var(--lg-muted)); }
.lg-contact { text-align: center; max-width: 640px; margin: 0 auto; background: hsl(var(--lg-surface)); border: 1px solid hsl(var(--lg-line)); border-radius: var(--lg-radius); padding: 34px 30px; box-shadow: var(--lg-shadow-sm); }
.lg-contact h3 { font-size: 1.2rem; font-weight: 800; margin: 0 0 8px; }
.lg-contact p { color: hsl(var(--lg-muted)); margin: 0 0 20px; }
.lg-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.lg-page .lg-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 11px; font-weight: 700; font-size: 14.5px; cursor: pointer; border: 1.5px solid transparent; color: hsl(var(--lg-base)); transition: transform .16s ease, background .16s, border-color .16s, color .16s; }
.lg-page .lg-btn:hover { transform: translateY(-2px); }
.lg-page .lg-btn--primary { background: hsl(var(--lg-primary)); color: #fff; }
.lg-page .lg-btn--primary:hover { color: #fff; }
.lg-page .lg-btn--wa { background: #25D366; color: #fff; }
.lg-page .lg-btn--wa:hover { color: #fff; }

@media (max-width: 900px) {
  .lg-doc { grid-template-columns: 1fr; gap: 26px; }
  .lg-toc { position: static; top: auto; }
  .lg-more { grid-template-columns: 1fr; }
}
@media (max-width: 640px) { .lg-hero { padding: 8rem 0 40px; } }
