/* ==========================================================================
   PAGES/LEGAL.CSS
   Legal pages only (privacy-policy.php, terms.php).
   ========================================================================== */

/* ==========================================================================
   LEGAL PAGES — PRIVACY POLICY & TERMS
   ========================================================================== */

/* ── Hero Banner (Constellation Dark Mesh) ── */
.legal-hero {
  background-color: #080E1E;
  background-image:
    radial-gradient(circle at 50% 20%, rgba(99, 102, 241, 0.18) 0%, transparent 60%),
    radial-gradient(circle at 80% 80%, rgba(255, 107, 74, 0.12) 0%, transparent 50%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='800' height='400' viewBox='0 0 800 400'%3E%3Cdefs%3E%3Cstyle%3E.line%7Bstroke:%236366f1;stroke-width:1;stroke-opacity:0.18;%7D.dot%7Bfill:%23a5b4fc;fill-opacity:0.35;%7D%3C/style%3E%3C/defs%3E%3Cg%3E%3Cline x1='80' y1='60' x2='220' y2='110' class='line'/%3E%3Cline x1='220' y1='110' x2='340' y2='40' class='line'/%3E%3Cline x1='340' y1='40' x2='480' y2='120' class='line'/%3E%3Cline x1='480' y1='120' x2='620' y2='70' class='line'/%3E%3Cline x1='620' y1='70' x2='740' y2='140' class='line'/%3E%3Cline x1='220' y1='110' x2='160' y2='240' class='line'/%3E%3Cline x1='160' y1='240' x2='290' y2='310' class='line'/%3E%3Cline x1='290' y1='310' x2='450' y2='260' class='line'/%3E%3Cline x1='450' y1='260' x2='480' y2='120' class='line'/%3E%3Cline x1='450' y1='260' x2='590' y2='330' class='line'/%3E%3Cline x1='590' y1='330' x2='700' y2='230' class='line'/%3E%3Cline x1='700' y1='230' x2='620' y2='70' class='line'/%3E%3Cline x1='700' y1='230' x2='740' y2='140' class='line'/%3E%3Cline x1='340' y1='40' x2='450' y2='260' class='line'/%3E%3Ccircle cx='80' cy='60' r='3.5' class='dot'/%3E%3Ccircle cx='220' cy='110' r='4' class='dot'/%3E%3Ccircle cx='340' cy='40' r='3' class='dot'/%3E%3Ccircle cx='480' cy='120' r='4.5' class='dot'/%3E%3Ccircle cx='620' cy='70' r='3.5' class='dot'/%3E%3Ccircle cx='740' cy='140' r='4' class='dot'/%3E%3Ccircle cx='160' cy='240' r='3' class='dot'/%3E%3Ccircle cx='290' cy='310' r='4' class='dot'/%3E%3Ccircle cx='450' cy='260' r='4.5' class='dot'/%3E%3Ccircle cx='590' cy='330' r='3.5' class='dot'/%3E%3Ccircle cx='700' cy='230' r='4' class='dot'/%3E%3C/g%3E%3C/svg%3E");
  background-size: cover;
  background-position: center;
  padding: 76px 24px 44px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.legal-hero-inner {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  z-index: 2;
}

.legal-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 107, 74, 0.12);
  border: 1px solid rgba(255, 107, 74, 0.35);
  color: #ff9b82;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
  backdrop-filter: blur(8px);
}

.legal-hero-badge svg,
.legal-hero-badge i {
  width: 14px;
  height: 14px;
}

.legal-hero-title {
  font-family: 'Sora', sans-serif;
  font-size: clamp(2.1rem, 4.5vw, 3.2rem);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 14px;
  line-height: 1.15;
  letter-spacing: -0.025em;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

.legal-hero-sub {
  color: #94a3b8;
  font-size: 1.05rem;
  margin: 0 auto 24px;
  line-height: 1.65;
  max-width: 650px;
}

.legal-hero-meta {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  color: #94a3b8;
  font-size: 13px;
}

.legal-hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 6px 14px;
  border-radius: 999px;
  color: #cbd5e1;
}

.legal-hero-meta svg,
.legal-hero-meta i {
  width: 14px;
  height: 14px;
  color: #ff8a65;
  stroke: #ff8a65;
}

/* ── Hero tab nav ── */
.lp-hero-tabs {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 32px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 4px;
  backdrop-filter: blur(12px);
}

.lp-hero-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 24px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  color: #94a3b8;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.lp-hero-tab svg,
.lp-hero-tab i {
  width: 15px;
  height: 15px;
}

.lp-hero-tab:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.lp-hero-tab.lp-hero-tab-active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.lp-hero-tab.lp-hero-tab-active svg,
.lp-hero-tab.lp-hero-tab-active i {
  color: #ff6b4a;
  stroke: #ff6b4a;
}

/* ── Main Page Layout (Two-Column Sidebar + Content) ── */
.lp-page {
  background-color: #f8fafc;
  background-image: radial-gradient(rgba(226, 232, 240, 0.5) 1px, transparent 1px);
  background-size: 24px 24px;
  min-height: 70vh;
  padding: 48px 0 80px;
}

.lp-layout-container {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 44px;
  align-items: start;
}

/* ── Sticky Table of Contents Sidebar (matching image) ── */
.lp-toc-sidebar {
  position: sticky;
  top: 92px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

.lp-toc-sidebar::-webkit-scrollbar {
  width: 4px;
}

.lp-toc-sidebar::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.lp-toc-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 22px 16px;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
}

.lp-toc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px 14px 8px;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 12px;
}

.lp-toc-title {
  font-family: 'Sora', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.01em;
}

.lp-toc-badge {
  font-size: 11px;
  font-weight: 700;
  background: #f1f5f9;
  color: #64748b;
  padding: 2px 8px;
  border-radius: 999px;
}

.lp-toc-nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.lp-toc-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  color: #475569;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.35;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.lp-toc-link svg,
.lp-toc-link i {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: #94a3b8;
  stroke: #94a3b8;
  stroke-width: 2;
  transition: color 0.2s, stroke 0.2s;
}

.lp-toc-link span {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lp-toc-link:hover {
  background: #f1f5f9;
  color: #0f172a;
  padding-left: 14px;
}

.lp-toc-link:hover svg,
.lp-toc-link:hover i {
  color: #ff6b4a;
  stroke: #ff6b4a;
}

.lp-toc-link.active {
  background: #fff5f2;
  color: #c2410c;
  font-weight: 600;
  border-left: 3px solid #ff6b4a;
  padding-left: 12px;
}

.lp-toc-link.active svg,
.lp-toc-link.active i {
  color: #ea580c;
  stroke: #ea580c;
}

/* ── Content Column & Cards ── */
.lp-content-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.lp-card-section {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 36px 36px 32px;
  box-shadow: 0 4px 16px -4px rgba(15, 23, 42, 0.04);
  scroll-margin-top: 100px;
  position: relative;
  transition: border-color 0.25s ease;
}

.lp-card-section:hover {
  border-color: #cbd5e1;
}

.lp-sec-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f1f5f9;
}

.lp-sec-icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #fff5f2;
  border: 1px solid #ffe4dd;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.lp-sec-icon-wrap svg,
.lp-sec-icon-wrap i {
  width: 20px;
  height: 20px;
  color: #ea580c;
  stroke: #ea580c;
  stroke-width: 2;
}

.lp-sec-title-group {
  flex: 1;
}

.lp-sec-num {
  font-size: 11px;
  font-weight: 700;
  color: #ea580c;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 4px;
  display: block;
}

.lp-sec-title {
  font-family: 'Sora', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  line-height: 1.35;
  letter-spacing: -0.015em;
}

.lp-sec-body {
  font-size: 14.5px;
  color: #334155;
  line-height: 1.75;
}

.lp-sec-body p {
  margin-bottom: 16px;
  color: #334155;
}

.lp-sec-body p:last-child {
  margin-bottom: 0;
}

.lp-sub-title {
  font-family: 'Sora', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
  margin: 24px 0 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}

.lp-sub-title svg,
.lp-sub-title i {
  width: 15px;
  height: 15px;
  color: #ff6b4a;
  stroke: #ff6b4a;
}

/* ── Structured Lists (No Emojis) ── */
.lp-list {
  list-style: none;
  padding: 0;
  margin: 16px 0;
}

.lp-list li {
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
  font-size: 14px;
  line-height: 1.65;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.lp-list li:first-child {
  border-top: 1px solid #f1f5f9;
}

.lp-list li:last-child {
  border-bottom: none;
}

.lp-list-ico {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 3px;
}

.lp-list-ico-check {
  color: #16a34a;
  stroke: #16a34a;
}

.lp-list-ico-cross {
  color: #dc2626;
  stroke: #dc2626;
}

/* ── Modern Lucide Callouts (Replaced all emoji boxes) ── */
.lp-callout {
  display: flex;
  gap: 16px;
  border-radius: 12px;
  padding: 18px 20px;
  margin: 20px 0;
  font-size: 13.5px;
  line-height: 1.65;
  align-items: flex-start;
}

.lp-callout-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin-top: 2px;
}

.lp-callout strong {
  display: block;
  margin-bottom: 6px;
  font-size: 13.5px;
  font-weight: 700;
}

.lp-callout p {
  margin: 6px 0 0;
  color: inherit;
  font-size: 14px;
}

.lp-callout-green {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #15803d;
}

.lp-callout-green .lp-callout-icon {
  color: #16a34a;
  stroke: #16a34a;
}

.lp-callout-blue {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
}

.lp-callout-blue .lp-callout-icon {
  color: #2563eb;
  stroke: #2563eb;
}

.lp-callout-coral {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #c2410c;
}

.lp-callout-coral .lp-callout-icon {
  color: #ea580c;
  stroke: #ea580c;
}

.lp-callout-yellow {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #b45309;
}

.lp-callout-yellow .lp-callout-icon {
  color: #d97706;
  stroke: #d97706;
}

/* ── Modern Notice Box ── */
.lp-note {
  font-size: 14px;
  color: #334155;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 3px solid #64748b;
  border-radius: 8px;
  padding: 12px 16px;
  margin-top: 18px;
  line-height: 1.6;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.lp-note svg,
.lp-note i {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  color: #64748b;
  stroke: #64748b;
}

/* ── Services Grid (Terms page) ── */
.lp-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 20px 0;
}

.lp-service-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  transition: all 0.25s ease;
}

.lp-service-card:hover {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  transform: translateY(-2px);
}

.lp-service-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #fff5f2;
  border: 1px solid #ffe4dd;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.lp-service-icon-box svg,
.lp-service-icon-box i {
  width: 18px;
  height: 18px;
  color: #ea580c;
  stroke: #ea580c;
  stroke-width: 2;
}

.lp-service-card strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 6px;
}

.lp-service-card p {
  font-size: 14px;
  color: #334155;
  line-height: 1.55;
  margin: 0;
}

/* ── Payment Badges (Terms page) ── */
.lp-payment-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0;
}

.lp-payment-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.lp-payment-badge svg,
.lp-payment-badge i {
  width: 15px;
  height: 15px;
  color: #ea580c;
  stroke: #ea580c;
}

/* ── Table (Turnaround) ── */
.lp-table-wrap {
  overflow-x: auto;
  margin: 20px 0;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.lp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.lp-table th {
  background: #f8fafc;
  color: #0f172a;
  font-weight: 700;
  padding: 13px 18px;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.lp-table td {
  padding: 13px 18px;
  border-bottom: 1px solid #f1f5f9;
  color: #475569;
  line-height: 1.5;
}

.lp-table tr:last-child td {
  border-bottom: none;
}

.lp-table tr:hover td {
  background: #fafbfd;
}

/* ── Refund Box ── */
.lp-refund-box {
  border-radius: 14px;
  border: 1px solid #fecdd3;
  overflow: hidden;
  scroll-margin-top: 100px; /* footer "Refund & Cancellation" link lands below the sticky header */
  margin: 24px 0;
  box-shadow: 0 4px 16px rgba(225, 29, 72, 0.04);
}

.lp-refund-header {
  background: linear-gradient(135deg, #fff1f2, #ffe4e6);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #fecdd3;
}

.lp-refund-header svg,
.lp-refund-header i {
  width: 20px;
  height: 20px;
  color: #e11d48;
  stroke: #e11d48;
}

.lp-refund-header h3 {
  font-family: 'Sora', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #9f1239;
  margin: 0;
}

.lp-refund-body {
  padding: 24px;
  background: #ffffff;
}

.lp-refund-body>p {
  color: #475569;
  font-size: 14px;
  margin-bottom: 18px;
}

.lp-refund-rule {
  display: flex;
  gap: 14px;
  background: #fff1f2;
  border: 1px solid #fecdd3;
  border-radius: 10px;
  padding: 16px 18px;
  margin-bottom: 14px;
  font-size: 13.5px;
  color: #9f1239;
  line-height: 1.6;
}

.lp-refund-rule svg,
.lp-refund-rule i {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  color: #e11d48;
  stroke: #e11d48;
}

.lp-refund-rule strong {
  display: block;
  margin-bottom: 6px;
  color: #881337;
}

.lp-refund-rule-green {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #14532d;
}

.lp-refund-rule-green svg,
.lp-refund-rule-green i {
  color: #16a34a;
  stroke: #16a34a;
}

.lp-refund-rule-green strong {
  color: #14532d;
}

/* ── Contact Grid (No emojis) ── */
.lp-contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.lp-contact-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  transition: all 0.25s ease;
}

.lp-contact-card:hover {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05);
  transform: translateY(-2px);
}

.lp-contact-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #fff5f2;
  border: 1px solid #ffe4dd;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.lp-contact-icon-box svg,
.lp-contact-icon-box i {
  width: 16px;
  height: 16px;
  color: #ea580c;
  stroke: #ea580c;
}

.lp-contact-card strong {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 6px;
}

.lp-contact-card p {
  font-size: 14px;
  color: #334155;
  margin: 0 0 6px;
  line-height: 1.55;
}

.lp-hours {
  font-size: 12px;
  color: #94a3b8;
}

.lp-link {
  color: #ea580c;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.lp-link:hover {
  color: #c2410c;
  text-decoration: underline;
}

/* ── Bottom Navigation Bar ── */
.lp-bottom-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 32px 0 0;
  border-top: 1px solid #e2e8f0;
  margin-top: 16px;
  flex-wrap: wrap;
}

.lp-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
}

.lp-btn svg,
.lp-btn i {
  width: 16px;
  height: 16px;
}

.lp-btn-ghost {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #475569;
}

.lp-btn-ghost:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #0f172a;
}

.lp-btn-primary {
  background: #ff6b4a;
  color: #ffffff;
  border: 1px solid #ff6b4a;
}

.lp-btn-primary:hover {
  background: #ea580c;
  border-color: #ea580c;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 107, 74, 0.25);
}

@media (max-width: 991px) {
  .lp-layout-container {
    grid-template-columns: minmax(0, 1fr); /* minmax: the nowrap TOC labels must not widen the page */
    gap: 24px;
    padding: 0 16px;
  }

  .lp-toc-sidebar {
    position: static;
    max-height: none;
    top: auto;
  }

  .lp-toc-card {
    padding: 16px;
  }

  .lp-toc-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 4px;
  }

  .lp-card-section {
    padding: 24px 20px;
  }

  .lp-sec-title {
    font-size: 1.2rem;
  }
}

@media (max-width: 600px) {
  .legal-hero {
    padding: 56px 16px 36px;
  }

  .lp-toc-nav {
    grid-template-columns: 1fr;
  }

  .lp-bottom-nav {
    flex-direction: column;
    align-items: stretch;
  }

  .lp-btn {
    justify-content: center;
  }
}

/* Privacy / Terms hero tabs fit a 360px phone (were 370px wide) */
@media (max-width: 400px) {
  .lp-hero-tab {
    padding: 9px 12px;
  }
}
