/* ===============================
   PharmaProLearn
   =============================== */

.ppl-legal{
  max-width: 980px;
  margin: 56px auto 80px;
  padding: 0 16px;
  position: relative;
}

/* Hero */
.ppl-legal__hero{
  text-align: center;
  margin-bottom: 18px;
  padding: 10px 10px 0;
}

.ppl-legal__badge{
  width: 78px;
  height: 78px;
  margin: 0 auto 12px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;

  background: linear-gradient(135deg, rgba(29,185,84,0.16), rgba(124,58,237,0.12));
  border: 1px solid rgba(29,185,84,0.18);
  box-shadow:
    0 18px 40px rgba(0,0,0,0.08),
    inset 0 1px 0 rgba(255,255,255,0.6);
}

.ppl-legal__badgeRing{
  position: absolute;
  inset: -40%;
  background: conic-gradient(
    from 180deg,
    rgba(29,185,84,0.0),
    rgba(29,185,84,0.22),
    rgba(124,58,237,0.22),
    rgba(245,158,11,0.18),
    rgba(29,185,84,0.0)
  );
  filter: blur(2px);
  opacity: 0.85;
  animation: pplSpin 12s linear infinite;
}

@keyframes pplSpin{ to { transform: rotate(360deg); } }

.ppl-legal__badgeIcon{
  position: relative;
  font-size: 1.6rem;
}

.ppl-legal__title{
  font-size: clamp(2rem, 3vw, 2.45rem);
  letter-spacing: -0.03em;
  color: var(--ppl-mirage);
  margin-bottom: 6px;
  font-weight: 900;
}

.ppl-legal__meta{
  margin: 0;
  color: var(--ppl-text-muted, #64748B);
  font-size: 0.98rem;
}

.ppl-legal__metaStrong{
  color: var(--ppl-text-600, #475569);
  font-weight: 800;
}

.ppl-legal__lead{
  margin: 12px auto 0;
  max-width: 60ch;
  color: var(--ppl-text-600, #475569);
  font-size: 1.05rem;
  line-height: 1.6;
}

.ppl-legal__divider{
  width: 100%;
  height: 1px;
  margin: 18px auto 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(29,185,84,0.28),
    rgba(124,58,237,0.22),
    rgba(245,158,11,0.18),
    transparent
  );
}

/* Card */
.ppl-legal__card{
  border-radius: 22px;
  padding: 18px 18px 6px;

  background: rgba(255,255,255,0.86);
  border: 1px solid rgba(255,255,255,0.38);
  box-shadow:
    0 30px 70px rgba(0,0,0,0.10),
    inset 0 1px 0 rgba(255,255,255,0.55);
  backdrop-filter: blur(10px);
}

/* Sections */
.ppl-legal__section{
  padding: 18px 8px;
  border-bottom: 1px solid rgba(229,231,235,0.8);
}

.ppl-legal__section:last-child{
  border-bottom: none;
  padding-bottom: 10px;
}

.ppl-legal__section h2{
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
  color: var(--ppl-text-900, #0f172a);
  font-weight: 900;
}

.ppl-legal__section p{
  color: var(--ppl-text-600, #475569);
  line-height: 1.75;
  margin: 0;
}

.ppl-legal__section strong{
  color: var(--ppl-text-900, #0f172a);
}

/* Lists */
.ppl-legal__list{
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  display: grid;
  gap: 10px;
}

.ppl-legal__list > li{
  position: relative;
  padding-left: 28px;
  color: var(--ppl-text-600, #475569);
  line-height: 1.7;
}

.ppl-legal__list > li::before{
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 16px;
  height: 16px;
  border-radius: 6px;
  background: var(--ppl-deep-sea-green);
  box-shadow: 0 0 0 6px rgba(29,185,84,0.12);
}

.ppl-legal__note{
  margin-top: 10px;
  padding: 12px 12px;
  border-radius: 16px;
  background: rgba(124,58,237,0.06);
  border: 1px solid rgba(124,58,237,0.16);
}

.ppl-legal__sublist{
  list-style: none;
  padding: 10px 0 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.ppl-legal__sublist li{
  position: relative;
  padding-left: 24px;
}

.ppl-legal__sublist li::before{
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--ppl-blaze-orange);
  font-weight: 900;
}

/* Links */
.ppl-legal__link{
  color: var(--ppl-deep-sea-green);
  font-weight: 900;
  text-decoration: none;
  transition: color 160ms ease, transform 160ms ease;
}
.ppl-legal__link:hover{
  text-decoration: underline;
  transform: translateY(-1px);
}

/* Footer */
.ppl-legal__footer{
  display: flex;
  justify-content: center;
  margin-top: 16px;
}

/* Reveals */
.js-reveal{
  opacity: 0;
  transform: translateY(14px);
  filter: blur(6px);
  transition:
    opacity 700ms cubic-bezier(.2,.8,.2,1),
    transform 700ms cubic-bezier(.2,.8,.2,1),
    filter 700ms cubic-bezier(.2,.8,.2,1);
  will-change: transform, opacity, filter;
}
.js-reveal.is-in{
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

@media (prefers-reduced-motion: reduce){
  .ppl-legal__badgeRing{ animation: none; }
  .js-reveal{ opacity: 1; transform: none; filter: none; transition: none; }
}

/* Dark Mode */
html[data-theme="dark"] .ppl-legal{
  color: rgba(232,241,245,0.94);
}

html[data-theme="dark"] .ppl-legal__title,
html[data-theme="dark"] .ppl-legal__meta,
html[data-theme="dark"] .ppl-legal__metaStrong,
html[data-theme="dark"] .ppl-legal__lead,
html[data-theme="dark"] .ppl-legal__section h2,
html[data-theme="dark"] .ppl-legal__section p,
html[data-theme="dark"] .ppl-legal__section strong,
html[data-theme="dark"] .ppl-legal__list > li,
html[data-theme="dark"] .ppl-legal__sublist li{
  color: rgba(232,241,245,0.94);
}

html[data-theme="dark"] .ppl-legal__card{
  background: #1a2a33;
  border-color: rgba(232,241,245,0.2);
  box-shadow: 0 24px 54px rgba(0,0,0,0.28);
}

html[data-theme="dark"] .ppl-legal__section{
  border-bottom-color: rgba(232,241,245,0.16);
}

html[data-theme="dark"] .ppl-legal__note{
  background: rgba(255,88,4,0.15);
  border-color: rgba(255,88,4,0.35);
}

html[data-theme="dark"] .ppl-legal__link{
  color: #8ad6d9;
}
