/* Policy pages (/termsconditions, /privacypolicy, /refundpolicy): header, sticky "On this page" list, readable text, CTA band.
   Also used by /AffiliateVerify and /Error for their single centred card (.pol-card). */

.pol-hero { position: relative; padding: 64px 0 40px; overflow: hidden; }
.pol-hero::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 360px; pointer-events: none;
  background-image: radial-gradient(circle at 1px 1px, var(--line-2) 1px, transparent 0); background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 0%, #000 10%, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 70% at 50% 0%, #000 10%, transparent 75%);
}
.pol-hero .wrap { position: relative; display: flex; flex-direction: column; gap: 16px; }
.pol-hero .h1 { margin: 0; font-size: 52px; }
.pol-hero .lead { max-width: 760px; }
.pol-hero .lead + .lead { margin-top: -4px; }

.pol-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 56px; align-items: start; padding-bottom: 96px; }

/* ---------- On this page ---------- */
.pol-toc { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 18px; }
.pol-toc details { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 18px 14px; }
.pol-toc summary { list-style: none; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--slate-3); padding: 0 8px 10px; cursor: default; }
.pol-toc summary::-webkit-details-marker { display: none; }
html[lang="ar"] .pol-toc summary { letter-spacing: 0; }
.pol-toc ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.pol-toc ol a {
  display: block; padding: 8px 10px; border-radius: 10px; font-size: 14px; line-height: 1.4; font-weight: 600;
  color: var(--slate); text-decoration: none; border-inline-start: 2px solid transparent; transition: background .2s, color .2s;
}
.pol-toc ol a:hover { background: var(--mist); color: var(--ink); }
.pol-toc ol a[aria-current="true"] { color: var(--red-hover); background: var(--red-tint); border-inline-start-color: var(--red); }
.pol-related { display: flex; flex-direction: column; gap: 8px; padding: 0 8px; font-size: 14px; }
.pol-related b { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--slate-3); }
html[lang="ar"] .pol-related b { letter-spacing: 0; }
.pol-related a { font-weight: 700; text-decoration: none; }

/* ---------- Text ---------- */
.pol-body { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 48px 56px; display: flex; flex-direction: column; gap: 40px; }
.pol-body section { scroll-margin-top: 90px; display: flex; flex-direction: column; gap: 14px; }
.pol-body h2 { font-size: 24px; line-height: 1.3; font-weight: 800; letter-spacing: -0.02em; margin: 0; color: var(--ink); }
html[lang="ar"] .pol-body h2 { letter-spacing: 0; }
.pol-body h3 { font-size: 17px; font-weight: 800; margin: 6px 0 0; color: var(--ink); }
.pol-body p, .pol-body li { font-size: 16px; line-height: 1.75; color: var(--slate); margin: 0; max-width: 72ch; }
.pol-body ul, .pol-body ol.pol-list { margin: 0; padding-inline-start: 22px; display: flex; flex-direction: column; gap: 8px; }
.pol-body li::marker { color: var(--red); }
.pol-body strong { color: var(--ink); font-weight: 700; }
.pol-body a { font-weight: 600; }
.pol-updated { font-size: 14px !important; color: var(--slate-3) !important; padding-top: 6px; }
.pol-note { padding: 16px 18px; border-radius: 14px; background: var(--ground); border: 1px solid var(--line); }

/* Numbered steps (refund process) */
.pol-steps { list-style: none; margin: 4px 0; padding: 0; display: flex; flex-direction: column; gap: 12px; counter-reset: st; }
.pol-steps li { counter-increment: st; display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; border-radius: 16px; background: var(--ground); border: 1px solid var(--line); max-width: none; }
.pol-steps li::before {
  content: counter(st); width: 36px; height: 36px; border-radius: 10px; background: var(--red-tint); color: var(--red);
  display: flex; align-items: center; justify-content: center; font-weight: 800; flex-shrink: 0;
}
.pol-steps.plain li::before { display: none; }
.pol-steps li > span { display: flex; flex-direction: column; gap: 4px; }
.pol-steps b { color: var(--ink); font-size: 16px; }

/* ---------- CTA ---------- */
.pol-cta { padding: 0 24px 96px; }
.pol-cta-box {
  position: relative; overflow: hidden; max-width: 1152px; margin: 0 auto; border-radius: 30px; padding: 64px 32px;
  text-align: center; color: #fff; background: var(--navy-deep); display: flex; flex-direction: column; align-items: center; gap: 18px;
}
.pol-cta-box > * { position: relative; }
.pol-cta-glow {
  position: absolute !important; width: 700px; height: 700px; left: 50%; top: -380px; transform: translateX(-50%);
  border-radius: 50%; background: radial-gradient(circle, rgba(224, 20, 44, .35), rgba(224, 20, 44, 0) 62%);
}
.pol-cta-ecg { position: absolute !important; left: 0; right: 0; bottom: 14px; width: 100%; height: 80px; }
.pol-cta-box .h2 { color: #fff; max-width: 720px; margin: 0; }
.pol-cta-box .lead { color: var(--on-dark); text-align: center; }
.pol-cta-btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 8px 0 0; }
.pol-cta-ticks { list-style: none; margin: 8px 0 40px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: center; font-size: 14px; color: var(--on-dark); }
.pol-cta-ticks li { display: flex; gap: 8px; align-items: center; }
.pol-cta-ticks svg { color: var(--red-light); }

/* ---------- Single centred card (AffiliateVerify, Error) ---------- */
.pol-solo { position: relative; padding: 56px 0 96px; overflow: hidden; }
.pol-solo::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 420px; pointer-events: none;
  background-image: radial-gradient(circle at 1px 1px, var(--line-2) 1px, transparent 0); background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 0%, #000 10%, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 70% at 50% 0%, #000 10%, transparent 75%);
}
.pol-card { position: relative; max-width: 640px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 40px; display: flex; flex-direction: column; gap: 22px; }
.pol-card .h2 { margin: 0; font-size: 36px; }
.pol-card .lead { font-size: 17px; }
.pol-badge { width: 84px; height: 84px; border-radius: 24px; display: flex; align-items: center; justify-content: center; background: var(--red-tint); color: var(--red); }
.pol-badge.ok { background: var(--red); color: #fff; border-radius: 50%; box-shadow: 0 20px 40px -14px rgba(224, 20, 44, .7); }
.pol-card .pol-steps li { background: #fff; }
.pol-card .pol-steps li > span { font-size: 15px; line-height: 1.6; color: var(--slate); }
.pol-foot { display: flex; flex-wrap: wrap; gap: 12px; border-top: 1px solid var(--line); padding-top: 22px; }
.pol-fine { margin: 0; font-size: 14px; color: var(--slate-2); }
.pol-code { font-size: 13px; color: var(--slate-3); }
.pol-code code { font-family: ui-monospace, Consolas, monospace; background: var(--ground); padding: 2px 6px; border-radius: 6px; overflow-wrap: anywhere; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .pol-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .pol-toc { position: static; }
  .pol-toc summary { cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding-bottom: 0; }
  .pol-toc details[open] summary { padding-bottom: 10px; }
  .pol-toc summary::after { content: "+"; font-size: 18px; color: var(--navy); }
  .pol-toc details[open] summary::after { content: "–"; }
  .pol-related { flex-direction: row; flex-wrap: wrap; gap: 8px 16px; align-items: baseline; }
}
@media (max-width: 900px) { .pol-hero .h1 { font-size: 38px; } }
@media (max-width: 600px) {
  .pol-hero { padding: 40px 0 28px; }
  .pol-body { padding: 28px 20px; gap: 32px; border-radius: 20px; }
  .pol-body h2 { font-size: 20px; }
  .pol-body p, .pol-body li { font-size: 15px; }
  .pol-cta { padding: 0 16px 72px; }
  .pol-cta-box { padding: 48px 20px; }
  .pol-card { padding: 28px 20px; }
  .pol-card .h2 { font-size: 28px; }
  .pol-foot .btn { flex: 1 1 auto; }
}
