/* ═══════════════════════════════════════════════════════════
   Refund & Cancellation Policy — page-scoped styles
   Scoped under .rp so /privacy-policy and /terms (which share
   privacy-policy.css) are untouched.
   Palette follows the portal: slate neutrals + blue-600 accent,
   plus green/rose used ONLY as refundable / non-refundable state.
   ═══════════════════════════════════════════════════════════ */

.rp {
    --rp-ink: #0f172a;
    --rp-ink-2: #334155;
    --rp-ink-3: #64748b;
    --rp-line: #e2e8f0;
    --rp-line-2: #cbd5e1;
    --rp-surface: #ffffff;
    --rp-bg: #f6f9fc;
    --rp-accent: #2563eb;
    --rp-accent-dark: #1d4ed8;
    --rp-accent-soft: #eff6ff;
    --rp-ok: #047857;
    --rp-ok-soft: #ecfdf5;
    --rp-ok-line: #a7f3d0;
    --rp-no: #be123c;
    --rp-no-soft: #fff1f2;
    --rp-no-line: #fecdd3;
    --rp-shadow: 0 1px 2px rgba(15,23,42,.05), 0 12px 32px rgba(15,23,42,.07);

    background: var(--rp-bg);
    color: var(--rp-ink);
    padding: 56px 0 72px;
    /* No font-family here on purpose: inherit Cairo from body. */
}

.rp__container { max-width: 940px; margin: 0 auto; padding: 0 20px; }

/* Digits and phone numbers must never be reordered by the RTL algorithm. */
.rp-num { direction: ltr; unicode-bidi: isolate; font-variant-numeric: tabular-nums; }

/* ── Hero ─────────────────────────────────────────────── */
.rp__hero { text-align: center; margin-bottom: 34px; }

.rp__icon {
    width: 66px; height: 66px; margin: 0 auto 20px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--rp-accent), #1e40af);
    color: #fff; font-size: 1.6rem;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 10px 26px rgba(37,99,235,.32);
}

.rp__title {
    font-size: clamp(1.7rem, 1.25rem + 1.8vw, 2.4rem);
    font-weight: 800; letter-spacing: -.01em; line-height: 1.25;
    margin: 0 0 12px; color: var(--rp-ink); text-wrap: balance;
}

.rp__lede {
    max-width: 62ch; margin: 0 auto 18px;
    font-size: 1.02rem; line-height: 1.85; color: var(--rp-ink-2);
}

.rp__updated {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 14px; border-radius: 999px;
    background: var(--rp-surface); border: 1px solid var(--rp-line);
    font-size: .84rem; color: var(--rp-ink-3);
}
.rp__updated i { color: var(--rp-accent); }

/* ── Key numbers (the three that people actually look for) ── */
.rp__facts {
    display: grid; gap: 12px; margin-bottom: 30px;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.rp-fact {
    background: var(--rp-surface); border: 1px solid var(--rp-line);
    border-radius: 16px; padding: 18px 20px; box-shadow: var(--rp-shadow);
    display: flex; align-items: center; gap: 14px;
}

.rp-fact__icon {
    width: 42px; height: 42px; flex: none; border-radius: 12px;
    display: grid; place-items: center; font-size: 1.05rem;
    background: var(--rp-accent-soft); color: var(--rp-accent);
}
.rp-fact--ok .rp-fact__icon { background: var(--rp-ok-soft); color: var(--rp-ok); }

.rp-fact__num {
    display: block; font-size: 1.65rem; font-weight: 800; line-height: 1.1;
    color: var(--rp-ink);
}
.rp-fact__unit { font-size: .95rem; font-weight: 600; color: var(--rp-ink-2); }
.rp-fact__lbl { display: block; margin-top: 3px; font-size: .84rem; color: var(--rp-ink-3); line-height: 1.5; }

/* ── Sections ─────────────────────────────────────────── */
.rp__body {
    background: var(--rp-surface); border: 1px solid var(--rp-line);
    border-radius: 20px; box-shadow: var(--rp-shadow); overflow: hidden;
}

.rp-sec { padding: 26px 30px; border-bottom: 1px solid var(--rp-line); }
.rp-sec:last-child { border-bottom: 0; }

.rp-sec__head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }

.rp-sec__step {
    width: 30px; height: 30px; flex: none; border-radius: 9px;
    display: grid; place-items: center;
    background: var(--rp-accent-soft); color: var(--rp-accent);
    font-size: .84rem; font-weight: 700;
}

.rp-sec__title {
    margin: 0; font-size: 1.16rem; font-weight: 700; color: var(--rp-ink); line-height: 1.4;
}

.rp-sec__body p { margin: 0 0 12px; font-size: .97rem; line-height: 1.9; color: var(--rp-ink-2); }
.rp-sec__body p:last-child { margin-bottom: 0; }

/* Pull-out for the single rule everything hinges on */
.rp-callout {
    display: flex; align-items: flex-start; gap: 12px;
    margin: 14px 0; padding: 14px 16px; border-radius: 13px;
    background: var(--rp-accent-soft);
    border: 1px solid #bfdbfe;
    border-inline-start: 4px solid var(--rp-accent);
    font-size: .95rem; line-height: 1.75; color: #1e3a8a;
}
.rp-callout i { color: var(--rp-accent); margin-top: 3px; flex: none; }
.rp-callout strong { font-weight: 700; }

/* ── Refundable vs not — state is in the icon AND the colour ── */
.rp-rules { display: grid; gap: 10px; margin: 14px 0 0; padding: 0; list-style: none; }

.rp-rule {
    display: flex; align-items: flex-start; gap: 11px;
    padding: 12px 14px; border-radius: 12px;
    font-size: .93rem; line-height: 1.7;
    border: 1px solid var(--rp-line);
    background: #fcfdff; color: var(--rp-ink-2);
}

.rp-rule__mark {
    width: 22px; height: 22px; flex: none; border-radius: 50%;
    display: grid; place-items: center; font-size: .68rem; color: #fff; margin-top: 2px;
}

/* Numbered steps: the order is real (submit → review → refund), so it earns numbers. */
.rp-rule__mark--step {
    background: var(--rp-accent);
    font-size: .74rem; font-weight: 700; font-variant-numeric: tabular-nums;
}

.rp-rule--yes { background: var(--rp-ok-soft); border-color: var(--rp-ok-line); }
.rp-rule--yes .rp-rule__mark { background: var(--rp-ok); }
.rp-rule--no { background: var(--rp-no-soft); border-color: var(--rp-no-line); }
.rp-rule--no .rp-rule__mark { background: var(--rp-no); }

/* ── Contact ──────────────────────────────────────────── */
.rp-contact { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.rp-contact__item {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 16px; border-radius: 13px;
    background: #fcfdff; border: 1px solid var(--rp-line);
    transition: border-color .15s, box-shadow .15s;
}
.rp-contact__item:hover { border-color: var(--rp-accent); box-shadow: 0 0 0 3px rgba(37,99,235,.10); }

.rp-contact__icon {
    width: 38px; height: 38px; flex: none; border-radius: 11px;
    display: grid; place-items: center; font-size: .98rem;
    background: var(--rp-accent-soft); color: var(--rp-accent);
}
.rp-contact__item--wa .rp-contact__icon { background: #ecfdf5; color: #059669; }

.rp-contact__label { display: block; font-size: .78rem; color: var(--rp-ink-3); margin-bottom: 2px; }
.rp-contact__value { font-size: .94rem; font-weight: 600; color: var(--rp-ink); text-decoration: none; }
.rp-contact__value:hover { color: var(--rp-accent); text-decoration: underline; }

/* ── Footer ───────────────────────────────────────────── */
.rp__foot { text-align: center; margin-top: 28px; }

.rp__back {
    display: inline-flex; align-items: center; gap: 9px;
    padding: 11px 24px; border-radius: 11px;
    background: var(--rp-accent); color: #fff; font-weight: 600; font-size: .95rem;
    text-decoration: none; box-shadow: 0 6px 18px rgba(37,99,235,.28);
    transition: background .15s, transform .15s;
}
.rp__back:hover { background: var(--rp-accent-dark); color: #fff; transform: translateY(-1px); }

.rp :focus-visible { outline: 2px solid var(--rp-accent); outline-offset: 2px; border-radius: 6px; }

@media (max-width: 575.98px) {
    .rp { padding: 36px 0 52px; }
    .rp-sec { padding: 20px 18px; }
    .rp__facts { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .rp *, .rp *::before, .rp *::after { transition-duration: .001ms !important; }
}
