/* ============================================================
   CYBERLEX — Legal Pages Shared Styles
   Covers: Privacy Policy, Terms of Service, Disclaimer,
           Refund Policy
============================================================ */

/* ===== LEGAL HERO ===== */
.legal-hero {
  position: relative;
  background: var(--navy);
  padding: 60px 0 56px;
  overflow: hidden;
}

.legal-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 80% at 90% 50%, rgba(201,168,76,0.07) 0%, transparent 65%),
    radial-gradient(ellipse 50% 60% at 5% 50%, rgba(26,58,110,0.7) 0%, transparent 55%);
  pointer-events: none;
}

.legal-hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.legal-breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 28px;
}

.legal-breadcrumb a {
  color: rgba(255,255,255,0.55);
  transition: color 0.25s;
  display: flex;
  align-items: center;
  gap: 5px;
}

.legal-breadcrumb a:hover { color: var(--gold); }
.legal-breadcrumb i.fa-chevron-right { font-size: 0.65rem; }
.legal-breadcrumb span { color: var(--gold); font-weight: 600; }

.legal-hero-icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, rgba(201,168,76,0.18), rgba(201,168,76,0.06));
  border: 1.5px solid rgba(201,168,76,0.3);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.9rem;
  color: var(--gold);
  margin: 0 auto 22px;
}

.legal-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 12px;
  line-height: 1.2;
}

.legal-hero > .container > p,
.legal-hero-inner > p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.62);
  max-width: 520px;
  margin: 0 auto 24px;
  line-height: 1.65;
}

.legal-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.legal-meta span {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
  font-weight: 500;
}

.legal-meta i { color: var(--gold); }

/* ===== LEGAL MAIN LAYOUT ===== */
.legal-main {
  padding: 60px 0 80px;
  background: var(--off-white);
}

.legal-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  align-items: start;
}

/* ===== TABLE OF CONTENTS SIDEBAR ===== */
.legal-toc {
  position: sticky;
  top: 90px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(10,22,40,0.08);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.toc-header {
  background: var(--navy);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.toc-header i { color: var(--gold); }

.legal-toc nav {
  padding: 12px 0;
}

.legal-toc nav a {
  display: block;
  padding: 8px 20px;
  font-size: 0.84rem;
  color: #4a5e80;
  font-weight: 500;
  transition: all 0.2s;
  border-left: 3px solid transparent;
  line-height: 1.4;
}

.legal-toc nav a:hover,
.legal-toc nav a.active {
  color: var(--navy);
  background: rgba(201,168,76,0.07);
  border-left-color: var(--gold);
}

/* ===== LEGAL CONTENT ARTICLE ===== */
.legal-content {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(10,22,40,0.07);
  box-shadow: var(--shadow-sm);
  padding: 40px 44px;
}

/* Intro Box */
.legal-intro-box {
  display: flex;
  gap: 16px;
  background: rgba(201,168,76,0.06);
  border: 1px solid rgba(201,168,76,0.2);
  border-left: 4px solid var(--gold);
  border-radius: 10px;
  padding: 20px 22px;
  margin-bottom: 40px;
}

.legal-intro-box.alert-box {
  background: rgba(232,51,74,0.05);
  border-color: rgba(232,51,74,0.2);
  border-left-color: var(--danger);
}

.legal-intro-box i {
  font-size: 1.3rem;
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 2px;
}

.alert-box i { color: var(--danger); }

.legal-intro-box p {
  font-size: 0.92rem;
  color: #4a5e80;
  line-height: 1.7;
  margin: 0;
}

/* ===== LEGAL SECTION ===== */
.legal-section {
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(10,22,40,0.07);
  scroll-margin-top: 90px;
}

.legal-section:last-of-type {
  border-bottom: none;
  margin-bottom: 32px;
  padding-bottom: 0;
}

.legal-section h2 {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 2px solid rgba(201,168,76,0.2);
}

.sec-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: var(--navy);
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 800;
  border-radius: 8px;
  flex-shrink: 0;
  font-family: var(--font-body);
}

.legal-section h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin: 22px 0 10px;
}

.legal-section p {
  font-size: 0.93rem;
  color: #4a5e80;
  line-height: 1.8;
  margin-bottom: 14px;
}

.legal-section a {
  color: var(--gold-dim);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.legal-section a:hover { color: var(--gold); }

.legal-section ul,
.legal-section ol {
  padding-left: 0;
  margin-bottom: 16px;
}

.legal-section ul li,
.legal-section ol li {
  font-size: 0.92rem;
  color: #4a5e80;
  line-height: 1.7;
  padding: 5px 0 5px 28px;
  position: relative;
  border-bottom: 1px solid rgba(10,22,40,0.04);
}

.legal-section ul li::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 13px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

.legal-section ol {
  counter-reset: item;
}

.legal-section ol li {
  counter-increment: item;
}

.legal-section ol li::before {
  content: counter(item) ".";
  position: absolute;
  left: 0;
  top: 5px;
  font-weight: 700;
  color: var(--gold);
  font-size: 0.85rem;
}

.legal-section ul li i {
  position: absolute;
  left: 6px;
  top: 9px;
  color: var(--gold);
  font-size: 0.85rem;
}

/* ===== HIGHLIGHT BOXES ===== */
.highlight-box {
  display: flex;
  gap: 14px;
  border-radius: 10px;
  padding: 18px 20px;
  margin: 20px 0;
}

.highlight-box.warning {
  background: rgba(232,51,74,0.05);
  border: 1px solid rgba(232,51,74,0.2);
  border-left: 4px solid var(--danger);
}

.highlight-box.info {
  background: rgba(10,22,40,0.04);
  border: 1px solid rgba(10,22,40,0.1);
  border-left: 4px solid var(--navy-light);
}

.highlight-box i {
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.highlight-box.warning i { color: var(--danger); }
.highlight-box.info i { color: var(--navy-light); }

.highlight-box p {
  font-size: 0.88rem;
  color: #4a5e80;
  line-height: 1.65;
  margin: 0;
}

/* ===== LEGAL TABLE ===== */
.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0 24px;
  font-size: 0.88rem;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(10,22,40,0.06);
}

.legal-table thead tr {
  background: var(--navy);
  color: var(--white);
}

.legal-table th {
  padding: 13px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.legal-table th:first-child { color: var(--gold); }

.legal-table tbody tr {
  border-bottom: 1px solid rgba(10,22,40,0.07);
  transition: background 0.2s;
}

.legal-table tbody tr:last-child { border-bottom: none; }
.legal-table tbody tr:nth-child(even) { background: rgba(10,22,40,0.02); }
.legal-table tbody tr:hover { background: rgba(201,168,76,0.04); }

.legal-table td {
  padding: 12px 16px;
  color: #4a5e80;
  vertical-align: top;
  line-height: 1.55;
}

/* ===== PURPOSE GRID (Services grid in legal pages) ===== */
.purpose-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 20px 0 24px;
}

.purpose-card {
  background: var(--off-white);
  border: 1px solid rgba(10,22,40,0.08);
  border-radius: 12px;
  padding: 20px 18px;
  transition: all 0.25s;
}

.purpose-card:hover {
  border-color: rgba(201,168,76,0.3);
  background: rgba(201,168,76,0.04);
}

.purpose-card > i {
  font-size: 1.4rem;
  color: var(--gold);
  margin-bottom: 10px;
  display: block;
}

.purpose-card h4 {
  font-size: 0.93rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 7px;
}

.purpose-card p {
  font-size: 0.84rem;
  color: #5a6e8a;
  line-height: 1.6;
  margin: 0;
}

/* ===== RIGHTS GRID ===== */
.rights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 20px 0;
}

.right-item {
  background: var(--off-white);
  border: 1px solid rgba(10,22,40,0.08);
  border-radius: 12px;
  padding: 20px 16px;
  text-align: center;
  transition: all 0.25s;
}

.right-item:hover {
  border-color: rgba(201,168,76,0.3);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.right-icon {
  width: 46px;
  height: 46px;
  background: var(--navy);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--gold);
  margin: 0 auto 12px;
}

.right-item h4 {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 7px;
}

.right-item p {
  font-size: 0.8rem;
  color: #5a6e8a;
  line-height: 1.6;
  margin: 0;
}

/* ===== CONTACT BLOCK ===== */
.contact-block {
  background: var(--off-white);
  border: 1px solid rgba(10,22,40,0.08);
  border-radius: 12px;
  overflow: hidden;
  margin-top: 16px;
}

.contact-block-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(10,22,40,0.07);
  transition: background 0.2s;
}

.contact-block-item:last-child { border-bottom: none; }
.contact-block-item:hover { background: rgba(201,168,76,0.04); }

.contact-block-item > i {
  width: 40px;
  height: 40px;
  background: var(--navy);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--gold);
  flex-shrink: 0;
}

.contact-block-item > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.contact-block-item strong {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact-block-item span,
.contact-block-item a {
  font-size: 0.92rem;
  color: var(--navy);
  font-weight: 500;
}

.contact-block-item a:hover { color: var(--gold); }

/* ===== REFUND CARDS ===== */
.refund-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 20px 0 24px;
}

.refund-card {
  border-radius: 12px;
  padding: 20px;
  border: 1px solid;
}

.refund-card.eligible {
  background: rgba(29,185,84,0.04);
  border-color: rgba(29,185,84,0.2);
}

.refund-card.non-eligible {
  background: rgba(232,51,74,0.04);
  border-color: rgba(232,51,74,0.18);
}

.refund-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.refund-card-header i {
  font-size: 1.1rem;
}

.refund-card.eligible .refund-card-header i { color: #1DB954; }
.refund-card.non-eligible .refund-card-header i { color: var(--danger); }

.refund-card-header h4 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0;
}

.refund-card p {
  font-size: 0.84rem;
  color: #5a6e8a;
  line-height: 1.65;
  margin: 0;
}

/* ===== STEPS LIST (Refund request process) ===== */
.steps-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 20px 0;
  position: relative;
}

.steps-list::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 40px;
  bottom: 40px;
  width: 2px;
  background: linear-gradient(to bottom, var(--gold), rgba(201,168,76,0.1));
}

.step-list-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 16px 0;
  position: relative;
}

.step-num {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  font-size: 0.9rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 3px solid var(--white);
  box-shadow: 0 2px 8px rgba(10,22,40,0.15);
  position: relative;
  z-index: 1;
}

.step-content h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 5px;
}

.step-content p {
  font-size: 0.87rem;
  color: #5a6e8a;
  line-height: 1.65;
  margin: 0;
}

/* ===== LEGAL FOOTER NAV ===== */
.legal-footer-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 32px;
  border-top: 1px solid rgba(10,22,40,0.08);
  margin-top: 40px;
}

.other-policies {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.other-policies span {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

.other-policies a {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy-light);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.other-policies a:hover { color: var(--gold); }

/* ===== LEGAL FOOTER ===== */
.legal-footer {
  border-top: 1px solid rgba(255,255,255,0.04);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .legal-layout { grid-template-columns: 220px 1fr; }
  .legal-content { padding: 32px 28px; }
  .rights-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .legal-layout { grid-template-columns: 1fr; }
  .legal-toc { position: static; margin-bottom: 24px; }
  .purpose-grid { grid-template-columns: 1fr; }
  .refund-cards { grid-template-columns: 1fr; }
  .rights-grid { grid-template-columns: repeat(2, 1fr); }
  .legal-footer-nav { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 580px) {
  .legal-content { padding: 22px 18px; }
  .legal-section h2 { font-size: 1.25rem; gap: 10px; }
  .rights-grid { grid-template-columns: 1fr; }
  .purpose-grid { grid-template-columns: 1fr; }
  .legal-hero { padding: 44px 0 36px; }
  .legal-meta { flex-direction: column; gap: 8px; }
  .other-policies { flex-direction: column; align-items: flex-start; gap: 8px; }
  .steps-list::before { display: none; }
}
