/* ============================================================
   JAOTECH DIGITAL INSTITUTE
   Legal Pages Shared Styles (Privacy Policy and Terms of Use)
   ============================================================ */

/* LEGAL HERO */
.legal-hero {
  padding: 150px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.legal-hero-glow {
  position: absolute;
  top: -150px; left: 50%;
  transform: translateX(-50%);
  width: 700px; height: 500px;
  background: radial-gradient(ellipse, rgba(26, 26, 255, 0.09) 0%, rgba(102, 0, 204, 0.05) 40%, transparent 70%);
  pointer-events: none;
}
.legal-meta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 28px;
  padding: 12px 24px;
  background: var(--white-ghost);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.76rem;
  color: var(--white-soft);
  font-family: var(--font-heading);
  font-weight: 500;
  letter-spacing: 0.04em;
}
.legal-meta-sep {
  color: var(--border-blue);
  font-size: 0.6rem;
}

/* LEGAL LAYOUT */
.legal-content-section { background: var(--black); }
.legal-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 56px;
  align-items: flex-start;
}

/* TABLE OF CONTENTS */
.legal-toc {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.legal-toc-card {
  background: var(--black-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
}
.legal-toc-title {
  font-family: var(--font-heading);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--white);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.legal-toc-list {
  list-style: none;
  counter-reset: toc-counter;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.legal-toc-list li {
  counter-increment: toc-counter;
}
.legal-toc-list li a {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 7px 10px;
  border-radius: var(--radius);
  font-size: 0.78rem;
  color: var(--white-soft);
  font-family: var(--font-heading);
  font-weight: 500;
  transition: var(--transition);
  line-height: 1.45;
}
.legal-toc-list li a::before {
  content: counter(toc-counter, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 0.56rem;
  color: var(--blue-light);
  opacity: 0.7;
  flex-shrink: 0;
  margin-top: 2px;
  letter-spacing: 0.06em;
}
.legal-toc-list li a:hover {
  color: var(--white);
  background: var(--white-ghost);
}
.legal-toc-note {
  background: var(--black-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.legal-toc-note p {
  font-size: 0.80rem;
  color: var(--white-soft);
  line-height: 1.6;
  margin-bottom: 0;
}

/* LEGAL BODY */
.legal-body {
  max-width: 780px;
}

/* INTRO BLOCK */
.legal-intro-block {
  background: var(--black-card);
  border: 1px solid var(--border-blue);
  border-left: 3px solid var(--blue);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  padding: 28px 32px;
  margin-bottom: 48px;
}
.legal-intro-block p {
  font-size: 0.94rem;
  color: var(--white-dim);
  line-height: 1.82;
  margin-bottom: 14px;
}
.legal-intro-block p:last-child { margin-bottom: 0; }

/* LEGAL SECTION */
.legal-section {
  margin-bottom: 52px;
  padding-bottom: 52px;
  border-bottom: 1px solid var(--border);
}
.legal-section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}
.legal-section-title {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.3;
  color: var(--white);
}
.legal-section-num {
  font-family: var(--font-display);
  font-size: 0.60rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.16em;
  background: var(--gold-glow);
  border: 1px solid rgba(255, 215, 0, 0.2);
  padding: 4px 10px;
  border-radius: 100px;
  flex-shrink: 0;
}
.legal-section p {
  font-size: 0.92rem;
  color: var(--white-soft);
  line-height: 1.82;
  margin-bottom: 16px;
}
.legal-section p:last-child { margin-bottom: 0; }

/* LEGAL LIST */
.legal-list {
  margin: 16px 0 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.legal-list-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.legal-list-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue-light);
  flex-shrink: 0;
  margin-top: 8px;
  box-shadow: 0 0 6px rgba(77, 77, 255, 0.4);
}
.legal-list-item span {
  font-size: 0.90rem;
  color: var(--white-soft);
  line-height: 1.72;
}

/* LEGAL CONTACT BLOCK */
.legal-contact-block {
  margin-top: 20px;
  background: var(--black-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.legal-contact-item {
  display: flex;
  align-items: center;
  gap: 0;
  border-bottom: 1px solid var(--border);
}
.legal-contact-item:last-child { border-bottom: none; }
.legal-contact-label {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--white-soft);
  padding: 14px 20px;
  min-width: 120px;
  border-right: 1px solid var(--border);
  background: var(--white-ghost);
}
.legal-contact-item a {
  font-size: 0.88rem;
  color: var(--blue-light);
  padding: 14px 20px;
  transition: var(--transition);
  font-family: var(--font-heading);
  font-weight: 600;
}
.legal-contact-item a:hover { color: var(--gold); }
