/* =============================================================================
   CINESTAR EVENTS — Legal Pages (Privacy Policy, T&C, Refund Policy)
   theme/cinestar-child/assets/css/legal.css
   Shared across all three legal page templates.
   ============================================================================= */


/* =============================================================================
   A. PAGE BANNER
   Compact dark header — no concert imagery, just title + breadcrumb.
   ============================================================================= */

.ce-legal-banner {
  padding-top: var(--ce-header-h);           /* clear sticky nav */
  padding-bottom: 3rem;
  background: linear-gradient(
    180deg,
    #0f0f0f 0%,
    var(--ce-bg) 100%
  );
  border-bottom: 1px solid var(--ce-border);
  text-align: center;
}

.ce-legal-banner__breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  font-family: var(--ce-font-body);
  font-size: var(--ce-text-sm);
  color: var(--ce-text-faint);
}

.ce-legal-banner__breadcrumb a {
  color: var(--ce-text-faint);
  text-decoration: none;
  transition: color var(--ce-transition);
}

.ce-legal-banner__breadcrumb a:hover,
.ce-legal-banner__breadcrumb a:focus {
  color: var(--ce-gold);
  outline: none;
}

.ce-legal-banner__breadcrumb a:focus-visible {
  outline: 2px solid var(--ce-gold);
  outline-offset: 2px;
}

.ce-legal-banner__breadcrumb-sep {
  opacity: 0.4;
}

.ce-legal-banner__title {
  font-family: var(--ce-font-heading);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--ce-text);
  margin: 0 0 1rem;
  line-height: 1.15;
}

.ce-legal-banner__updated {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--ce-font-body);
  font-size: var(--ce-text-sm);
  color: var(--ce-text-faint);
  background: rgba(255, 215, 0, 0.08);
  border: 1px solid var(--ce-border-gold);
  border-radius: 100px;
  padding: 0.3rem 0.9rem;
}

.ce-legal-banner__updated-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ce-gold);
  flex-shrink: 0;
}


/* =============================================================================
   B. CONTENT WRAPPER
   Narrow readable column, centered on page.
   ============================================================================= */

.ce-legal-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 6rem;
}

@media (min-width: 768px) {
  .ce-legal-wrap {
    padding: 4.5rem 2rem 7rem;
  }
}


/* =============================================================================
   C. TABLE OF CONTENTS
   Optional quick-nav box at the top of longer policies.
   ============================================================================= */

.ce-legal-toc {
  background: var(--ce-bg-raised);
  border: 1px solid var(--ce-border);
  border-left: 3px solid var(--ce-gold);
  border-radius: var(--ce-radius);
  padding: 1.5rem 1.75rem;
  margin-bottom: 3rem;
}

.ce-legal-toc__title {
  font-family: var(--ce-font-heading);
  font-size: var(--ce-text-base);
  font-weight: 700;
  color: var(--ce-gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 1rem;
}

.ce-legal-toc__list {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 1;
}

@media (min-width: 600px) {
  .ce-legal-toc__list {
    columns: 2;
    column-gap: 2rem;
  }
}

.ce-legal-toc__list li {
  margin-bottom: 0.4rem;
  break-inside: avoid;
}

.ce-legal-toc__list a {
  font-family: var(--ce-font-body);
  font-size: var(--ce-text-sm);
  color: var(--ce-text-muted);
  text-decoration: none;
  transition: color var(--ce-transition);
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.ce-legal-toc__list a::before {
  content: '→';
  color: var(--ce-gold);
  font-size: 0.7em;
  flex-shrink: 0;
}

.ce-legal-toc__list a:hover,
.ce-legal-toc__list a:focus {
  color: var(--ce-gold);
  outline: none;
}

.ce-legal-toc__list a:focus-visible {
  outline: 2px solid var(--ce-gold);
  outline-offset: 2px;
}


/* =============================================================================
   D. SECTION TYPOGRAPHY
   ============================================================================= */

.ce-legal-section {
  margin-bottom: 3rem;
  scroll-margin-top: calc(var(--ce-header-h) + 1rem);
}

.ce-legal-section:last-child {
  margin-bottom: 0;
}

/* Horizontal rule between sections */
.ce-legal-section + .ce-legal-section {
  padding-top: 3rem;
  border-top: 1px solid var(--ce-border);
}

.ce-legal-section__heading {
  font-family: var(--ce-font-heading);
  font-size: clamp(1.25rem, 2.5vw, 1.625rem);
  font-weight: 700;
  color: var(--ce-gold);
  margin: 0 0 1.25rem;
  line-height: 1.3;
}

.ce-legal-section__subheading {
  font-family: var(--ce-font-heading);
  font-size: var(--ce-text-lg);
  font-weight: 600;
  color: var(--ce-text);
  margin: 1.75rem 0 0.75rem;
  line-height: 1.4;
}

.ce-legal-section p {
  font-family: var(--ce-font-body);
  font-size: var(--ce-text-base);
  line-height: 1.85;
  color: var(--ce-text-muted);
  margin: 0 0 1rem;
}

.ce-legal-section p:last-child {
  margin-bottom: 0;
}

/* Unordered lists */
.ce-legal-section ul {
  list-style: none;
  margin: 0.5rem 0 1.25rem;
  padding: 0;
}

.ce-legal-section ul li {
  font-family: var(--ce-font-body);
  font-size: var(--ce-text-base);
  line-height: 1.8;
  color: var(--ce-text-muted);
  padding-left: 1.5rem;
  position: relative;
  margin-bottom: 0.35rem;
}

.ce-legal-section ul li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--ce-gold);
  font-size: 0.75em;
  top: 0.35em;
}

/* Ordered lists */
.ce-legal-section ol {
  margin: 0.5rem 0 1.25rem;
  padding-left: 1.5rem;
}

.ce-legal-section ol li {
  font-family: var(--ce-font-body);
  font-size: var(--ce-text-base);
  line-height: 1.8;
  color: var(--ce-text-muted);
  margin-bottom: 0.35rem;
  padding-left: 0.25rem;
}

.ce-legal-section ol li::marker {
  color: var(--ce-gold);
  font-weight: 600;
}

/* Inline links within legal copy */
.ce-legal-section a {
  color: var(--ce-gold);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--ce-transition);
}

.ce-legal-section a:hover,
.ce-legal-section a:focus {
  color: var(--ce-gold-hover);
  outline: none;
}

.ce-legal-section a:focus-visible {
  outline: 2px solid var(--ce-gold);
  outline-offset: 2px;
}

/* Strong / bold text */
.ce-legal-section strong {
  color: var(--ce-text);
  font-weight: 600;
}


/* =============================================================================
   E. HIGHLIGHTED CALLOUT BOX
   Used for key summary statements (e.g. "Tickets are non-refundable").
   ============================================================================= */

.ce-legal-callout {
  background: rgba(255, 215, 0, 0.06);
  border: 1px solid var(--ce-border-gold);
  border-left: 4px solid var(--ce-gold);
  border-radius: var(--ce-radius);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

.ce-legal-callout p {
  margin: 0;
  color: var(--ce-text) !important;
  font-weight: 500;
}


/* =============================================================================
   F. CONTACT BOX
   Final contact block at the bottom of each policy.
   ============================================================================= */

.ce-legal-contact {
  background: var(--ce-bg-raised);
  border: 1px solid var(--ce-border);
  border-radius: var(--ce-radius-lg);
  padding: 2rem 2rem;
  text-align: center;
  margin-top: 4rem;
}

.ce-legal-contact__heading {
  font-family: var(--ce-font-heading);
  font-size: var(--ce-text-xl);
  font-weight: 700;
  color: var(--ce-text);
  margin: 0 0 0.75rem;
}

.ce-legal-contact p {
  font-family: var(--ce-font-body);
  font-size: var(--ce-text-base);
  color: var(--ce-text-muted);
  line-height: 1.7;
  margin: 0 0 1.25rem;
}

.ce-legal-contact p:last-child {
  margin-bottom: 0;
}

.ce-legal-contact a {
  color: var(--ce-gold);
  text-decoration: none;
  font-weight: 600;
  transition: color var(--ce-transition);
}

.ce-legal-contact a:hover,
.ce-legal-contact a:focus {
  color: var(--ce-gold-hover);
}


/* =============================================================================
   G. BACK TO TOP / FOOTER LINK
   ============================================================================= */

.ce-legal-back {
  display: flex;
  justify-content: center;
  margin-top: 3.5rem;
}

.ce-legal-back a {
  font-family: var(--ce-font-body);
  font-size: var(--ce-text-sm);
  color: var(--ce-text-faint);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: color var(--ce-transition);
}

.ce-legal-back a:hover,
.ce-legal-back a:focus {
  color: var(--ce-gold);
  outline: none;
}

.ce-legal-back a:focus-visible {
  outline: 2px solid var(--ce-gold);
  outline-offset: 2px;
}
