/**
 * Modal Content block — typography for the fixed intro and the legal body.
 *
 * Visual spec from Figma node 4610:5904 (modal "Group 436"):
 *   header   — Open Sans SemiBold 36px, near-black
 *   title    — Open Sans SemiBold 20px, with bottom border (the underline)
 *   subtitle — Open Sans SemiBold 16px
 *   body     — Open Sans Regular 18px / 24px line-height
 *
 * The block lays out as a flex column (intro on top, body below). In the
 * disclaimer modal, surrounding CSS in disclaimer-modal.css constrains the
 * height and gives the body its own scroll; on a standalone page the
 * whole block flows naturally.
 */

.block-modal-content {
  --mc-text:     #0E1A2E;
  --mc-rule:     #4277CC;   /* underline + accent colour, theme highlight blue */
  --mc-rule-w:   1px;
}

.c-modal-content {
  display: flex;
  flex-direction: column;
  font-family: 'Open Sans', sans-serif;
  color: var(--mc-text);
}

/* ---- intro (fixed in modal context, normal flow standalone) ------------ */

.c-modal-content__intro {
  flex-shrink: 0;
}

.c-modal-content__header {
  margin: 0 0 32px 0;
  font-weight: 600;
  font-size: 36px;
  line-height: 1.25;
}

.c-modal-content__title {
  margin: 0;
  padding: 0 0 8px 0;
  border-bottom: var(--mc-rule-w) solid var(--mc-rule);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.25;
}

.c-modal-content__subtitle {
  margin: 16px 0 0 0;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.4;
}

/* ---- legal body (scrollable in modal context, normal flow standalone) --- */

.c-modal-content__body {
  margin-top: 24px;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.4;
}

.c-modal-content__body p:first-child  { margin-top: 0; }
.c-modal-content__body p:last-child   { margin-bottom: 0; }
.c-modal-content__body p + p          { margin-top: 16px; }


/* ---- mobile — tighten typography so the intro fits the viewport ----- */
/* On a phone the 36px header wraps to 3 lines and crowds the visible
 * area inside the disclaimer modal. Scale down everything in the intro
 * proportionally so more legal body remains scrollable. */
@media (max-width: 640px) {
  .c-modal-content__header  {
    font-size: 22px;
    margin-bottom: 16px;
  }
  .c-modal-content__title    { font-size: 18px; }
  .c-modal-content__subtitle { font-size: 14px; }
  .c-modal-content__body     {
    font-size: 16px;
    margin-top: 16px;
  }
}
