/* =========================================================
   SHAAGIRD TERMS & CONDITIONS PAGE
   Full-Width Hero Section matching Shaagird Design System
   (Contact, Our Approach, Learning Centers, Our History)
========================================================= */

:root {
  --terms-teal: #299D8E;
  --terms-teal-dark: #217F74;
  --terms-teal-soft: #E7F5F2;
  --terms-teal-light: #F0F7F5;
  --terms-navy: #103347;
  --terms-ink: #173B38;
  --terms-text: #2C4D49;
  --terms-text-muted: #5F716E;
  --terms-yellow: #F6AA24;
  --terms-yellow-soft: #FEF6E4;
  --terms-border: #DCE9E6;
  --terms-card-bg: #FFFFFF;
}

/* Page baseline */
.terms-page-main {
  position: relative;
  width: 100%;
  overflow-x: hidden;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--terms-ink);
  background: #FAFDFC;
}

.terms-page-main *,
.terms-page-main *::before,
.terms-page-main *::after {
  box-sizing: border-box;
}

/* =========================================================
   1. FULL-WIDTH HERO SECTION
========================================================= */

.terms-hero {
  position: relative;
  width: 100%;
  background:
    radial-gradient(circle at 10% 20%, rgba(41, 157, 142, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 30%, rgba(246, 170, 36, 0.09) 0%, transparent 45%),
    linear-gradient(180deg, #F0F9F8 0%, #FFFFFF 100%);
  padding: clamp(24px, 3.5vw, 40px) 0 clamp(28px, 4vw, 44px);
  overflow: hidden;
  border-bottom: 1px solid rgba(41, 157, 142, 0.14);
}

/* Wave overlay */
.terms-hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50px;
  pointer-events: none;
  opacity: 0.55;
  z-index: 1;
}

.terms-hero-container {
  width: min(1240px, 92%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: clamp(24px, 4vw, 48px);
  position: relative;
  z-index: 2;
}

/* Left Column: Copy */
.terms-hero-copy {
  max-width: 600px;
}

.terms-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  background: rgba(41, 157, 142, 0.09);
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid rgba(41, 157, 142, 0.18);
}

.terms-kicker-dot {
  width: 7px;
  height: 7px;
  background: var(--terms-teal);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 2px rgba(41, 157, 142, 0.2);
}

.terms-kicker-text {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.11em;
  color: var(--terms-teal-dark);
  text-transform: uppercase;
}

.terms-hero-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 800;
  line-height: 1.12;
  color: var(--terms-navy);
  margin: 0 0 10px 0;
  letter-spacing: -0.02em;
}

.terms-hero-title span {
  color: var(--terms-teal);
  position: relative;
}

.terms-hero-desc {
  font-size: 14px;
  line-height: 1.6;
  color: #385B57;
  margin: 0 0 18px 0;
  max-width: 520px;
}

/* Hero Action Buttons */
.terms-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.terms-hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 20px;
  border-radius: 26px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  cursor: pointer;
}

.terms-btn-primary {
  background: var(--terms-teal);
  color: #FFFFFF !important;
  box-shadow: 0 6px 18px rgba(41, 157, 142, 0.24);
  border: 1px solid var(--terms-teal);
}

.terms-btn-primary:hover {
  background: var(--terms-teal-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(41, 157, 142, 0.34);
}

.terms-btn-secondary {
  background: #FFFFFF;
  color: var(--terms-navy) !important;
  border: 1px solid rgba(41, 157, 142, 0.35);
  box-shadow: 0 3px 10px rgba(16, 51, 71, 0.05);
}

.terms-btn-secondary:hover {
  background: var(--terms-teal-soft);
  color: var(--terms-teal-dark) !important;
  transform: translateY(-2px);
  border-color: var(--terms-teal);
}

/* Badges / Trust Row */
.terms-hero-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(41, 157, 142, 0.15);
}

.terms-badge-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #385B57;
}

.terms-badge-item svg {
  color: var(--terms-teal);
  flex-shrink: 0;
}

/* Right Column: Visual Artwork */
.terms-hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
}

.terms-sun-disc {
  position: absolute;
  width: 220px;
  height: 220px;
  background: linear-gradient(135deg, rgba(253, 201, 67, 0.35) 0%, rgba(246, 170, 36, 0.15) 100%);
  border-radius: 50%;
  filter: blur(12px);
  z-index: 1;
  top: 5px;
  right: 15px;
  pointer-events: none;
}

.terms-mint-shape {
  position: absolute;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(41, 157, 142, 0.22) 0%, rgba(41, 157, 142, 0.02) 70%);
  border-radius: 50%;
  filter: blur(20px);
  z-index: 1;
  bottom: 0;
  left: 5px;
  pointer-events: none;
}

.terms-card-frame {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 380px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(16, 51, 71, 0.12);
  border: 3px solid #FFFFFF;
  background: #FFFFFF;
}

.terms-card-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: clamp(190px, 20vw, 240px);
  object-fit: cover;
  object-position: center 20%;
}

/* Floating Overlay Pill */
.terms-floating-badge {
  position: absolute;
  bottom: 10px;
  left: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(41, 157, 142, 0.25);
  border-radius: 10px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 6px 20px rgba(16, 51, 71, 0.1);
}

.terms-badge-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--terms-teal-soft);
  color: var(--terms-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 16px;
}

.terms-badge-text strong {
  display: block;
  font-size: 12px;
  color: var(--terms-navy);
  font-weight: 700;
  line-height: 1.25;
}

.terms-badge-text span {
  display: block;
  font-size: 11px;
  color: var(--terms-text-muted);
  line-height: 1.25;
  margin-top: 1px;
}

/* =========================================================
   2. TERMS CONTENT CONTAINER & CLAUSES
========================================================= */

.terms-body-section {
  position: relative;
  max-width: 960px;
  margin: 50px auto 90px;
  padding: 0 clamp(18px, 4vw, 36px);
}

/* Notice / Intro Box */
.terms-intro-box {
  background: #FFFFFF;
  border: 1px solid var(--terms-border);
  border-left: 5px solid var(--terms-teal);
  border-radius: 12px;
  padding: 26px 32px;
  margin-bottom: 34px;
  box-shadow: 0 6px 22px rgba(23, 59, 56, 0.04);
}

.terms-intro-box h2 {
  font-size: 21px;
  font-weight: 700;
  color: var(--terms-navy);
  margin: 0 0 10px;
}

.terms-intro-box p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--terms-text);
  margin: 0;
}

/* Clause List */
.terms-clause-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Individual Clause Card */
.terms-clause-card {
  background: #FFFFFF;
  border: 1px solid var(--terms-border);
  border-radius: 14px;
  padding: 24px 28px;
  box-shadow: 0 4px 18px rgba(23, 59, 56, 0.035);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.terms-clause-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(23, 59, 56, 0.07);
  border-color: rgba(41, 157, 142, 0.45);
}

.terms-clause-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.terms-clause-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border-radius: 50%;
  background: var(--terms-teal-soft);
  color: var(--terms-teal-dark);
  font-size: 14px;
  font-weight: 800;
  border: 1px solid rgba(41, 157, 142, 0.2);
}

.terms-clause-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--terms-navy);
}

.terms-clause-body {
  font-size: 15px;
  line-height: 1.72;
  color: var(--terms-text);
  margin: 0;
}

/* Outro / Final Acknowledgement */
.terms-outro-card {
  background: linear-gradient(135deg, rgba(231, 245, 242, 0.85), rgba(240, 247, 245, 0.55));
  border: 1px solid rgba(41, 157, 142, 0.28);
  border-radius: 14px;
  padding: 28px 32px;
  margin-top: 38px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 10px 28px rgba(41, 157, 142, 0.08);
}

.terms-outro-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.68;
  color: var(--terms-navy);
}

.terms-outro-card p strong {
  color: var(--terms-teal-dark);
}

.terms-contact-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-top: 6px;
  padding: 11px 24px;
  border-radius: 30px;
  background: var(--terms-teal);
  color: #FFFFFF !important;
  text-decoration: none !important;
  font-size: 14px;
  font-weight: 700;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 6px 18px rgba(41, 157, 142, 0.26);
}

.terms-contact-cta:hover {
  background: var(--terms-teal-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(41, 157, 142, 0.36);
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .terms-hero-container {
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: left;
  }

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

  .terms-hero-visual {
    min-height: auto;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    justify-content: center;
  }

  .terms-card-frame {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .terms-hero {
    padding: 24px 0 30px;
  }

  .terms-hero-wave {
    height: 28px;
  }

  .terms-hero-container {
    gap: 18px;
    width: min(1240px, 93%);
  }

  .terms-hero-kicker {
    margin-bottom: 8px;
    padding: 3px 10px;
  }

  .terms-kicker-text {
    font-size: 10px;
  }

  .terms-hero-title {
    font-size: clamp(24px, 6.8vw, 32px);
    margin-bottom: 8px;
  }

  .terms-hero-desc {
    font-size: 13.5px;
    line-height: 1.55;
    margin-bottom: 14px;
  }

  .terms-hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
    margin-bottom: 14px;
  }

  .terms-hero-btn {
    width: 100%;
    min-height: 40px;
    padding: 0 8px;
    font-size: clamp(10.5px, 2.7vw, 12.5px);
    gap: 5px;
    white-space: nowrap;
    text-align: center;
    justify-content: center;
  }

  .terms-hero-btn svg {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
  }

  .terms-hero-badges {
    gap: 8px 14px;
    padding-top: 10px;
  }

  .terms-badge-item {
    font-size: 11.5px;
  }

  /* Artwork & Image optimization for mobile */
  .terms-hero-visual {
    min-height: auto;
    margin-top: 4px;
  }

  .terms-sun-disc {
    width: 140px;
    height: 140px;
    top: -10px;
    right: 5px;
    opacity: 0.55;
    filter: blur(14px);
  }

  .terms-mint-shape {
    width: 130px;
    height: 130px;
    bottom: -10px;
    left: 0;
    opacity: 0.55;
    filter: blur(16px);
  }

  .terms-card-frame {
    border-radius: 12px;
    box-shadow: 0 10px 28px rgba(16, 51, 71, 0.1);
  }

  .terms-card-frame img {
    aspect-ratio: 16 / 9;
    height: auto;
    min-height: 195px;
    max-height: 240px;
    object-position: center 20%;
  }

  .terms-floating-badge {
    bottom: 8px;
    left: 8px;
    right: 8px;
    padding: 6px 10px;
    gap: 8px;
    border-radius: 8px;
  }

  .terms-badge-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    font-size: 13px;
  }

  .terms-badge-text strong {
    font-size: 11px;
  }

  .terms-badge-text span {
    font-size: 10px;
  }

  /* Body & Clauses on mobile */
  .terms-body-section {
    margin: 28px auto 55px;
    padding: 0 16px;
  }

  .terms-intro-box {
    padding: 18px 18px;
    margin-bottom: 22px;
    border-radius: 10px;
  }

  .terms-intro-box h2 {
    font-size: 18px;
    margin-bottom: 8px;
  }

  .terms-intro-box p {
    font-size: 13.5px;
    line-height: 1.6;
  }

  .terms-clause-list {
    gap: 14px;
  }

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

  .terms-clause-header {
    gap: 10px;
    margin-bottom: 8px;
  }

  .terms-clause-badge {
    min-width: 30px;
    height: 30px;
    font-size: 12.5px;
  }

  .terms-clause-title {
    font-size: 15.5px;
  }

  .terms-clause-body {
    font-size: 13.5px;
    line-height: 1.62;
  }

  .terms-outro-card {
    padding: 20px 18px;
    margin-top: 26px;
    border-radius: 12px;
  }

  .terms-outro-card p {
    font-size: 13.5px;
    line-height: 1.6;
  }

  .terms-contact-cta {
    padding: 9px 20px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .terms-hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    width: 100%;
  }

  .terms-hero-btn {
    width: 100%;
    min-height: 38px;
    padding: 0 4px;
    font-size: 11px;
    gap: 4px;
    white-space: nowrap;
  }

  .terms-hero-btn svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
  }

  .terms-card-frame img {
    min-height: 185px;
    object-position: center 18%;
  }
}
