/* ============================================
   LEGAL / INFORMATION PAGES — shared styles
   (Terms & Conditions, Privacy Policy,
   Cancellation & Refund Policy, Damage Policy,
   About Us, Contact Us)

   Uses the site design tokens (var(--accent)
   etc.) so the blue/red theme switcher works.
   ============================================ */

/* ---------- Hero ---------- */
.terms-hero {
  position: relative;
  min-height: 52vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 0;
  background: linear-gradient(135deg, #0a0f1e 0%, #111827 40%, #1a2332 70%, #0f172a 100%);
  overflow: hidden;
  text-align: center;
}
.terms-hero .container { width: 100%; position: relative; z-index: 2; }
.terms-hero-bg {
  position: absolute; inset: 0;
  opacity: 0.12;
  background-image: radial-gradient(circle at 20% 50%, var(--accent) 0%, transparent 50%),
                    radial-gradient(circle at 80% 50%, var(--accent) 0%, transparent 50%);
}
.terms-hero-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
.terms-hero-orb {
  position: absolute; width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  opacity: 0.16; top: -120px; right: -90px; animation: termsOrbFloat 8s ease-in-out infinite;
}
.terms-hero-orb-2 { top: auto; bottom: -140px; left: -110px; animation-delay: -4s; width: 300px; height: 300px; }
@keyframes termsOrbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(24px, -24px) scale(1.06); }
}
.terms-hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 18px; border-radius: 50px;
  background: rgba(var(--accent-rgb), 0.15);
  border: 1px solid rgba(var(--accent-rgb), 0.3);
  color: var(--accent-light, #93c5fd);
  font-size: 0.78rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  margin-bottom: 1.1rem;
}
.terms-hero-badge i { color: var(--accent-light, #93c5fd); font-size: 0.8rem; }
.terms-hero h1 {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  color: #fff; margin: 0 0 0.8rem; line-height: 1.15; font-weight: 800;
}
.terms-hero h1 .text-accent {
  background: linear-gradient(135deg, var(--accent-light, #60a5fa), var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.terms-hero p {
  color: rgba(255,255,255,0.7);
  max-width: 660px; margin: 0 auto 1.4rem;
  font-size: 0.95rem; line-height: 1.7;
}
.terms-hero-meta {
  display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap;
}
.terms-hero-meta span {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 50px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.8); font-size: 0.82rem; font-weight: 600;
}
.terms-hero-meta span i { color: var(--accent-light, #60a5fa); }

/* ---------- Layout ---------- */
.terms-page { padding: 4rem 0 5rem; }
.terms-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
}

/* ---------- Table of Contents (sticky sidebar) ---------- */
.terms-toc {
  position: sticky; top: 100px;
  background: #fff; border: 1px solid rgba(15,23,42,0.08);
  border-radius: 16px; padding: 1.4rem 1.4rem 1.2rem;
  box-shadow: 0 4px 24px rgba(15,23,42,0.05);
  max-height: calc(100vh - 130px); overflow-y: auto;
}
.terms-toc-head {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px;
  color: var(--text-secondary); margin: 0 0 0.9rem;
}
.terms-toc-head i { color: var(--accent); }
.terms-toc-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.terms-toc-list a {
  display: block; padding: 7px 10px; border-radius: 8px;
  font-size: 0.82rem; font-weight: 500; color: var(--text-secondary);
  text-decoration: none; border-left: 2px solid transparent;
  transition: all 0.2s ease;
}
.terms-toc-list a:hover { color: var(--accent); background: rgba(var(--accent-rgb), 0.06); }
.terms-toc-list a.active {
  color: var(--accent); background: rgba(var(--accent-rgb), 0.08);
  border-left-color: var(--accent); font-weight: 700;
}
.terms-toc-mobile { display: none; }
.terms-toc-mobile summary {
  cursor: pointer; list-style: none;
  display: flex; align-items: center; justify-content: space-between;
  background: #fff; border: 1px solid rgba(15,23,42,0.08);
  border-radius: 12px; padding: 14px 18px; font-weight: 700; font-size: 0.9rem;
  color: var(--text-primary); box-shadow: 0 4px 20px rgba(15,23,42,0.05);
}
.terms-toc-mobile summary::-webkit-details-marker { display: none; }
.terms-toc-mobile summary i { color: var(--accent); transition: transform 0.3s ease; }
.terms-toc-mobile[open] summary i.fa-chevron-down { transform: rotate(180deg); }
.terms-toc-mobile .terms-toc-list { padding: 12px 8px 6px; background: #fff; border: 1px solid rgba(15,23,42,0.08); border-top: none; border-radius: 0 0 12px 12px; margin-top: -8px; }

/* ---------- Content cards ---------- */
.terms-content { min-width: 0; }
.terms-intro {
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.06), rgba(var(--accent-rgb), 0.02));
  border: 1px solid rgba(var(--accent-rgb), 0.15);
  border-radius: 16px; padding: 1.6rem 1.8rem; margin-bottom: 1.6rem;
}
.terms-intro p { font-size: 0.92rem; line-height: 1.75; color: var(--text-primary); margin: 0; }
.terms-intro strong { color: var(--accent); }
.terms-section {
  background: #fff; border: 1px solid rgba(15,23,42,0.08);
  border-radius: 16px; padding: 1.9rem 1.9rem 1.6rem;
  box-shadow: 0 4px 24px rgba(15,23,42,0.04);
  margin-bottom: 1.6rem;
  scroll-margin-top: 110px;
}
.terms-section-head {
  display: flex; align-items: flex-start; gap: 14px; margin-bottom: 0.9rem;
}
.terms-section-icon {
  flex-shrink: 0;
  width: 42px; height: 42px; border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 1rem; margin-top: 2px;
  box-shadow: 0 6px 16px rgba(var(--accent-rgb), 0.25);
}
.terms-section-head h2 {
  font-size: 1.22rem; font-weight: 800; color: var(--text-primary);
  margin: 0; line-height: 1.3;
}
.terms-section-head .sec-num {
  display: block; font-size: 0.72rem; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: var(--accent); margin-top: 3px;
}
.terms-section p { font-size: 0.92rem; line-height: 1.75; color: var(--text-primary); margin: 0 0 0.8rem; }
.terms-section p:last-child { margin-bottom: 0; }
.terms-section ul { margin: 0 0 0.8rem; padding: 0; list-style: none; }
.terms-section ul:last-child { margin-bottom: 0; }
.terms-section ul li {
  position: relative; padding-left: 26px; margin-bottom: 0.55rem;
  font-size: 0.9rem; line-height: 1.7; color: var(--text-primary);
}
.terms-section ul li::before {
  content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900;
  position: absolute; left: 0; top: 2px; font-size: 0.72rem; color: var(--accent);
}
.terms-section ul.prohibited li::before { content: '\f05e'; color: var(--danger, #ef4444); }
.terms-section ul.responsibilities li::before { content: '\f007'; }
.terms-section ul.circumstances li::before { content: '\f0c2'; }
.terms-note {
  display: flex; align-items: flex-start; gap: 10px;
  background: rgba(var(--accent-rgb), 0.06);
  border-left: 3px solid var(--accent);
  border-radius: 0 10px 10px 0; padding: 12px 16px; margin-top: 1rem;
  font-size: 0.85rem; line-height: 1.65; color: var(--text-primary);
}
.terms-note i { color: var(--accent); margin-top: 2px; }
.terms-note strong { color: var(--accent); }
.terms-inline-link {
  color: var(--accent); font-weight: 600; text-decoration: none;
  border-bottom: 1px dashed var(--accent); transition: border-color 0.2s ease;
}
.terms-inline-link:hover { border-bottom-style: solid; }

/* ---------- Contact card ---------- */
.terms-contact {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px; padding: 2.2rem; margin-top: 1.6rem;
  position: relative; overflow: hidden;
}
.terms-contact::before {
  content: ''; position: absolute; top: -60px; right: -60px;
  width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.25) 0%, transparent 70%);
}
.terms-contact h3 {
  color: #fff; font-size: 1.35rem; font-weight: 800; margin: 0 0 0.4rem;
}
.terms-contact > p { color: rgba(255,255,255,0.65); font-size: 0.9rem; line-height: 1.7; margin: 0 0 1.4rem; max-width: 560px; }
.terms-contact-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px; position: relative; z-index: 1;
}
.terms-contact-item {
  display: flex; align-items: center; gap: 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 14px; padding: 14px 16px;
  transition: all 0.3s ease;
}
.terms-contact-item:hover { background: rgba(255,255,255,0.09); transform: translateY(-3px); border-color: rgba(var(--accent-rgb), 0.4); }
.terms-contact-item i {
  width: 40px; height: 40px; border-radius: 11px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: #fff; display: flex; align-items: center; justify-content: center; font-size: 0.95rem;
}
.terms-contact-item .label { display: block; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.8px; color: rgba(255,255,255,0.5); margin-bottom: 2px; }
.terms-contact-item .value { display: block; font-size: 0.92rem; font-weight: 700; color: #fff; }
.terms-contact-item a.value { text-decoration: none; }
.terms-contact-item a.value:hover { color: var(--accent-light, #93c5fd); }

/* ---------- CTA buttons (contact page etc.) ---------- */
.terms-cta-row {
  display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.4rem; position: relative; z-index: 1;
}
.terms-cta-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 26px; border-radius: 12px; text-decoration: none;
  font-size: 0.92rem; font-weight: 700; color: #fff;
  transition: all 0.3s ease;
}
.terms-cta-btn:hover { transform: translateY(-2px); }
.terms-cta-btn--wa { background: linear-gradient(135deg, #25d366, #1eb85d); box-shadow: 0 8px 22px rgba(37,211,102,0.3); }
.terms-cta-btn--wa:hover { box-shadow: 0 12px 28px rgba(37,211,102,0.45); }
.terms-cta-btn--call { background: linear-gradient(135deg, #2563eb, #1d4ed8); box-shadow: 0 8px 22px rgba(37,99,235,0.3); }
.terms-cta-btn--call:hover { box-shadow: 0 12px 28px rgba(37,99,235,0.45); }
.terms-cta-btn i:last-child { transition: transform 0.3s ease; }
.terms-cta-btn:hover i:last-child { transform: translateX(4px); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .terms-layout { grid-template-columns: 1fr; }
  .terms-toc { display: none; }
  .terms-toc-mobile { display: block; margin-bottom: 1.6rem; }
}
@media (max-width: 600px) {
  .terms-page { padding: 2.6rem 0 3.5rem; }
  .terms-section { padding: 1.5rem 1.2rem 1.3rem; }
  .terms-intro { padding: 1.3rem 1.2rem; }
  .terms-contact { padding: 1.6rem 1.2rem; }
  .terms-hero { min-height: auto; padding: 3rem 0; }
}

/* ---------- Notes inside the dark contact card ---------- */
.terms-contact .terms-note {
  background: rgba(255,255,255,0.06);
  border-left-color: var(--accent-light, #60a5fa);
  color: rgba(255,255,255,0.78);
}
.terms-contact .terms-note i { color: var(--accent-light, #93c5fd); }
.terms-contact .terms-note strong { color: var(--accent-light, #93c5fd); }

