/* ==========================================================
   Riverport Business Club - Code of Practice
   Document page: hero > terms panel (grey bg, white document) > footer
   ========================================================== */

.cp-doc {
  max-width: 1200px; margin-inline: auto;
  background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  padding: clamp(1.75rem, 5vw, 3.5rem) clamp(1.25rem, 5vw, 3.75rem);
  border-top: 4px solid var(--brand);
}
.cp-doc__head { margin-bottom: clamp(1.75rem, 4vw, 2.5rem); }
.cp-doc__eyebrow { display: inline-flex; align-items: center; gap: 0.5rem; margin-bottom: 0.75rem; font-size: 0.85rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--brand-deep); }
.cp-doc__title { font-size: var(--fs-h2); font-weight: 800; line-height: 1.2; margin: 0 0 0.9rem; }
.cp-doc__head .rp-rule { margin-bottom: 0; }

/* Sections */
.cp-block { padding-block: clamp(1.4rem, 3vw, 1.9rem); border-top: 1px solid var(--grey-line); scroll-margin-top: calc(var(--header-h) + 1rem); }
.cp-block:first-of-type { border-top: 0; padding-top: 0; }
.cp-block:last-of-type { padding-bottom: 0; }
.cp-block__title { display: flex; align-items: center; gap: 0.85rem; font-size: clamp(1.15rem, 1.05rem + 0.45vw, 1.4rem); font-weight: 800; margin: 0 0 1.1rem; }
.cp-badge {
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--charcoal); color: var(--white); font-size: 1rem; font-weight: 800;
  box-shadow: 0 0 0 4px var(--brand-tint);
}
.cp-block__icon { margin-left: auto; color: var(--brand); font-size: 1rem; opacity: 0.85; }

/* Clauses - number hangs in its own column for easy scanning */
.cp-list { list-style: none; margin: 0; padding: 0 0 0 calc(40px + 0.85rem); display: grid; gap: 0.9rem; }
.cp-list li { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); gap: 0.6rem; align-items: baseline; }
.cp-num { font-weight: 800; font-size: 0.95rem; color: var(--brand-deep); font-variant-numeric: tabular-nums; }
.cp-text p { margin: 0; line-height: 1.75; max-width: 95ch; }
.cp-text strong { font-weight: 700; color: #2b2b2b; }

.cp-note {
  margin-top: 0.85rem; padding: 0.9rem 1.1rem;
  background: var(--brand-tint); border-radius: var(--radius); border-left: 3px solid var(--brand);
}
.cp-note__label { display: inline-flex; align-items: center; gap: 0.4rem; margin-bottom: 0.3rem; font-size: 0.8rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--charcoal); }
.cp-note__label i { color: var(--brand); }
.cp-note p { margin: 0; font-size: 0.95rem; line-height: 1.65; }

@media (max-width: 640px) {
  .cp-list { padding-left: 0; }
  .cp-block__icon { display: none; }
  .cp-badge { width: 34px; height: 34px; font-size: 0.9rem; }
}
@media (max-width: 400px) {
  .cp-list li { grid-template-columns: 2.3rem minmax(0, 1fr); gap: 0.4rem; }
}
