/* SidaSport — صفحه‌ی قوانین و مقررات */
body.sd-terms-page{ background:linear-gradient(#f4faff,#fff 420px); }
body.sd-terms-page .wc-page-wrap > .page-title,
body.sd-terms-page .wc-page-wrap > .shop-breadcrumb{ display:none; }
body.sd-terms-page .wc-page-wrap .page-content{ max-width:none; }

.tr-page{
  --tr-line:#dff0fb; --tr-gap:44px;
  display:flex;flex-direction:column;gap:var(--tr-gap);margin:6px 0 40px;
  overflow-x:clip;
}
.tr-page *{ min-width:0; }
.tr-page svg{ width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round; }

/* ---------- دکمه‌ها ---------- */
.tr-actions{ display:flex;flex-wrap:wrap;justify-content:center;gap:12px;margin-top:26px; }
.tr-btn{
  display:inline-flex;align-items:center;justify-content:center;gap:10px;height:50px;padding:0 24px;border-radius:16px;
  font-size:14.5px;font-weight:800;text-decoration:none;font-family:inherit;transition:transform .15s,box-shadow .15s,background .15s;
}
.tr-btn svg{ width:18px;height:18px;flex:0 0 auto; }
.tr-btn-light{ background:#fff;color:var(--brand-dark);box-shadow:0 14px 26px -12px rgba(0,0,0,.45); }
.tr-btn-light:hover{ transform:translateY(-2px);box-shadow:0 18px 30px -12px rgba(0,0,0,.55); }
.tr-btn-ghost{ color:#fff;background:rgba(255,255,255,.1);border:1.5px solid rgba(255,255,255,.4); }
.tr-btn-ghost:hover{ background:rgba(255,255,255,.2); }

/* ---------- هیرو ---------- */
.tr-hero{
  position:relative;overflow:hidden;border-radius:30px;padding:64px 32px 66px;text-align:center;color:#fff;
  background:linear-gradient(135deg,#123a5c 0%,#0284c7 55%,#38bdf8 100%);
  box-shadow:0 30px 60px -28px rgba(2,132,199,.7);
}
.tr-hero::before{
  content:"";position:absolute;inset:0;pointer-events:none;opacity:.5;
  background-image:radial-gradient(rgba(255,255,255,.18) 1px,transparent 1.4px);background-size:24px 24px;
  -webkit-mask-image:linear-gradient(180deg,#000,transparent 85%);mask-image:linear-gradient(180deg,#000,transparent 85%);
}
.tr-orb{ position:absolute;border-radius:50%;pointer-events:none;opacity:.4; }
.tr-orb-1{ width:340px;height:340px;right:-110px;top:-140px;background:radial-gradient(circle at 30% 30%,#bae6fd,transparent 70%); }
.tr-orb-2{ width:280px;height:280px;left:-90px;bottom:-130px;background:radial-gradient(circle at 60% 40%,#7dd3fc,transparent 70%); }
.tr-hero-in{ position:relative;max-width:700px;margin:0 auto; }
.tr-chip-top{ display:inline-flex;align-items:center;gap:8px;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.25);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);padding:7px 16px;border-radius:30px;font-size:12.5px;font-weight:700;margin-bottom:20px; }
.tr-chip-top svg{ width:16px;height:16px; }
.tr-hero h1{ margin:0 0 14px;font-size:38px;font-weight:900;line-height:1.5;color:#fff; }
.tr-hero p{ margin:0 auto;max-width:580px;font-size:15px;line-height:2.1;color:rgba(255,255,255,.86); }
.tr-updated{ display:inline-flex;align-items:center;gap:8px;margin-top:22px;padding:8px 16px;border-radius:30px;background:rgba(255,255,255,.12);font-size:12.5px;font-weight:700;color:rgba(255,255,255,.9); }
.tr-updated svg{ width:16px;height:16px; }

/* ---------- چیدمان ---------- */
.tr-layout{ display:grid;grid-template-columns:290px minmax(0,1fr);gap:34px;align-items:start; }
.tr-side{ position:sticky;top:96px;display:flex;flex-direction:column;gap:14px; }
.tr-toc{ background:#fff;border:1px solid var(--tr-line);border-radius:26px;padding:18px 12px 12px;box-shadow:0 1px 2px rgba(11,42,68,.04),0 18px 40px -26px rgba(2,132,199,.3); }
.tr-toc-title{ display:flex;align-items:center;gap:8px;padding:0 10px 12px;font-size:13px;font-weight:800;color:var(--muted); }
.tr-toc-title svg{ width:18px;height:18px;color:var(--brand-dark); }
.tr-toc ol{ list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:4px;max-height:60vh;overflow-y:auto; }
.tr-toc a{
  display:flex;align-items:center;gap:12px;padding:9px 10px;border-radius:16px;text-decoration:none;font-size:13.5px;font-weight:700;line-height:1.7;color:var(--dark);
  transition:background .15s,color .15s;
}
.tr-toc a em{ flex:0 0 auto;display:grid;place-items:center;width:30px;height:30px;border-radius:10px;font-style:normal;font-size:13px;font-weight:900;background:var(--brand-soft);color:var(--brand-dark);transition:background .15s,color .15s; }
.tr-toc a:hover{ background:var(--gray-bg); }
.tr-toc a.is-active{ background:linear-gradient(135deg,var(--brand),var(--brand-dark));color:#fff;box-shadow:0 12px 22px -14px rgba(14,165,233,.8); }
.tr-toc a.is-active em{ background:rgba(255,255,255,.22);color:#fff; }
.tr-toc a:focus-visible,.tr-print:focus-visible{ outline:3px solid #bae6fd;outline-offset:2px; }
.tr-print{
  display:flex;align-items:center;justify-content:center;gap:10px;height:46px;border-radius:16px;border:1.5px solid #c8e6fa;background:#fff;color:var(--brand-dark);
  font-family:inherit;font-size:13.5px;font-weight:800;cursor:pointer;transition:background .15s;
}
.tr-print:hover{ background:var(--brand-soft); }
.tr-print svg{ width:18px;height:18px; }

/* ---------- بخش‌ها ---------- */
.tr-content{ display:flex;flex-direction:column;gap:18px; }
.tr-sec{
  position:relative;scroll-margin-top:100px;background:#fff;border:1px solid var(--tr-line);border-radius:26px;padding:28px 30px 30px;
  box-shadow:0 1px 2px rgba(11,42,68,.04),0 18px 40px -26px rgba(2,132,199,.28);transition:border-color .25s,box-shadow .25s;
}
.tr-sec::before{ content:"";position:absolute;inset-block:22px;inset-inline-start:0;width:4px;border-radius:0 4px 4px 0;background:linear-gradient(180deg,var(--brand),#7dd3fc);opacity:0;transition:opacity .25s; }
.tr-sec.is-current{ border-color:#b9dcf2;box-shadow:0 1px 2px rgba(11,42,68,.04),0 24px 44px -24px rgba(2,132,199,.4); }
.tr-sec.is-current::before{ opacity:1; }
.tr-sec-head{ display:flex;align-items:center;gap:14px;margin-bottom:16px; }
.tr-num{
  flex:0 0 auto;display:grid;place-items:center;width:46px;height:46px;border-radius:15px;font-size:20px;font-weight:900;color:#fff;
  background:linear-gradient(135deg,var(--brand),var(--brand-dark));box-shadow:0 12px 22px -10px rgba(14,165,233,.65);
}
.tr-sec-head h2{ margin:0;font-size:21px;font-weight:900;line-height:1.7;color:var(--dark); }
.tr-sec-body p{ margin:0 0 14px;font-size:14.5px;line-height:2.2;color:#3d5a74; }
.tr-sec-body > :last-child{ margin-bottom:0; }
.tr-sec-body a{ color:var(--brand-dark);font-weight:700;text-decoration:underline;text-underline-offset:3px; }
.tr-sec-body ul{ list-style:none;margin:0 0 14px;padding:0;display:flex;flex-direction:column;gap:10px; }
.tr-sec-body li{ position:relative;padding-inline-start:28px;font-size:14.5px;line-height:2.1;color:#3d5a74; }
.tr-sec-body li::before{
  content:"";position:absolute;inset-inline-start:2px;top:12px;width:10px;height:10px;border-radius:50%;
  background:linear-gradient(135deg,var(--brand),#7dd3fc);box-shadow:0 0 0 4px var(--brand-soft);
}
.tr-note{ display:flex;align-items:flex-start;gap:12px;margin:4px 0 14px;padding:14px 16px;border-radius:18px;background:var(--brand-soft);border:1px solid #d4ebf6; }
.tr-note-ico{ flex:0 0 auto;width:24px;height:24px;margin-top:5px;color:var(--brand-dark); }
.tr-note p{ margin:0 !important;font-size:14px;font-weight:700;line-height:2.1;color:var(--brand-dark); }

/* ---------- دعوت به تماس ---------- */
.tr-cta{
  position:relative;overflow:hidden;border-radius:32px;padding:54px 28px;text-align:center;color:#fff;
  background:linear-gradient(145deg,#123a5c,#0284c7);box-shadow:0 30px 56px -28px rgba(2,132,199,.8);
}
.tr-cta::after{ content:"";position:absolute;width:320px;height:320px;left:-100px;bottom:-150px;border-radius:50%;background:radial-gradient(circle,rgba(186,230,253,.38),transparent 70%);pointer-events:none; }
.tr-cta::before{ content:"";position:absolute;width:240px;height:240px;right:-80px;top:-120px;border-radius:50%;background:radial-gradient(circle,rgba(125,211,252,.35),transparent 70%);pointer-events:none; }
.tr-cta-in{ position:relative;z-index:1;max-width:560px;margin:0 auto; }
.tr-cta-ico{ display:grid;place-items:center;width:58px;height:58px;padding:15px;margin:0 auto 18px;border-radius:18px;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.25); }
.tr-cta h2{ margin:0 0 10px;font-size:28px;font-weight:900;color:#fff; }
.tr-cta p{ margin:0;font-size:14.5px;line-height:2;color:rgba(255,255,255,.85); }

/* ---------- ظاهر شدن نرم هنگام اسکرول ---------- */
.tr-js .tr-reveal{ opacity:0;transform:translateY(20px);transition:opacity .55s ease,transform .55s ease,border-color .25s,box-shadow .25s; }
.tr-js .tr-reveal.in{ opacity:1;transform:none; }
@media (prefers-reduced-motion:reduce){
  .tr-js .tr-reveal{ opacity:1;transform:none;transition:none; }
  .tr-btn{ transition:none; }
}

/* ---------- تبلت ---------- */
@media (max-width:991px){
  .tr-page{ --tr-gap:34px; }
  .tr-hero{ padding:52px 24px 54px; }
  .tr-hero h1{ font-size:31px; }
  .tr-layout{ grid-template-columns:minmax(0,1fr);gap:20px; }
  .tr-side{ position:static;flex-direction:column; }
  .tr-print{ display:none; }
  /* فهرست: نوار افقی قابل کشیدن */
  .tr-toc{ padding:8px;border-radius:22px; }
  .tr-toc-title{ display:none; }
  .tr-toc ol{ flex-direction:row;gap:8px;max-height:none;overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;scrollbar-width:none;scroll-snap-type:x proximity; }
  .tr-toc ol::-webkit-scrollbar{ display:none; }
  .tr-toc li{ flex:0 0 auto;scroll-snap-align:center; }
  .tr-toc a{ padding:8px 14px 8px 10px;border-radius:30px;white-space:nowrap; }
  .tr-toc a em{ width:26px;height:26px;border-radius:50%;font-size:12px; }
  .tr-sec{ scroll-margin-top:90px; }
}

/* ---------- موبایل ---------- */
@media (max-width:600px){
  .tr-page{ --tr-gap:26px; }
  .tr-hero{ padding:40px 18px 42px;border-radius:24px; }
  .tr-hero h1{ font-size:24px; }
  .tr-hero p{ font-size:14px; }
  .tr-actions{ margin-top:22px; }
  .tr-btn{ height:50px;padding:0 20px;flex:1 1 100%; }
  .tr-content{ gap:14px; }
  .tr-sec{ padding:20px 18px 22px;border-radius:22px; }
  .tr-sec-head{ gap:12px;margin-bottom:12px; }
  .tr-num{ width:40px;height:40px;border-radius:13px;font-size:17px; }
  .tr-sec-head h2{ font-size:17.5px; }
  .tr-sec-body p,.tr-sec-body li{ font-size:14px; }
  .tr-note{ padding:12px 14px; }
  .tr-cta{ padding:40px 20px;border-radius:26px; }
  .tr-cta h2{ font-size:23px; }
}

/* ---------- چاپ / ذخیره‌ی PDF ---------- */
@media print{
  body.sd-terms-page{ background:#fff; }
  .tr-side,.tr-cta,.tr-orb,.tr-updated{ display:none !important; }
  .tr-hero{ background:none;box-shadow:none;color:#000;padding:0 0 16px;border-radius:0; }
  .tr-hero::before{ display:none; }
  .tr-hero h1,.tr-hero p{ color:#000; }
  .tr-chip-top{ display:none; }
  .tr-layout{ display:block; }
  .tr-sec{ break-inside:avoid;box-shadow:none;border:1px solid #ddd;margin-bottom:12px; }
  .tr-js .tr-reveal{ opacity:1 !important;transform:none !important; }
}
