/* ═══════════════════════════════════════════════════════════
   Reypub Digital — Legal Pages (Terms of Use / Privacy Policy)
   Modern, fully responsive, card-based layout with live search.
   No sliders. Works on phone + desktop.
   ═══════════════════════════════════════════════════════════ */

:root {
  --lp-primary: #0B5FD4;
  --lp-primary-dark: #084bb0;
  --lp-primary-light: #e8f0fe;
  --lp-accent: #10b981;
  --lp-text: #0f172a;
  --lp-text-light: #475569;
  --lp-muted: #64748b;
  --lp-border: #e5e9f0;
  --lp-bg: #f4f7fb;
  --lp-card-bg: #ffffff;
  --lp-radius: 16px;
  --lp-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
  --lp-shadow-hover: 0 12px 36px rgba(11, 95, 212, 0.14);
}

/* ── Page wrapper ─────────────────────────────────────────── */
.lp-page {
  background: var(--lp-bg);
  color: var(--lp-text);
  font-family: 'Inter', 'Plus Jakarta Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.lp-container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Hero (compact, NO slider) ────────────────────────────── */
.lp-hero {
  position: relative;
  background: linear-gradient(135deg, #0b1e3d 0%, #0B5FD4 55%, #1477e0 100%);
  color: #fff;
  padding: 84px 0 96px;
  overflow: hidden;
}
.lp-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 15% 20%, rgba(255,255,255,0.10) 0, transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(16,185,129,0.14) 0, transparent 40%);
  pointer-events: none;
}
.lp-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}
.lp-breadcrumb {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 18px;
}
.lp-breadcrumb a { color: rgba(255,255,255,0.85); text-decoration: none; }
.lp-breadcrumb a:hover { color: #fff; text-decoration: underline; }
.lp-breadcrumb i { font-size: 0.65rem; opacity: 0.6; }

.lp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(6px);
  color: #fff;
  padding: 7px 18px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.lp-hero h1 {
  font-size: clamp(1.9rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 16px;
  letter-spacing: -0.5px;
}
.lp-hero p.lp-hero-sub {
  font-size: clamp(0.98rem, 2.4vw, 1.12rem);
  color: rgba(255,255,255,0.9);
  line-height: 1.7;
  margin: 0 auto 26px;
  max-width: 720px;
}
.lp-hero-meta {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 22px;
  font-size: 0.86rem;
  color: rgba(255,255,255,0.82);
}
.lp-hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
.lp-hero-meta i { color: #8fd0ff; }

/* ── Search bar (sticky on top) ───────────────────────────── */
.lp-searchwrap {
  position: sticky;
  top: 0;
  z-index: 60;
  margin-top: -44px;
  padding-bottom: 8px;
}
.lp-search-card {
  position: relative;
  background: var(--lp-card-bg);
  border: 1px solid var(--lp-border);
  border-radius: var(--lp-radius);
  box-shadow: 0 12px 40px rgba(11, 95, 212, 0.18);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.lp-search-field {
  position: relative;
  flex: 1 1 320px;
  display: flex;
  align-items: center;
}
.lp-search-field > i.lp-search-icon {
  position: absolute;
  left: 16px;
  color: var(--lp-primary);
  font-size: 1rem;
  pointer-events: none;
}
.lp-search-input {
  width: 100%;
  border: 1.5px solid var(--lp-border);
  background: #f8fafc;
  border-radius: 12px;
  padding: 13px 44px 13px 44px;
  font-size: 0.98rem;
  color: var(--lp-text);
  outline: none;
  transition: border-color .18s, box-shadow .18s, background .18s;
  font-family: inherit;
}
.lp-search-input::placeholder { color: var(--lp-muted); }
.lp-search-input:focus {
  border-color: var(--lp-primary);
  background: #fff;
  box-shadow: 0 0 0 4px var(--lp-primary-light);
}
.lp-search-clear {
  position: absolute;
  right: 12px;
  border: none;
  background: #e2e8f0;
  color: var(--lp-text-light);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  transition: background .15s;
}
.lp-search-clear:hover { background: #cbd5e1; }
.lp-search-clear.show { display: flex; }
.lp-search-count {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--lp-primary);
  white-space: nowrap;
  padding: 0 6px;
}
.lp-search-noresult {
  display: none;
  text-align: center;
  padding: 48px 20px;
  color: var(--lp-muted);
}
.lp-search-noresult.show { display: block; }
.lp-search-noresult i { font-size: 2rem; color: var(--lp-border); margin-bottom: 12px; display:block; }

/* highlight matched keyword */
mark.lp-hl { background: #fff2a8; color: inherit; padding: 0 2px; border-radius: 3px; }

/* ── Main body layout ─────────────────────────────────────── */
.lp-body { padding: 34px 0 80px; }
.lp-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 34px;
  align-items: start;
}

/* ── Table of contents (sidebar) ──────────────────────────── */
.lp-toc {
  position: sticky;
  top: 96px;
  background: var(--lp-card-bg);
  border: 1px solid var(--lp-border);
  border-radius: var(--lp-radius);
  box-shadow: var(--lp-shadow);
  padding: 20px 18px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}
.lp-toc h2 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--lp-muted);
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.lp-toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.lp-toc li { margin: 0; }
.lp-toc a {
  display: block;
  counter-increment: toc;
  font-size: 0.86rem;
  color: var(--lp-text-light);
  text-decoration: none;
  padding: 7px 10px;
  border-radius: 8px;
  line-height: 1.35;
  transition: background .15s, color .15s;
}
.lp-toc a::before {
  content: counter(toc) ". ";
  color: var(--lp-primary);
  font-weight: 700;
}
.lp-toc a:hover { background: var(--lp-primary-light); color: var(--lp-primary); }

/* ── Notice / intro banner ────────────────────────────────── */
.lp-notice {
  background: linear-gradient(135deg, #fff7e6, #fff1d6);
  border: 1px solid #f2c14e;
  border-left: 5px solid #e09b00;
  border-radius: 12px;
  padding: 18px 22px;
  margin-bottom: 26px;
  color: #5a3d00;
  font-size: 0.96rem;
  line-height: 1.65;
}
.lp-notice i { margin-right: 8px; color: #b87900; }
.lp-notice a { color: #b87900; font-weight: 700; text-decoration: none; }
.lp-notice a:hover { text-decoration: underline; }

.lp-intro-card {
  background: var(--lp-card-bg);
  border: 1px solid var(--lp-border);
  border-radius: var(--lp-radius);
  box-shadow: var(--lp-shadow);
  padding: 26px 28px;
  margin-bottom: 26px;
}
.lp-intro-card p { margin: 0 0 12px; color: var(--lp-text-light); line-height: 1.75; font-size: 1rem; }
.lp-intro-card p:last-child { margin-bottom: 0; }

/* ── Clause cards ─────────────────────────────────────────── */
.lp-cards { display: flex; flex-direction: column; gap: 20px; }

.lp-card {
  background: var(--lp-card-bg);
  border: 1px solid var(--lp-border);
  border-radius: var(--lp-radius);
  box-shadow: var(--lp-shadow);
  padding: 26px 28px;
  scroll-margin-top: 96px;
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.lp-card:hover { box-shadow: var(--lp-shadow-hover); border-color: #cdddf5; }
.lp-card.lp-hidden { display: none; }

.lp-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.lp-card-num {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--lp-primary), #2b86f0);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 6px 16px rgba(11,95,212,0.28);
}
.lp-card-title {
  font-size: clamp(1.1rem, 2.4vw, 1.3rem);
  font-weight: 700;
  color: var(--lp-text);
  margin: 0;
  line-height: 1.3;
}
.lp-card-title .lp-secno { color: var(--lp-primary); font-weight: 800; margin-right: 4px; }

.lp-card-body { color: var(--lp-text-light); font-size: 1rem; line-height: 1.78; }
.lp-card-body p { margin: 0 0 12px; }
.lp-card-body p:last-child { margin-bottom: 0; }
.lp-card-body strong { color: var(--lp-text); }
.lp-card-body a { color: var(--lp-primary); font-weight: 600; text-decoration: none; }
.lp-card-body a:hover { text-decoration: underline; }
.lp-card-body ul { margin: 12px 0; padding-left: 22px; }
.lp-card-body ul li { margin-bottom: 8px; }
.lp-card-body ul.lp-cols { columns: 2; column-gap: 32px; }
.lp-card-body h4 {
  font-size: 1.02rem; font-weight: 700; color: var(--lp-text);
  margin: 18px 0 8px;
}

/* highlight-tag for updated key figures */
.lp-badge {
  display: inline-block;
  background: var(--lp-primary-light);
  color: var(--lp-primary);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 50px;
  margin-left: 8px;
  vertical-align: middle;
}

/* callout inside card (fees etc.) */
.lp-callout {
  background: #f0f6ff;
  border: 1px solid #cfe0fb;
  border-radius: 12px;
  padding: 14px 18px;
  margin: 14px 0;
  font-size: 0.96rem;
  color: var(--lp-text);
}
.lp-callout.warn { background: #fff5f5; border-color: #fecaca; }
.lp-callout i { color: var(--lp-primary); margin-right: 8px; }
.lp-callout.warn i { color: #dc2626; }

/* contact card */
.lp-contact-card {
  background: linear-gradient(135deg, #f8fafc, #eef4fd);
  border: 1px solid var(--lp-border);
  border-radius: var(--lp-radius);
  padding: 24px 26px;
  margin-top: 8px;
}
.lp-contact-card p { margin: 0 0 10px; }
.lp-contact-card i { color: var(--lp-primary); margin-right: 8px; width: 18px; text-align:center; }

.lp-footer-note {
  text-align: center;
  font-size: 0.86rem;
  color: var(--lp-muted);
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--lp-border);
}

/* back-to-top */
.lp-top-btn {
  position: fixed;
  right: 22px;
  bottom: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--lp-primary);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(11,95,212,0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .2s, transform .2s, visibility .2s;
  z-index: 55;
}
.lp-top-btn.show { opacity: 1; visibility: visible; transform: translateY(0); }
.lp-top-btn:hover { background: var(--lp-primary-dark); }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 960px) {
  .lp-layout { grid-template-columns: 1fr; gap: 22px; }
  .lp-toc {
    position: static;
    max-height: none;
    order: -1;
  }
  .lp-toc ol { columns: 2; column-gap: 20px; }
}

@media (max-width: 640px) {
  .lp-hero { padding: 60px 0 78px; }
  .lp-searchwrap { margin-top: -40px; }
  .lp-search-card { padding: 12px; }
  .lp-search-count { width: 100%; text-align: center; order: 3; }
  .lp-card { padding: 20px 18px; }
  .lp-card-head { gap: 12px; }
  .lp-card-num { width: 40px; height: 40px; font-size: 1rem; }
  .lp-card-body ul.lp-cols { columns: 1; }
  .lp-toc ol { columns: 1; }
  .lp-intro-card { padding: 20px; }
  .lp-body { padding: 26px 0 64px; }
}
