/* CityStore Executive Terms, Free Shipping, Return & Warranty Center (FR + AR / RTL-native) */
html { scroll-behavior: smooth; }

.csb-terms-page .cs-content {
  max-width: 1260px;
  padding: 36px 40px 44px;
  background: #ffffff;
  border: 1px solid #e2ebf6;
  border-radius: 22px;
  box-shadow: 0 12px 36px rgba(15, 37, 64, 0.045);
}

.csb-terms-page .cs-content > h1 {
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  line-height: 1.22;
  letter-spacing: -0.02em;
  color: #0b223d;
  margin: 0 0 18px;
  font-weight: 800;
}

.csb-terms-root {
  color: #1c3553;
  line-height: 1.75;
  font-size: 0.98rem;
}

.csb-terms-root * { box-sizing: border-box; }

/* Hero summary */
.csb-terms-hero {
  background: linear-gradient(135deg, #f4f9ff 0%, #eef5ff 55%, #f7fbff 100%);
  border: 1px solid #d5e5fb;
  border-radius: 18px;
  padding: 24px 26px;
  margin: 0 0 24px;
}

.csb-terms-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 13px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #cfe0f8;
  color: #0053c9;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.csb-terms-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #12944f;
  box-shadow: 0 0 0 3px rgba(18, 148, 79, 0.16);
}

.csb-terms-lead {
  margin: 0 0 16px !important;
  font-size: 1.05rem;
  color: #132c4a;
  max-width: 920px;
}

.csb-terms-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  padding-top: 14px;
  border-top: 1px solid rgba(0, 99, 238, 0.12);
  font-size: 0.87rem;
  color: #3d5a7a;
}

.csb-terms-meta a {
  color: #0053c9;
  font-weight: 700;
  text-decoration: none;
}

.csb-terms-meta a:hover { text-decoration: underline; }

/* 4 Trust KPI Cards */
.csb-terms-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 30px;
}

.csb-kpi-card {
  background: #ffffff;
  border: 1px solid #dde7f3;
  border-radius: 16px;
  padding: 18px 18px 16px;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.csb-kpi-card:hover {
  transform: translateY(-2px);
  border-color: #b7d2fa;
  box-shadow: 0 10px 24px rgba(11, 34, 61, 0.07);
}

.csb-kpi-card.is-accent {
  background: linear-gradient(160deg, #f1fbf5 0%, #ffffff 70%);
  border-color: #bde6ce;
}

.csb-kpi-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #eef5ff;
  color: #0063ee;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.csb-kpi-card.is-accent .csb-kpi-icon {
  background: #dff5e8;
  color: #0c7b40;
}

.csb-kpi-tag {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #0053c9;
  margin-bottom: 4px;
}

.csb-kpi-card.is-accent .csb-kpi-tag { color: #0c7b40; }

.csb-kpi-card h2 {
  margin: 0 0 6px;
  font-size: 1.05rem;
  line-height: 1.3;
  color: #0b223d;
  font-weight: 800;
}

.csb-kpi-card p {
  margin: 0 !important;
  font-size: 0.88rem;
  line-height: 1.55 !important;
  color: #46607d;
}

/* 2-Column Editorial Layout */
.csb-terms-layout {
  display: grid;
  grid-template-columns: 272px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.csb-terms-sidebar {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.csb-toc-card {
  background: #f8fbff;
  border: 1px solid #dce8f8;
  border-radius: 16px;
  padding: 18px 16px;
}

.csb-toc-title {
  margin: 0 0 12px !important;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #4a6684;
}

.csb-toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.csb-toc-list a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 10px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #1e3b5c;
  text-decoration: none;
  transition: background 0.14s ease, color 0.14s ease;
}

.csb-toc-list a span {
  font-size: 0.74rem;
  font-weight: 800;
  color: #0063ee;
  background: #e6f0ff;
  border-radius: 6px;
  padding: 2px 6px;
  flex: 0 0 auto;
}

.csb-toc-list a:hover {
  background: #e9f2ff;
  color: #0053c9;
}

.csb-side-help {
  background: #0f2540;
  color: #eaf2fc;
  border-radius: 16px;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.csb-side-help-title {
  margin: 0 !important;
  font-size: 0.98rem;
  font-weight: 800;
  color: #ffffff;
}

.csb-side-help-text {
  margin: 0 !important;
  font-size: 0.85rem;
  line-height: 1.55 !important;
  color: #c5d6ec;
}

/* Buttons */
.csb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none !important;
  transition: background 0.15s ease, transform 0.12s ease, border-color 0.15s ease;
  text-align: center;
}

.csb-btn-primary { background: #18a058; color: #ffffff !important; }
.csb-btn-primary:hover { background: #138749; transform: translateY(-1px); }

.csb-btn-outline { background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.24); color: #ffffff !important; }
.csb-btn-outline:hover { background: rgba(255, 255, 255, 0.16); }

.csb-btn-white { background: #ffffff; color: #0f2540 !important; }
.csb-btn-white:hover { background: #eef5ff; }

.csb-btn-glass { background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.28); color: #ffffff !important; }
.csb-btn-glass:hover { background: rgba(255, 255, 255, 0.22); }

/* Content Sections */
.csb-terms-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.csb-terms-section {
  background: #ffffff;
  border: 1px solid #e2ebf5;
  border-radius: 16px;
  padding: 24px 26px;
  scroll-margin-top: 108px;
}

.csb-sec-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #edf3fa;
}

.csb-sec-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #eef5ff;
  color: #0053c9;
  font-weight: 800;
  font-size: 0.9rem;
  flex: 0 0 auto;
}

.csb-sec-head h2 {
  margin: 0;
  font-size: clamp(1.12rem, 1.8vw, 1.32rem);
  line-height: 1.3;
  color: #0b223d;
  font-weight: 800;
}

.csb-terms-section p { margin: 0 0 12px !important; }
.csb-terms-section p:last-child { margin-bottom: 0 !important; }
.csb-terms-section a { color: #0053c9; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.csb-subhead {
  margin: 18px 0 10px;
  font-size: 1.02rem;
  color: #0f2540;
  font-weight: 800;
}

.csb-check-list {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.csb-check-list li {
  position: relative;
  padding-inline-start: 26px;
}

.csb-check-list li::before {
  content: "✓";
  position: absolute;
  inset-inline-start: 0;
  top: 1px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #e6f6ed;
  color: #0d7a3f;
  font-size: 0.74rem;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Subcards & Callouts */
.csb-two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 12px 0;
}

.csb-subcard {
  background: #f8fbff;
  border: 1px solid #dce8f7;
  border-radius: 13px;
  padding: 16px 18px;
}

.csb-subcard h3 {
  margin: 0 0 8px;
  font-size: 0.98rem;
  color: #0b223d;
  font-weight: 800;
}

.csb-subcard p { font-size: 0.92rem; color: #365270; }
.csb-subcard ul { margin: 0; padding-inline-start: 18px; font-size: 0.92rem; color: #324e6c; display: flex; flex-direction: column; gap: 6px; }

.csb-subcard.is-covered {
  background: #f3fbf6;
  border-color: #c2e8d2;
  border-inline-start: 4px solid #138a4b;
}

.csb-subcard.is-excluded {
  background: #fff8f8;
  border-color: #f3d2d2;
  border-inline-start: 4px solid #c93b3b;
}

.csb-callout {
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 0.93rem;
  margin-top: 14px;
  line-height: 1.65;
}

.csb-callout-info {
  background: #eff6ff;
  border: 1px solid #c9dffc;
  border-inline-start: 4px solid #0063ee;
  color: #123157;
}

.csb-callout-success {
  background: #edf9f2;
  border: 1px solid #bce6ce;
  border-inline-start: 4px solid #128a4b;
  color: #0f4529;
  margin-top: 0;
  margin-bottom: 14px;
}

/* Shipping Matrix Table */
.csb-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 14px 0 12px;
  border: 1px solid #dce7f5;
  border-radius: 12px;
}

.csb-policy-table {
  width: 100%;
  min-width: 540px;
  border-collapse: collapse;
  font-size: 0.92rem;
  text-align: start;
}

.csb-policy-table thead th {
  background: #f3f7fc;
  color: #0b223d;
  font-weight: 800;
  padding: 12px 14px;
  border-bottom: 1px solid #d7e3f1;
  text-align: start;
}

.csb-policy-table tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid #ebf1f8;
  color: #213e5d;
  vertical-align: middle;
}

.csb-policy-table tbody tr:last-child td { border-bottom: 0; }

.csb-pill-free {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  border-radius: 999px;
  background: #e4f7ec;
  color: #0b743c;
  font-weight: 800;
  font-size: 0.84rem;
  white-space: nowrap;
}

.csb-muted-note {
  font-size: 0.88rem;
  color: #4d6785;
}

/* 3-Step Return Grid */
.csb-steps-grid {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.csb-steps-grid li {
  background: #f8fbff;
  border: 1px solid #dce8f7;
  border-radius: 13px;
  padding: 15px 15px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.csb-step-badge {
  display: inline-block;
  align-self: flex-start;
  padding: 3px 9px;
  border-radius: 999px;
  background: #0063ee;
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 800;
}

.csb-steps-grid strong { color: #0b223d; font-size: 0.96rem; }
.csb-steps-grid p { margin: 0 !important; font-size: 0.87rem; line-height: 1.55 !important; color: #435f7d; }

/* Executive Dark Contact Banner */
.csb-contact-banner {
  background: linear-gradient(135deg, #0b223d 0%, #103563 60%, #0b4db1 100%);
  color: #f0f6ff;
  border-radius: 18px;
  padding: 26px 28px;
  scroll-margin-top: 108px;
}

.csb-contact-banner-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 24px;
  align-items: center;
}

.csb-contact-badge {
  display: inline-block;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #d8e9ff;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.csb-contact-banner h2 {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  font-weight: 800;
}

.csb-contact-addr {
  margin: 0 0 14px !important;
  color: #d9e8fb;
  font-weight: 600;
}

.csb-contact-dl {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.9rem;
}

.csb-contact-dl > div {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
}

.csb-contact-dl dt { font-weight: 700; color: #a7c9f8; min-width: 135px; }
.csb-contact-dl dd { margin: 0; color: #ffffff; }
.csb-contact-dl a { color: #ffffff; font-weight: 700; text-decoration: underline; }

.csb-contact-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Accordion FAQ */
.csb-terms-faq details {
  border: 1px solid #e3ecf7;
  border-radius: 12px;
  padding: 13px 16px;
  margin-bottom: 10px;
  background: #fafcff;
}

.csb-terms-faq details:last-child { margin-bottom: 0; }

.csb-terms-faq summary {
  font-weight: 800;
  color: #0b223d;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.csb-terms-faq summary::-webkit-details-marker { display: none; }
.csb-terms-faq summary::after {
  content: "+";
  font-size: 1.25rem;
  font-weight: 700;
  color: #0063ee;
  line-height: 1;
}
.csb-terms-faq details[open] summary::after { content: "−"; }

.csb-terms-faq details p {
  margin: 10px 0 0 !important;
  padding-top: 10px;
  border-top: 1px solid #e6eef8;
  font-size: 0.93rem;
  color: #355270;
}

/* Responsive */
@media (max-width: 1024px) {
  .csb-terms-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .csb-terms-layout { grid-template-columns: 1fr; }
  .csb-terms-sidebar { position: static; }
  .csb-toc-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .csb-contact-banner-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .csb-terms-page .cs-content { padding: 18px 14px 28px; border-radius: 14px; }
  .csb-terms-hero { padding: 18px 16px; }
  .csb-terms-kpis { grid-template-columns: 1fr; }
  .csb-toc-list { grid-template-columns: 1fr; }
  .csb-terms-section { padding: 18px 16px; }
  .csb-two-col, .csb-steps-grid { grid-template-columns: 1fr; }
  .csb-contact-banner { padding: 20px 16px; }
}

@media print {
  .csb-terms-sidebar, .csb-contact-actions { display: none !important; }
  .csb-terms-layout { grid-template-columns: 1fr !important; }
  .csb-terms-section, .csb-terms-hero { break-inside: avoid; box-shadow: none; }
}
