/* ============================================================
   POLICY PAGES — Terms & Conditions, Privacy & Policy
   /public/css/policy.css
   ============================================================ */

/* ── CSS Custom Properties ── */
:root {
  --primary:   rgb(209 3 239);
  --secondary: rgb(92 26 255);
  --primary-20:   rgb(209 3 239 / 0.2);
  --primary-10:   rgb(209 3 239 / 0.1);
  --primary-08:   rgb(209 3 239 / 0.08);
  --primary-05:   rgb(209 3 239 / 0.05);
  --secondary-20: rgb(92 26 255 / 0.2);
  --secondary-10: rgb(92 26 255 / 0.1);
  --white-10:  rgb(255 255 255 / 0.1);
  --white-06:  rgb(255 255 255 / 0.06);
  --white-05:  rgb(255 255 255 / 0.05);
  --white-04:  rgb(255 255 255 / 0.04);
}

/* ============================================================
   PAGE BACKGROUND — gradient from primary/20 → secondary/20
   Matches the Tailwind pattern:
     bg-gradient-to-br from-primary/20 via-black to-secondary/20
   ============================================================ */

.policy-bg {
  /* Base black layer */
  background-color: rgb(0 0 0 / 1);
  /* Gradient overlay: top-left primary → middle black → bottom-right secondary */
  background-image:
    linear-gradient(
      to bottom right,
      rgb(209 3 239 / 0.18) 0%,
      rgb(0 0 0 / 0)        40%,
      rgb(0 0 0 / 0)        60%,
      rgb(92 26 255 / 0.15) 100%
    );
  min-height: 100vh;
}

/* Decorative fixed orbs (replaces JS-animated orbs for policy pages) */
.policy-orb {
  position: fixed;
  border-radius: 50%;
  mix-blend-mode: screen;
  pointer-events: none;
  filter: blur(120px);
  z-index: -10;
}

.policy-orb--tl {
  top: -8%;
  left: -5%;
  width: 520px;
  height: 520px;
  background: rgb(209 3 239 / 0.22);
  animation: orb-drift 12s ease-in-out infinite alternate;
}

.policy-orb--br {
  bottom: -10%;
  right: -5%;
  width: 600px;
  height: 600px;
  background: rgb(92 26 255 / 0.18);
  animation: orb-drift 16s ease-in-out infinite alternate-reverse;
}

.policy-orb--mid {
  top: 45%;
  left: 35%;
  width: 400px;
  height: 400px;
  background: rgb(147 51 234 / 0.10);
  filter: blur(160px);
  animation: orb-drift 20s ease-in-out infinite alternate;
}

@keyframes orb-drift {
  from { transform: translate(0px, 0px) scale(1); }
  to   { transform: translate(30px, 20px) scale(1.06); }
}

/* ============================================================
   HERO BANNER
   ============================================================ */

.terms-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10rem 1.5rem 5rem;
  overflow: hidden;
}

/* Radial glow coming from top — uses from-primary/20 concept */
.terms-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 70% 60% at 50% 0%,
      rgb(209 3 239 / 0.20) 0%,
      rgb(92 26 255 / 0.10)  50%,
      transparent            100%
    );
  pointer-events: none;
}

.terms-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgb(209 3 239);
  margin-bottom: 1.25rem;
}

.terms-hero-eyebrow-line {
  width: 28px;
  height: 1px;
  /* from-primary/20 → transparent */
  background: linear-gradient(90deg, rgb(209 3 239), transparent);
}

.terms-hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  /* from-white via-white/80 to-white/20 — gradient text */
  background: linear-gradient(
    to bottom,
    rgb(255 255 255)        0%,
    rgb(255 255 255 / 0.8) 50%,
    rgb(255 255 255 / 0.20) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.25rem;
}

.terms-hero-sub {
  max-width: 600px;
  font-size: 1rem;
  color: rgb(255 255 255 / 0.45);
  font-weight: 400;
  line-height: 1.75;
}

.terms-hero-sub strong {
  color: rgb(255 255 255 / 0.75);
}

.terms-hero-divider {
  margin-top: 3.5rem;
  width: 100%;
  max-width: 900px;
  height: 1px;
  /* from-transparent via-white/10 to-transparent */
  background: linear-gradient(
    90deg,
    transparent,
    rgb(255 255 255 / 0.10),
    transparent
  );
}

/* ============================================================
   TWO-COLUMN LAYOUT
   ============================================================ */

.terms-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 3rem;
  max-width: 1140px;
  margin: 0 auto;
  padding: 4rem 2rem 8rem;
  align-items: start;
}

/* ============================================================
   STICKY SIDEBAR TABLE OF CONTENTS
   ============================================================ */

.terms-toc {
  position: sticky;
  top: 100px;
  /* bg-white/5 + border-white/10 glassmorphic panel */
  background: rgb(255 255 255 / 0.04);
  border: 1px solid rgb(255 255 255 / 0.08);
  border-radius: 14px;
  padding: 1.5rem 1.25rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.terms-toc-title {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 0.28);
  margin: 0 0 1rem;
}

.terms-toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.terms-toc-list li a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 500;
  color: rgb(255 255 255 / 0.38);
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease;
  line-height: 1.35;
  border: 1px solid transparent;
}

.terms-toc-list li a:hover {
  color: #fff;
  /* bg-primary/10 on hover */
  background: rgb(209 3 239 / 0.08);
  border-color: rgb(209 3 239 / 0.12);
}

.terms-toc-list li a .toc-num {
  flex-shrink: 0;
  font-size: 0.65rem;
  font-weight: 700;
  color: rgb(209 3 239);
  opacity: 0.65;
  min-width: 18px;
}

.terms-toc-list li a:hover .toc-num {
  opacity: 1;
}

/* Active TOC link state (applied via JS) */
.terms-toc-list li a.toc-active {
  color: rgb(209 3 239);
  background: rgb(209 3 239 / 0.08);
  border-color: rgb(209 3 239 / 0.15);
}

.terms-toc-list li a.toc-active .toc-num {
  opacity: 1;
}

.toc-divider {
  margin: 0.8rem 0;
  height: 1px;
  /* from-transparent via-white/10 to-transparent */
  background: linear-gradient(
    90deg,
    transparent,
    rgb(255 255 255 / 0.08),
    transparent
  );
}

.toc-final-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgb(209 3 239);
  text-decoration: none;
  /* bg-primary/8 + border-primary/20 */
  background: rgb(209 3 239 / 0.07);
  border: 1px solid rgb(209 3 239 / 0.18);
  margin-top: 0.5rem;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.toc-final-link:hover {
  background: rgb(209 3 239 / 0.14);
  border-color: rgb(209 3 239 / 0.30);
}

/* ============================================================
   MAIN CONTENT AREA
   ============================================================ */

.terms-content {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

/* ── Preamble card ── */
/* bg-gradient-to-br from-primary/20 to-secondary/20 */
.terms-preamble {
  background: linear-gradient(
    to bottom right,
    rgb(209 3 239 / 0.08),
    rgb(92 26 255 / 0.08)
  );
  border: 1px solid rgb(209 3 239 / 0.18);
  border-top-color: rgb(209 3 239 / 0.35);
  border-left-color: rgb(92 26 255 / 0.20);
  border-radius: 14px;
  padding: 1.5rem 1.75rem;
  color: rgb(255 255 255 / 0.62);
  font-size: 0.925rem;
  line-height: 1.8;
}

.terms-preamble strong {
  color: #fff;
  font-weight: 600;
}

/* ── Section cards ── */
.terms-section {
  /* bg-black/10 glass card */
  background: rgb(0 0 0 / 0.20);
  border: 1px solid rgb(255 255 255 / 0.07);
  border-radius: 16px;
  padding: 2rem 2rem 1.75rem;
  scroll-margin-top: 110px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.terms-section:hover {
  /* on hover: subtle primary glow — border-primary/50 concept */
  border-color: rgb(209 3 239 / 0.22);
  background: rgb(209 3 239 / 0.04);
  box-shadow: 0 0 40px -20px rgb(209 3 239 / 0.3);
}

/* ── Section 8 Alert Variant (Cancellation & Refund) ── */

/* Card: amber-tinted to signal importance */
.terms-section--alert {
  background: rgb(251 146 60 / 0.04);
  border-color: rgb(251 146 60 / 0.15);
}

.terms-section--alert:hover {
  border-color: rgb(251 146 60 / 0.35);
  background: rgb(251 146 60 / 0.06);
  box-shadow: 0 0 40px -20px rgb(251 146 60 / 0.25);
}

/* Badge: amber instead of primary purple */
.terms-section-badge--alert {
  background: rgb(251 146 60 / 0.12);
  border-color: rgb(251 146 60 / 0.30);
  color: rgb(251 146 60);
}

/* Divider: amber fade */
.terms-section-divider--alert {
  background: linear-gradient(
    90deg,
    rgb(251 146 60 / 0.30),
    rgb(251 146 60 / 0.08) 40%,
    transparent
  );
}

/* Bullet: amber dot */
.terms-bullet--alert {
  background: linear-gradient(135deg, rgb(251 146 60), rgb(239 68 68));
}

/* "ABSOLUTELY NO..." headline label */
.terms-alert-label {
  display: inline;
  color: rgb(251 146 60);
  font-weight: 800;
  letter-spacing: 0.01em;
}

/* Section header row */
.terms-section-header {

  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

/* Numbered badge — bg-primary/10 border-primary/30 */
.terms-section-badge {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgb(209 3 239 / 0.10);
  border: 1px solid rgb(209 3 239 / 0.25);
  font-size: 0.875rem;
  font-weight: 800;
  color: rgb(209 3 239);
  letter-spacing: -0.01em;
}

.terms-section-title-group {
  flex: 1;
}

.terms-section-number {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 0.22);
  margin: 0 0 4px;
  line-height: 1;
}

.terms-section-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

/* Divider under section header — from-primary/10 → transparent */
.terms-section-divider {
  height: 1px;
  /* border-t-primary/50 concept, fades right */
  background: linear-gradient(
    90deg,
    rgb(209 3 239 / 0.20),
    rgb(92 26 255 / 0.10) 40%,
    transparent
  );
  margin-bottom: 1.5rem;
}

/* ── List items ── */
.terms-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.terms-list > li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: rgb(255 255 255 / 0.60);
  line-height: 1.7;
}

/* Bullet dot — bg-gradient-to-br from-primary to-secondary */
.terms-bullet {
  flex-shrink: 0;
  margin-top: 0.48rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgb(209 3 239), rgb(92 26 255));
}

/* ── Sub-list ── */
.terms-sublist {
  list-style: none;
  margin: 0.75rem 0 0 1.5rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.terms-sublist > li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.86rem;
  color: rgb(255 255 255 / 0.42);
  line-height: 1.65;
}

/* Sub-bullet — smaller, secondary color */
.terms-sub-bullet {
  flex-shrink: 0;
  margin-top: 0.52rem;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgb(209 3 239 / 0.55);
}

/* ── Emphasis inside list items ── */
.terms-list strong,
.terms-sublist strong {
  color: rgb(255 255 255 / 0.88);
  font-weight: 600;
}

/* ============================================================
   FINAL DECLARATION
   bg-gradient-to-br from-primary/20 to-secondary/20
   ============================================================ */

.terms-declaration {
  position: relative;
  border-radius: 18px;
  padding: 2.25rem 2rem;
  overflow: hidden;
  /* Matching the Tailwind from-primary/20 to-secondary/20 gradient */
  background: linear-gradient(
    to bottom right,
    rgb(209 3 239 / 0.12) 0%,
    rgb(0 0 0 / 0.20)      50%,
    rgb(92 26 255 / 0.12)  100%
  );
  /* border-primary/50 */
  border: 1px solid rgb(209 3 239 / 0.28);
  border-bottom-color: rgb(92 26 255 / 0.28);
  scroll-margin-top: 110px;
}

/* Radial inner glow — from-primary/20 at top-left */
.terms-declaration::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 55% 70% at 0% 0%,
    rgb(209 3 239 / 0.14),
    transparent 65%
  );
  pointer-events: none;
}

/* Secondary radial at bottom-right — from-secondary/20 */
.terms-declaration::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 50% 60% at 100% 100%,
    rgb(92 26 255 / 0.12),
    transparent 65%
  );
  pointer-events: none;
}

.terms-declaration-icon {
  position: relative;
  z-index: 1;
  width: 48px;
  height: 48px;
  /* bg-gradient-to-br from-primary to-secondary */
  background: linear-gradient(135deg, rgb(209 3 239), rgb(92 26 255));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  box-shadow: 0 0 24px -6px rgb(209 3 239 / 0.6);
}

.terms-declaration h2 {
  position: relative;
  z-index: 1;
  font-size: 1.35rem;
  font-weight: 800;
  /* from-white to-white/80 gradient text */
  background: linear-gradient(to right, #fff, rgb(255 255 255 / 0.78));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.025em;
  margin: 0 0 1rem;
  line-height: 1.2;
}

.terms-declaration p {
  position: relative;
  z-index: 1;
  font-size: 0.925rem;
  color: rgb(255 255 255 / 0.58);
  line-height: 1.8;
  margin: 0;
}

.terms-declaration strong {
  color: #fff;
  font-weight: 600;
}

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */

/* Tablet */
@media (max-width: 1024px) {
  .terms-layout {
    grid-template-columns: 200px 1fr;
    gap: 2rem;
    padding: 3rem 1.5rem 6rem;
  }

  .terms-hero {
    padding: 9rem 1.5rem 4rem;
  }
}

/* Large mobile / small tablet */
@media (max-width: 768px) {
  .terms-hero {
    padding: 8rem 1.25rem 3rem;
  }

  .terms-layout {
    grid-template-columns: 1fr;
    padding: 2rem 1.25rem 5rem;
    gap: 2rem;
  }

  .terms-toc {
    position: static;
  }

  .terms-toc-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .toc-divider {
    grid-column: 1 / -1;
  }



  .terms-section {
    padding: 1.5rem 1.25rem 1.25rem;
  }

  .terms-declaration {
    padding: 1.75rem 1.25rem;
  }

  /* Slightly reduce hero heading */
  .terms-hero h1 {
    font-size: clamp(2.2rem, 8vw, 3.5rem);
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .terms-toc-list {
    display: flex;
    flex-direction: column;
  }

  .terms-section-badge {
    width: 34px;
    height: 34px;
    font-size: 0.75rem;
    border-radius: 8px;
  }

  .terms-section-title {
    font-size: 1rem;
  }

  .terms-list > li {
    font-size: 0.85rem;
  }

  .terms-sublist > li {
    font-size: 0.82rem;
  }

  .terms-preamble {
    font-size: 0.875rem;
    padding: 1.25rem;
  }

  .terms-declaration {
    padding: 1.5rem 1rem;
  }

  .terms-declaration h2 {
    font-size: 1.15rem;
  }

  .terms-declaration p {
    font-size: 0.875rem;
  }
}
