/* ============================================================
   DIGITIZ — LEGAL & POLICY PAGES STYLES
   Applies to: Terms & Conditions, Refund Policy, Cookie Policy, Privacy Policy
   Color Palette: #b70040 (Crimson), #ed563b (Coral),
                  #0f172a / #1e293b (Dark Slate), #f8fafc (Light Surface),
                  #64748b (Muted Slate), #e2e8f0 (Border Light)
   ============================================================ */

/* ── Container & Global Setup ── */
.terms-page-wrapper {
  background-color: #f8fafc;
  color: #334155;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  overflow: visible;
  position: relative;
  width: 100%;
  display: block;
  clear: both;
}

.terms-container {
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
  overflow: visible;
}

/* ── 1. Hero Header Section ── */
.terms-hero-section {
  position: relative;
  display: block;
  width: 100%;
  padding: 120px 0 60px;
  background: radial-gradient(circle at 50% 0%, rgba(183, 0, 64, 0.08) 0%, rgba(237, 86, 59, 0.04) 45%, #ffffff 85%);
  border-bottom: 1px solid #e2e8f0;
  text-align: center;
  clear: both;
  box-sizing: border-box;
}

.terms-hero-inner {
  max-width: 860px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.terms-breadcrumbs {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #64748b;
  margin-bottom: 18px;
}

.terms-breadcrumbs a {
  color: #64748b;
  text-decoration: none !important;
  transition: color 0.2s ease;
}

.terms-breadcrumbs a:hover {
  color: #b70040;
}

.terms-breadcrumbs i {
  font-size: 10px;
  color: #cbd5e1;
}

.terms-breadcrumbs span.current {
  color: #b70040;
  font-weight: 600;
}

.terms-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  background: rgba(183, 0, 64, 0.08);
  border: 1px solid rgba(183, 0, 64, 0.2);
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  color: #b70040;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 20px;
}

.terms-hero-title {
  font-size: 46px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
  letter-spacing: -0.8px;
  margin: 0 0 20px 0;
  text-align: center;
}

.terms-hero-lead {
  font-size: 17px;
  font-weight: 400;
  color: #475569;
  line-height: 1.75;
  margin: 0 auto 28px;
  max-width: 780px;
  text-align: center;
}

.terms-meta-pills {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.terms-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 500;
  color: #475569;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.terms-meta-pill i {
  color: #b70040;
  font-size: 14px;
}

.terms-meta-pill strong {
  color: #0f172a;
  font-weight: 600;
}

/* ── 2. Content Layout with Sticky Sidebar ── */
.terms-main-section {
  position: relative;
  display: block;
  width: 100%;
  padding: 60px 0 100px;
  clear: both;
  box-sizing: border-box;
}

.terms-layout-grid {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 36px;
  align-items: start;
  width: 100%;
  box-sizing: border-box;
}

/* ── Sidebar (Table of Contents) ── */
.terms-sidebar {
  position: -webkit-sticky;
  position: sticky;
  top: 100px;
  align-self: start;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
  max-height: calc(100vh - 130px);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  z-index: 10;
}

.terms-toc-header {
  padding-bottom: 16px;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 16px;
}

.terms-toc-header h3 {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.terms-toc-header h3 i {
  color: #b70040;
  font-size: 15px;
}

.terms-toc-header p {
  font-size: 12.5px;
  color: #64748b;
  margin: 0;
}

.terms-toc-search {
  position: relative;
  margin-bottom: 14px;
}

.terms-toc-search input {
  width: 100%;
  padding: 8px 12px 8px 34px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 12.5px;
  color: #0f172a;
  background: #f8fafc;
  outline: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.terms-toc-search input:focus {
  background: #ffffff;
  border-color: #b70040;
  box-shadow: 0 0 0 3px rgba(183, 0, 64, 0.1);
}

.terms-toc-search i {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  color: #94a3b8;
}

.terms-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  overflow-y: auto;
  flex-grow: 1;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

.terms-toc-list::-webkit-scrollbar {
  width: 5px;
}

.terms-toc-list::-webkit-scrollbar-thumb {
  background-color: #cbd5e1;
  border-radius: 10px;
}

.terms-toc-item {
  margin-bottom: 4px;
}

.terms-toc-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 500;
  color: #475569;
  text-decoration: none !important;
  border-radius: 8px;
  transition: all 0.2s ease;
  line-height: 1.4;
}

.terms-toc-link:hover {
  background: #f1f5f9;
  color: #b70040;
  transform: translateX(3px);
}

.terms-toc-link.active {
  background: rgba(183, 0, 64, 0.08);
  color: #b70040;
  font-weight: 600;
}

.terms-toc-num {
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  min-width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  border-radius: 4px;
}

.terms-toc-link.active .terms-toc-num {
  background: #b70040;
  color: #ffffff;
}

.terms-toc-footer {
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.terms-toc-footer-link {
  font-size: 12px;
  font-weight: 600;
  color: #b70040;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.terms-toc-footer-link:hover {
  text-decoration: underline !important;
}

.terms-print-btn {
  background: none;
  border: none;
  color: #64748b;
  font-size: 12.5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.terms-print-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
}

/* ── Mobile TOC Toggle ── */
.terms-mobile-toc-toggle {
  display: none;
  width: 100%;
  padding: 14px 20px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
  text-align: left;
  margin-bottom: 24px;
  cursor: pointer;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  box-sizing: border-box;
}

.terms-mobile-toc-toggle i {
  color: #b70040;
  transition: transform 0.2s ease;
}

.terms-mobile-toc-toggle[aria-expanded="true"] i.fa-chevron-down {
  transform: rotate(180deg);
}

/* ── Main Stream Content ── */
.terms-content-stream {
  display: flex;
  flex-direction: column;
  gap: 28px;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

/* ── Important Preamble Card ── */
.terms-preamble-card {
  background: linear-gradient(135deg, #ffffff 0%, #fff7ed 100%);
  border: 1px solid #fed7aa;
  border-left: 5px solid #ed563b;
  border-radius: 16px;
  padding: 28px 32px;
  box-shadow: 0 4px 20px rgba(237, 86, 59, 0.06);
  box-sizing: border-box;
  width: 100%;
}

.terms-preamble-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #c2410c;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.terms-preamble-text {
  font-size: 15.5px;
  color: #334155;
  line-height: 1.8;
  margin-bottom: 14px;
}

.terms-preamble-alert {
  background: rgba(237, 86, 59, 0.1);
  border-radius: 10px;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 600;
  color: #9a3412;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

/* ── Standard Section Cards ── */
.terms-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 36px 40px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.03);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  scroll-margin-top: 110px;
  box-sizing: border-box;
  width: 100%;
  position: relative;
  display: block;
}

.terms-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.terms-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid #f1f5f9;
}

.terms-card-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: linear-gradient(135deg, #b70040 0%, #ed563b 100%);
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(183, 0, 64, 0.2);
}

.terms-card-title-wrap {
  flex-grow: 1;
}

.terms-card-title {
  font-size: 22px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
  margin: 0;
  letter-spacing: -0.3px;
  text-align: left;
}

.terms-card-body {
  font-size: 15px;
  color: #475569;
  line-height: 1.8;
}

.terms-card-body p {
  margin-bottom: 16px;
  color: #475569;
  font-size: 15px;
  line-height: 1.8;
}

.terms-card-body p:last-child {
  margin-bottom: 0;
}

/* ── Custom Styled Lists ── */
.terms-bullet-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 16px 0 !important;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.terms-bullet-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14.5px;
  color: #334155;
  line-height: 1.6;
}

.terms-bullet-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  min-width: 22px;
  background: rgba(183, 0, 64, 0.08);
  color: #b70040;
  border-radius: 50%;
  font-size: 11px;
  margin-top: 2px;
}

.terms-prohibited-list .terms-bullet-icon {
  background: rgba(220, 38, 38, 0.1);
  color: #dc2626;
}

/* ── Visual Grid of Services (Section 1) ── */
.terms-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin: 20px 0;
}

.terms-service-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 500;
  color: #1e293b;
  transition: all 0.2s ease;
}

.terms-service-chip:hover {
  background: #ffffff;
  border-color: #b70040;
  box-shadow: 0 4px 12px rgba(183, 0, 64, 0.08);
  transform: translateY(-2px);
}

.terms-service-chip i {
  color: #b70040;
  font-size: 14px;
}

/* ── Prohibited Grid / Box ── */
.terms-prohibited-box {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 12px;
  padding: 20px;
  margin: 16px 0;
}

.terms-prohibited-title {
  font-size: 14px;
  font-weight: 700;
  color: #991b1b;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── Highlight / Notice Boxes inside cards ── */
.terms-notice-box {
  background: #f8fafc;
  border-left: 4px solid #b70040;
  border-radius: 0 10px 10px 0;
  padding: 14px 18px;
  margin: 16px 0;
  font-size: 14px;
  color: #334155;
  line-height: 1.65;
}

.terms-notice-box strong {
  color: #0f172a;
}

/* ── Checklist / Form Requirements Box ── */
.terms-checklist-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 24px;
  margin: 20px 0;
}

.terms-checklist-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.terms-checklist-title i {
  color: #b70040;
}

.terms-checklist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.terms-checklist-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13.5px;
  font-weight: 500;
  color: #334155;
}

.terms-checklist-item i {
  color: #10b981;
  font-size: 14px;
}

.terms-action-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, rgba(183, 0, 64, 0.04) 0%, rgba(237, 86, 59, 0.04) 100%);
  border: 1px solid rgba(183, 0, 64, 0.15);
  border-radius: 14px;
  padding: 18px 24px;
  margin: 18px 0;
  flex-wrap: wrap;
  gap: 14px;
}

.terms-action-box-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.terms-action-box-icon {
  width: 42px;
  height: 42px;
  background: #b70040;
  color: #ffffff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.terms-action-box-info h4 {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 3px;
}

.terms-action-box-info p {
  font-size: 13px;
  color: #64748b;
  margin: 0;
}

.terms-action-email-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  background: #b70040;
  color: #ffffff !important;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.terms-action-email-btn:hover {
  background: #900032;
  transform: translateY(-2px);
}

/* ── Cookie Category Cards (Section 3) ── */
.terms-cookie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin: 20px 0;
}

.terms-cookie-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.2s ease;
}

.terms-cookie-card:hover {
  background: #ffffff;
  border-color: #b70040;
  box-shadow: 0 6px 18px rgba(183, 0, 64, 0.08);
  transform: translateY(-2px);
}

.terms-cookie-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.terms-cookie-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(183, 0, 64, 0.1);
  color: #b70040;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.terms-cookie-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 4px 10px;
  border-radius: 20px;
  background: #e2e8f0;
  color: #475569;
}

.terms-cookie-badge.required {
  background: rgba(183, 0, 64, 0.12);
  color: #b70040;
}

.terms-cookie-card h4 {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.terms-cookie-card p {
  font-size: 13.5px;
  color: #64748b;
  line-height: 1.6;
  margin: 0;
}

/* ── Third Party Provider Badges ── */
.terms-provider-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0;
}

.terms-provider-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.terms-provider-chip i {
  color: #b70040;
  font-size: 14px;
}

/* ── Privacy Split Cards Grid ── */
.terms-split-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin: 20px 0;
}

.terms-split-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 22px;
}

.terms-split-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e2e8f0;
}

.terms-split-header i {
  color: #b70040;
  font-size: 16px;
}

/* ── Privacy Rights Grid ── */
.terms-rights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin: 20px 0;
}

.terms-right-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  transition: all 0.2s ease;
}

.terms-right-card:hover {
  border-color: #b70040;
  box-shadow: 0 4px 12px rgba(183, 0, 64, 0.08);
  transform: translateY(-2px);
}

.terms-right-icon {
  width: 32px;
  height: 32px;
  min-width: 32px;
  background: rgba(183, 0, 64, 0.08);
  color: #b70040;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  margin-top: 2px;
}

.terms-right-content h4 {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 4px;
}

.terms-right-content p {
  font-size: 13px;
  color: #64748b;
  margin: 0;
  line-height: 1.5;
}

/* ── Section Contact Info Grid ── */
.terms-contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.terms-contact-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.2s ease;
}

.terms-contact-card:hover {
  background: #ffffff;
  border-color: #b70040;
  box-shadow: 0 6px 18px rgba(183, 0, 64, 0.08);
  transform: translateY(-2px);
}

.terms-contact-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(183, 0, 64, 0.1);
  color: #b70040;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 4px;
}

.terms-contact-card h4 {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.terms-contact-card p,
.terms-contact-card a {
  font-size: 13.5px;
  color: #475569;
  margin: 0;
  text-decoration: none !important;
  line-height: 1.5;
}

.terms-contact-card a:hover {
  color: #b70040 !important;
  text-decoration: underline !important;
}

/* ── 3. Bottom CTA Assistance Bar ── */
.terms-bottom-cta {
  margin-top: 48px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-radius: 20px;
  padding: 40px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  color: #ffffff;
  box-sizing: border-box;
}

.terms-bottom-cta-text h3 {
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 8px;
}

.terms-bottom-cta-text p {
  font-size: 15px;
  color: #94a3b8;
  margin: 0;
  max-width: 580px;
  line-height: 1.6;
}

.terms-bottom-cta-actions {
  display: flex;
  gap: 14px;
  flex-shrink: 0;
}

.terms-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: linear-gradient(135deg, #b70040 0%, #ed563b 100%);
  color: #ffffff !important;
  font-size: 14px;
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none !important;
  transition: all 0.3s ease;
  box-shadow: 0 4px 14px rgba(183, 0, 64, 0.4);
}

.terms-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(183, 0, 64, 0.5);
  color: #ffffff !important;
}

.terms-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff !important;
  font-size: 14px;
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none !important;
  transition: all 0.3s ease;
}

.terms-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: #ffffff;
}

/* ── 4. Responsive Queries ── */
@media (max-width: 1024px) {
  .terms-layout-grid {
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 28px;
  }

  .terms-card {
    padding: 30px 28px;
  }
}

@media (max-width: 900px) {
  .terms-hero-section {
    padding: 120px 0 40px;
  }

  .terms-hero-title {
    font-size: 34px;
  }

  .terms-layout-grid {
    grid-template-columns: 1fr;
  }

  .terms-sidebar {
    display: none;
  }

  .terms-sidebar.is-open {
    display: flex;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 440px;
    max-height: 80vh;
    z-index: 9999;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  }

  .terms-sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    z-index: 9998;
    backdrop-filter: blur(4px);
  }

  .terms-sidebar-backdrop.is-open {
    display: block;
  }

  .terms-mobile-toc-toggle {
    display: flex;
  }

  .terms-bottom-cta {
    flex-direction: column;
    text-align: center;
    padding: 32px 24px;
  }

  .terms-bottom-cta-actions {
    width: 100%;
    flex-direction: column;
  }

  .terms-btn-primary,
  .terms-btn-secondary {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .terms-container {
    padding: 0 16px;
  }

  .terms-card {
    padding: 24px 18px;
    border-radius: 16px;
  }

  .terms-card-header {
    gap: 12px;
  }

  .terms-card-num {
    width: 36px;
    height: 36px;
    min-width: 36px;
    font-size: 14px;
    border-radius: 8px;
  }

  .terms-card-title {
    font-size: 18px;
  }

  .terms-preamble-card {
    padding: 20px 18px;
  }

  .terms-services-grid {
    grid-template-columns: 1fr;
  }

  .terms-meta-pills {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ── 5. Print Styles ── */
@media print {
  .site-nav,
  .site-footer,
  .whatsapp-icon,
  .terms-sidebar,
  .terms-mobile-toc-toggle,
  .terms-bottom-cta,
  .terms-print-btn,
  .terms-breadcrumbs {
    display: none !important;
  }

  .terms-page-wrapper {
    background: #ffffff;
    color: #000000;
  }

  .terms-hero-section {
    padding: 20px 0;
    background: none;
    border: none;
  }

  .terms-card {
    border: 1px solid #ccc;
    box-shadow: none;
    break-inside: avoid;
    margin-bottom: 20px;
    padding: 20px;
  }

  .terms-layout-grid {
    display: block;
  }
}
