/* ============================================
   POLICY / LEGAL PAGE STYLES
   Brain & Mind Foundation WordPress Theme
   ============================================
   Page hero for legal pages, legal content
   typography, table of contents, back link,
   and callout boxes.
   ============================================ */

/* ============================================
   PAGE HERO
   ============================================ */
.page-hero {
  background: var(--navy);
  padding: 160px 0 80px;
  position: relative;
  overflow: hidden;
}

/* Radial coral glow decoration */
.page-hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--coral-glow), transparent 70%);
  opacity: 0.12;
  pointer-events: none;
}

.page-hero-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 16px;
}

.page-hero-heading {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  font-weight: 500;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 16px;
}

.page-hero-sub {
  font-size: 1.05rem;
  color: var(--text-light-muted);
  max-width: 600px;
  line-height: 1.8;
}

.page-hero-meta {
  margin-top: 24px;
  font-size: 0.85rem;
  color: var(--text-light-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.page-hero-meta strong {
  color: var(--coral);
  font-weight: 600;
}

/* ============================================
   LEGAL CONTENT
   ============================================ */
.legal-content {
  padding: 80px 0 120px;
  background: var(--cream);
}

.legal-inner {
  max-width: 820px;
  margin: 0 auto;
}

/* ============================================
   LEGAL HEADINGS (h5 / h3)
   ============================================ */
.legal-inner h5,
.legal-inner h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--navy);
  margin-top: 56px;
  margin-bottom: 20px;
  line-height: 1.3;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--cream-dark);
}
.legal-inner h5:first-child {
  margin-top: 0;
}

/* ============================================
   LEGAL PARAGRAPHS
   ============================================ */
.legal-inner p {
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.85;
  margin-bottom: 16px;
}
.legal-inner p strong {
  color: var(--navy);
  font-weight: 600;
}

/* ============================================
   LEGAL LISTS
   ============================================ */
.legal-inner ol {
  margin: 16px 0 24px 0;
  padding-left: 24px;
  list-style-position: outside;
}
.legal-inner ol li {
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.85;
  margin-bottom: 12px;
  padding-left: 8px;
}
.legal-inner ol ol {
  margin-top: 12px;
  margin-bottom: 12px;
}

.legal-inner ul {
  margin: 12px 0 16px 0;
  padding-left: 24px;
  list-style: disc;
}
.legal-inner ul li {
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.85;
  margin-bottom: 8px;
  padding-left: 4px;
}

/* ============================================
   LEGAL LINKS
   ============================================ */
.legal-inner a {
  color: var(--coral);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(245, 132, 108, 0.3);
  transition: text-decoration-color 0.3s ease;
}
.legal-inner a:hover {
  text-decoration-color: var(--coral);
}

/* ============================================
   TABLE OF CONTENTS
   ============================================ */
.legal-toc {
  background: var(--white);
  border-radius: 16px;
  padding: 32px 36px;
  border: 1px solid rgba(0,0,0,0.05);
  margin-bottom: 48px;
}

.legal-toc-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 16px;
}

.legal-toc ol {
  margin: 0;
  padding-left: 20px;
}
.legal-toc ol li {
  margin-bottom: 6px;
  font-size: 0.9rem;
}
.legal-toc ol li a {
  color: var(--text-body);
  text-decoration: none;
  transition: color 0.3s ease;
}
.legal-toc ol li a:hover {
  color: var(--coral);
}

/* ============================================
   BACK LINK
   ============================================ */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--coral);
  margin-bottom: 40px;
  transition: gap 0.3s var(--ease-out-expo);
}
.back-link:hover {
  gap: 12px;
}
.back-link svg {
  width: 16px;
  height: 16px;
}

/* ============================================
   LEGAL CALLOUT BOX
   ============================================ */
.legal-callout {
  background: var(--white);
  border-left: 4px solid var(--coral);
  border-radius: 0 12px 12px 0;
  padding: 20px 24px;
  margin: 24px 0;
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.85;
}
.legal-callout strong {
  color: var(--navy);
}
