/**
 * Legal Pages – Shared Stylesheet (Privacy, Terms, Cookies)
 * Prefix: lg-
 */

/* ==========================================================================
   SECTION WRAPPER
   ========================================================================== */
.lg-section {
  padding: 4rem 1.5rem 4.5rem;
}

.lg-section--white { background: #fff; }
.lg-section--gray  { background: #f9fafb; }

.lg-section__inner {
  max-width: 860px;
  margin: 0 auto;
}

/* ==========================================================================
   META BAR (last updated, version, print)
   ========================================================================== */
.lg-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
  border-bottom: 1.5px solid #eee;
}

.lg-meta__info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.lg-meta__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.3rem 0.75rem;
  background: rgba(102,0,153,0.06);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #660099;
}

.lg-meta__badge svg {
  width: 14px;
  height: 14px;
}

.lg-meta__date {
  font-size: 0.8125rem;
  color: #888;
}

.lg-meta__actions {
  display: flex;
  gap: 0.5rem;
}

.lg-meta__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #555;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s;
}

.lg-meta__btn:hover {
  background: #eee;
  color: #1a1a2e;
}

.lg-meta__btn svg {
  width: 14px;
  height: 14px;
}

/* ==========================================================================
   TABLE OF CONTENTS
   ========================================================================== */
.lg-toc {
  background: #f9fafb;
  border: 1.5px solid #eee;
  border-radius: 16px;
  padding: 1.75rem 2rem;
  margin-bottom: 2.5rem;
}

.lg-toc__title {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #660099;
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lg-toc__title svg {
  width: 16px;
  height: 16px;
}

.lg-toc__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.375rem 2rem;
}

.lg-toc__link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0;
  font-size: 0.875rem;
  color: #444;
  text-decoration: none;
  transition: color 0.15s;
  line-height: 1.4;
}

.lg-toc__link:hover {
  color: #660099;
}

.lg-toc__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  border-radius: 6px;
  background: rgba(102,0,153,0.06);
  color: #660099;
  font-size: 0.6875rem;
  font-weight: 700;
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .lg-toc__list { grid-template-columns: 1fr; }
  .lg-toc { padding: 1.25rem 1.5rem; }
}

/* ==========================================================================
   CONTENT BODY (renders HTML from database / rich editor)
   ========================================================================== */
.lg-content {
  background: #fff;
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.05);
  border: 1px solid #f0f0f0;
}

/* Headings */
.lg-content h2 {
  font-size: 1.375rem;
  font-weight: 700;
  color: #1a1a2e;
  margin: 2.5rem 0 0.875rem;
  padding-top: 1.5rem;
  border-top: 1px solid #f0f0f0;
  scroll-margin-top: 100px;
}

.lg-content h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.lg-content h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1a1a2e;
  margin: 1.75rem 0 0.625rem;
  scroll-margin-top: 100px;
}

.lg-content h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #374151;
  margin: 1.25rem 0 0.5rem;
}

/* Paragraphs */
.lg-content p {
  font-size: 0.9375rem;
  line-height: 1.8;
  color: #4a5568;
  margin: 0 0 1rem;
}

.lg-content p:last-child { margin-bottom: 0; }

/* Links */
.lg-content a {
  color: #660099;
  text-decoration: underline;
  text-decoration-color: rgba(102,0,153,0.3);
  text-underline-offset: 2px;
  transition: text-decoration-color 0.15s;
}

.lg-content a:hover {
  text-decoration-color: #660099;
}

/* Lists */
.lg-content ul,
.lg-content ol {
  margin: 0 0 1.25rem;
  padding-left: 1.5rem;
}

.lg-content li {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: #4a5568;
  margin-bottom: 0.5rem;
  padding-left: 0.25rem;
}

.lg-content li::marker {
  color: #660099;
}

.lg-content li strong {
  color: #1a1a2e;
}

/* Tables (from rich editor) */
.lg-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
  font-size: 0.875rem;
}

.lg-content table th,
.lg-content table td {
  padding: 0.75rem 1rem;
  border: 1px solid #e5e7eb;
  text-align: left;
}

.lg-content table th {
  background: #f9fafb;
  font-weight: 600;
  color: #1a1a2e;
}

.lg-content table td {
  color: #4a5568;
}

/* Blockquotes */
.lg-content blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
  border-left: 4px solid #660099;
  background: rgba(102,0,153,0.03);
  border-radius: 0 12px 12px 0;
}

.lg-content blockquote p {
  margin: 0;
  font-style: italic;
  color: #555;
}

/* Horizontal rules */
.lg-content hr {
  border: none;
  height: 1px;
  background: #eee;
  margin: 2rem 0;
}

/* ==========================================================================
   HIGHLIGHT BOXES (used in fallback content)
   ========================================================================== */
.lg-highlight {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-radius: 12px;
  margin: 1.25rem 0;
}

.lg-highlight--info {
  background: rgba(59,130,246,0.06);
  border: 1px solid rgba(59,130,246,0.12);
}

.lg-highlight--warning {
  background: rgba(245,158,11,0.06);
  border: 1px solid rgba(245,158,11,0.12);
}

.lg-highlight--purple {
  background: rgba(102,0,153,0.04);
  border: 1px solid rgba(102,0,153,0.1);
}

.lg-highlight__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
}

.lg-highlight--info .lg-highlight__icon { color: #3b82f6; }
.lg-highlight--warning .lg-highlight__icon { color: #d97706; }
.lg-highlight--purple .lg-highlight__icon { color: #660099; }

.lg-highlight__text {
  font-size: 0.875rem;
  line-height: 1.6;
  color: #555;
  margin: 0;
}

.lg-highlight__text strong { color: #1a1a2e; }

/* ==========================================================================
   CONTACT CARDS
   ========================================================================== */
.lg-contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}

.lg-contact-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: #fff;
  border: 1.5px solid #eee;
  border-radius: 16px;
  transition: transform 0.25s, box-shadow 0.25s;
}

.lg-contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(102,0,153,0.08);
  border-color: rgba(102,0,153,0.12);
}

.lg-contact-card__icon {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(102,0,153,0.06);
  border-radius: 12px;
  margin-bottom: 1rem;
}

.lg-contact-card__icon svg {
  width: 22px;
  height: 22px;
  color: #660099;
}

.lg-contact-card__label {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #888;
  margin: 0 0 0.375rem;
}

.lg-contact-card__value {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #1a1a2e;
  text-decoration: none;
  display: block;
  line-height: 1.4;
}

a.lg-contact-card__value:hover { color: #660099; }

@media (max-width: 768px) {
  .lg-contact-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   CTA BANNER (reuse from faq)
   ========================================================================== */
.lg-cta {
  padding: 4rem 1.5rem;
  background: linear-gradient(135deg, #1a0a2e 0%, #3b1562 50%, #581c87 100%);
  text-align: center;
}

.lg-cta__inner {
  max-width: 680px;
  margin: 0 auto;
}

.lg-cta__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.75rem;
}

.lg-cta__text {
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.8);
  margin: 0 0 1.5rem;
}

.lg-cta__pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.625rem;
  margin-bottom: 2rem;
}

.lg-cta__pill {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.875rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
}

.lg-cta__pill svg {
  width: 14px;
  height: 14px;
  color: #22c55e;
}

.lg-cta__actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.lg-cta__actions .c-btn--secondary {
  background: #fff;
  color: #660099;
  padding: 0.75rem 1.75rem;
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: 10px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s;
  border: none;
}

.lg-cta__actions .c-btn--secondary:hover {
  background: #f3e8ff;
  transform: translateY(-1px);
}

.lg-cta__actions .c-btn--outline-white {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.35);
  padding: 0.75rem 1.75rem;
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: 10px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s;
}

.lg-cta__actions .c-btn--outline-white:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.6);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 768px) {
  .lg-section { padding: 3rem 1rem 3.5rem; }
  .lg-content { padding: 1.75rem 1.25rem; border-radius: 16px; }
  .lg-meta { flex-direction: column; align-items: flex-start; }
  .lg-cta { padding: 3rem 1rem; }
}

@media print {
  .pp-hero, .lg-toc, .lg-meta__actions, .lg-cta { display: none; }
  .lg-content { box-shadow: none; border: none; padding: 0; }
  .lg-section { padding: 1rem 0; }
}
