/* ==========================================================================
   TERMS AND CONDITIONS PAGE STYLES — IT WAYS
   Ultra-Premium Responsive Design (2-Column Desktop Grid / 1-Column Mobile)
   ========================================================================== */

:root {
  --terms-primary: #1769ff;
  --terms-primary-light: #eaf2ff;
  --terms-primary-hover: #0f56d9;
  --terms-ink: #0f172a;
  --terms-muted: #64748b;
  --terms-border: #e2eaf5;
  --terms-border-hover: #c9dcff;
  --terms-card-bg: #ffffff;
  --terms-radius-lg: 24px;
  --terms-radius-md: 14px;
}

/* Page Outer Wrapper */
.terms-page-wrapper {
  background: linear-gradient(180deg, #f0f6ff 0%, #f8fbff 30%, #fbfdff 100%);
  padding: 130px 24px 80px;
  min-height: 100vh;
  position: relative;
  width: 100%;
  box-sizing: border-box;
  overflow-x: clip;
}

/* Ambient Background Radial Glows & Floating Spheres */
.terms-page-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(1300px, 100vw);
  max-width: 100%;
  height: 600px;
  background: radial-gradient(circle at 75% 25%, rgba(23, 105, 255, 0.12) 0%, rgba(99, 102, 241, 0.05) 40%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.terms-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  box-sizing: border-box;
}

/* Floating Decorative 3D Spheres & Airplane */
.terms-floating-decor {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.decor-sphere-1 {
  top: 60px;
  left: -20px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #93c5fd 0%, #3b82f6 60%, #1d4ed8 100%);
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.35);
  animation: floatSlow 6s ease-in-out infinite;
}

.decor-sphere-2 {
  top: 80px;
  right: 180px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #bfdbfe 0%, #60a5fa 55%, #2563eb 100%);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
  animation: floatSlow 5s ease-in-out infinite reverse;
}

.decor-sphere-3 {
  top: 130px;
  right: -10px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #93c5fd 0%, #3b82f6 50%, #1e40af 100%);
  box-shadow: 0 10px 25px rgba(29, 78, 216, 0.35);
  animation: floatSlow 7s ease-in-out infinite;
}

.decor-plane {
  top: 0px;
  left: -40px;
  width: 48px;
  height: 48px;
  color: #3b82f6;
  filter: drop-shadow(0 8px 16px rgba(59, 130, 246, 0.3));
  transform: rotate(-12deg);
  animation: floatPlane 5s ease-in-out infinite;
}

@keyframes floatPlane {
  0%, 100% { transform: translateY(0px) rotate(-12deg); }
  50% { transform: translateY(-8px) rotate(-8deg); }
}

@keyframes floatSlow {
  0%, 100% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(-10px) scale(1.05); }
}

/* ==========================================================================
   HERO HEADER SECTION
   ========================================================================== */
.terms-hero-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  margin-bottom: 40px;
  padding: 10px 8px;
  position: relative;
}

.terms-hero-text {
  flex: 1;
  min-width: 0;
  max-width: 580px;
}

.terms-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--terms-primary);
  background: #eaf2ff;
  border: 1.5px solid rgba(23, 105, 255, 0.35);
  padding: 6px 18px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.terms-hero-title {
  font-size: clamp(32px, 4.2vw, 46px);
  font-weight: 800;
  color: var(--terms-ink);
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin: 0 0 14px 0;
}

.terms-hero-desc {
  font-size: 16px;
  color: var(--terms-muted);
  line-height: 1.6;
  margin: 0 0 22px 0;
}

.terms-breadcrumb-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid var(--terms-border);
  border-radius: 999px;
  padding: 7px 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--terms-muted);
  box-shadow: 0 4px 12px rgba(23, 105, 255, 0.05);
}

.terms-breadcrumb-pill a {
  color: var(--terms-primary);
  text-decoration: none;
  font-weight: 750;
  transition: color 0.2s ease;
}

.terms-breadcrumb-pill a:hover {
  text-decoration: underline;
}

.terms-breadcrumb-pill .crumb-sep {
  color: #94a3b8;
  font-size: 11px;
}

/* 3D Policy Illustration & Callout */
.terms-hero-visual-wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
  position: relative;
}

.terms-hero-visual {
  width: 220px;
  height: 220px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.terms-3d-doc-svg {
  width: 190px;
  height: 190px;
  filter: drop-shadow(0 20px 36px rgba(23, 105, 255, 0.2));
  animation: floatDoc 5s ease-in-out infinite;
}

@keyframes floatDoc {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(-1.5deg); }
}


/* ==========================================================================
   MAIN WHITE GLASS CARD ENCLOSURE
   ========================================================================== */
.terms-main-panel {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.5px solid rgba(226, 234, 245, 0.95);
  border-radius: var(--terms-radius-lg);
  padding: 36px;
  box-shadow: 0 20px 60px rgba(18, 42, 90, 0.06), 0 4px 16px rgba(23, 105, 255, 0.03);
  box-sizing: border-box;
}

/* ==========================================================================
   2-COLUMN ACCORDION GRID ON DESKTOP
   ========================================================================== */
.terms-accordion-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 24px;
  margin-bottom: 28px;
  align-items: start;
}

.terms-accordion-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.terms-accordion-item {
  background: #ffffff;
  border: 1.5px solid var(--terms-border);
  border-radius: 18px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.02);
  transition: all 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
}

.terms-accordion-item:hover {
  border-color: var(--terms-border-hover);
  box-shadow: 0 8px 24px rgba(23, 105, 255, 0.08);
}

.terms-accordion-item.is-open {
  border-color: rgba(23, 105, 255, 0.35);
  box-shadow: 0 12px 32px rgba(23, 105, 255, 0.1);
}

/* Accordion Header / Trigger Button */
.terms-accordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  outline: none;
  text-align: left;
  transition: background 0.2s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  box-sizing: border-box;
}

.terms-accordion-item.is-open .terms-accordion-header {
  background: rgba(248, 251, 255, 0.7);
  border-bottom: 1px solid #edf4fc;
}

.terms-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
}

.terms-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #eef5ff;
  border: 1px solid rgba(23, 105, 255, 0.15);
  display: grid;
  place-items: center;
  color: var(--terms-primary);
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.terms-accordion-item:hover .terms-icon-box,
.terms-accordion-item.is-open .terms-icon-box {
  background: var(--terms-primary);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(23, 105, 255, 0.28);
}

.terms-number {
  font-size: 15px;
  font-weight: 800;
  color: var(--terms-primary);
  letter-spacing: -0.2px;
  min-width: 22px;
  flex-shrink: 0;
}

.terms-title {
  font-size: 15.5px;
  font-weight: 750;
  color: var(--terms-ink);
  letter-spacing: -0.2px;
  line-height: 1.3;
}

.terms-chevron {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: transparent;
  display: grid;
  place-items: center;
  color: #8fa0ba;
  flex-shrink: 0;
  margin-left: 10px;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), color 0.25s ease, background 0.25s ease;
}

.terms-accordion-item:hover .terms-chevron {
  color: var(--terms-primary);
  background: #f0f6ff;
}

.terms-accordion-item.is-open .terms-chevron {
  transform: rotate(180deg);
  color: var(--terms-primary);
  background: #eaf2ff;
}

/* Accordion Body */
.terms-accordion-body {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s ease;
  box-sizing: border-box;
}

.terms-accordion-item.is-open .terms-accordion-body {
  max-height: 2000px;
  opacity: 1;
}

.terms-body-content {
  padding: 18px 20px 22px 20px;
  font-size: 14px;
  color: #475569;
  line-height: 1.65;
}

.terms-body-content p {
  margin: 0 0 12px 0;
}

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

.terms-body-lead {
  font-size: 14.5px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 12px;
}

.terms-body-subtitle {
  font-size: 13.5px;
  font-weight: 750;
  color: var(--terms-ink);
  margin: 14px 0 8px;
}

/* Bullet list inside body */
.terms-bullet-list {
  list-style: none;
  padding: 0;
  margin: 10px 0 14px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.terms-bullet-list li {
  position: relative;
  padding-left: 18px;
  font-size: 13px;
  color: #475569;
  line-height: 1.5;
}

.terms-bullet-list li::before {
  content: "•";
  position: absolute;
  left: 5px;
  color: var(--terms-primary);
  font-weight: 900;
  font-size: 15px;
}

/* Mini Cards Grid inside body */
.terms-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin: 12px 0 14px;
}

.terms-mini-chip {
  background: #f8fbff;
  border: 1px solid #e2edf8;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 650;
  color: #334155;
  text-align: center;
  transition: all 0.2s ease;
}

.terms-mini-chip:hover {
  background: #ffffff;
  border-color: #93c5fd;
  color: var(--terms-primary);
  box-shadow: 0 4px 10px rgba(23, 105, 255, 0.08);
}

/* Notice Box */
.terms-notice-box {
  background: #fffbeb;
  border: 1px solid #fef3c7;
  border-left: 3.5px solid #f59e0b;
  border-radius: 10px;
  padding: 10px 14px;
  margin: 12px 0;
  font-size: 12.5px;
  color: #92400e;
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.terms-notice-box.danger {
  background: #fef2f2;
  border-color: #fee2e2;
  border-left-color: #ef4444;
  color: #991b1b;
}

.terms-notice-box.info {
  background: #f0f9ff;
  border-color: #e0f2fe;
  border-left-color: var(--terms-primary);
  color: #0369a1;
}

/* ==========================================================================
   BOTTOM HELP & SUPPORT BANNER (FULL WIDTH INSIDE MAIN PANEL)
   ========================================================================== */
.terms-help-card {
  background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 60%, #e0f2fe 100%);
  border: 1.5px solid #cbe0fe;
  border-radius: 20px;
  padding: 24px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: 0 8px 24px rgba(23, 105, 255, 0.06);
  box-sizing: border-box;
}

.terms-help-left {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
  min-width: 0;
}

.terms-help-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #bfdbfe;
  display: grid;
  place-items: center;
  color: var(--terms-primary);
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(23, 105, 255, 0.12);
}

.terms-help-tag {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--terms-primary);
  margin-bottom: 3px;
}

.terms-help-title {
  font-size: 19px;
  font-weight: 800;
  color: var(--terms-ink);
  margin: 0 0 2px 0;
  letter-spacing: -0.2px;
}

.terms-help-sub {
  font-size: 13px;
  color: var(--terms-muted);
  margin: 0;
}

.terms-help-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 999px;
  background: var(--terms-primary);
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 750;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(23, 105, 255, 0.3);
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.25s ease;
  border: none;
  cursor: pointer;
}

.terms-help-btn:hover {
  background: var(--terms-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(23, 105, 255, 0.4);
  color: #ffffff;
}

/* ==========================================================================
   RESPONSIVE DESIGN (TABLETS & MOBILE)
   ========================================================================== */

/* Tablets Landscape & Intermediate Devices (993px to 1100px) */
@media (min-width: 993px) and (max-width: 1100px) {
  .terms-container {
    padding: 0 12px;
  }

  .terms-main-panel {
    padding: 28px;
  }

  .terms-accordion-grid {
    gap: 16px 18px;
  }

  .terms-hero-visual {
    width: 180px;
    height: 180px;
  }

  .terms-3d-doc-svg {
    width: 150px;
    height: 150px;
  }

  .decor-plane {
    left: -10px;
  }
}

/* Tablet Portrait & iPad Mini (769px to 992px) */
@media (max-width: 992px) {
  .terms-page-wrapper {
    padding: 115px 20px 70px;
  }

  .terms-accordion-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .terms-main-panel {
    padding: 24px;
    border-radius: 20px;
  }

  .terms-hero-card {
    gap: 24px;
  }

  .terms-hero-visual-wrap {
    align-self: center;
  }

  .terms-hero-visual {
    width: 170px;
    height: 170px;
  }

  .terms-3d-doc-svg {
    width: 145px;
    height: 145px;
  }

  .decor-plane,
  .decor-sphere-1,
  .decor-sphere-2,
  .decor-sphere-3 {
    display: none;
  }
}

/* Phablets & Large Mobiles (481px to 768px) */
@media (max-width: 768px) {
  .terms-page-wrapper {
    padding: 105px 16px 60px;
  }

  .terms-hero-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 24px;
  }

  .terms-hero-text {
    max-width: 100%;
  }

  .terms-hero-visual-wrap {
    align-self: center;
    margin: 4px 0;
  }

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

  .terms-hero-desc {
    font-size: 14px;
    margin-bottom: 16px;
  }

  .terms-main-panel {
    padding: 18px 16px;
    border-radius: 18px;
  }

  .terms-accordion-header {
    padding: 14px 16px;
  }

  .terms-icon-box {
    width: 38px;
    height: 38px;
  }

  .terms-icon-box svg {
    width: 18px;
    height: 18px;
  }

  .terms-title {
    font-size: 14.5px;
  }

  .terms-help-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 22px 16px;
    gap: 16px;
  }

  .terms-help-left {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .terms-help-btn {
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
  }
}

/* Standard Mobile Devices (361px to 480px) */
@media (max-width: 480px) {
  .terms-page-wrapper {
    padding: 95px 10px 40px;
  }

  .terms-badge-pill {
    font-size: 10.5px;
    padding: 5px 14px;
    margin-bottom: 10px;
  }

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

  .terms-hero-desc {
    font-size: 13px;
  }

  .terms-breadcrumb-pill {
    font-size: 11.5px;
    padding: 5px 12px;
  }

  .terms-main-panel {
    padding: 12px;
    border-radius: 16px;
  }

  .terms-accordion-header {
    padding: 12px 12px;
  }

  .terms-icon-box {
    width: 32px;
    height: 32px;
  }

  .terms-number {
    font-size: 13.5px;
  }

  .terms-title {
    font-size: 13.5px;
  }

  .terms-chevron {
    width: 24px;
    height: 24px;
    margin-left: 4px;
  }

  .terms-body-content {
    padding: 14px 12px 16px 12px;
    font-size: 12.5px;
  }

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

  .terms-help-card {
    padding: 18px 12px;
  }

  .terms-help-title {
    font-size: 17px;
  }
}

/* Extra Small Phones (<= 360px) */
@media (max-width: 360px) {
  .terms-page-wrapper {
    padding: 90px 8px 36px;
  }

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

  .terms-header-left {
    gap: 8px;
  }

  .terms-number {
    font-size: 12.5px;
    min-width: 18px;
  }

  .terms-title {
    font-size: 12.8px;
  }

  .terms-icon-box {
    width: 28px;
    height: 28px;
  }

  .terms-icon-box svg {
    width: 15px;
    height: 15px;
  }

  .terms-main-panel {
    padding: 8px;
  }
}
