/**
 * StylingCV Legal Page Templates
 * Version: 2026.02
 *
 * Used for: Terms of Use, Privacy Policy, Cookie Policy, and other legal documents.
 *
 * Brand Colors:
 * - Teal Primary: #268599
 * - Teal Green (link hover): #239e9b
 * - Gray 700 (body text): #404040
 * - Gray 900 (headings): #151413
 * - Gray 200 (borders): #e5e5e5
 * - Gray 100 (light bg): #f5f5f5
 */

/* ==========================================================================
   MAIN WRAPPER
   ========================================================================== */
.scv-legal-page {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.8;
  color: #404040;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

.scv-legal-page *,
.scv-legal-page *::before,
.scv-legal-page *::after {
  box-sizing: border-box;
}

/* ==========================================================================
   MINI HEADER BAR
   ========================================================================== */
.scv-legal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f5f5f5;
  padding: 0.75rem 1.5rem;
  margin: 0 -1.5rem 2rem;
  border-bottom: 1px solid #e5e5e5;
}

.scv-legal-header__back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #268599;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.scv-legal-header__back:hover {
  color: #239e9b;
}

.scv-legal-header__back svg {
  width: 16px;
  height: 16px;
}

.scv-legal-header__cta {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  border: 1px solid #268599;
  border-radius: 6px;
  color: #268599;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s;
}

.scv-legal-header__cta:hover {
  background: #268599;
  color: #ffffff;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.scv-legal-hero {
  text-align: center;
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #e5e5e5;
}

.scv-legal-hero__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: #151413;
  margin: 0 0 1rem;
  line-height: 1.3;
}

.scv-legal-hero__meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #737373;
  margin-bottom: 1rem;
}

.scv-legal-hero__meta span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.scv-legal-hero__desc {
  font-size: 1.05rem;
  color: #404040;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ==========================================================================
   TABLE OF CONTENTS
   ========================================================================== */
.scv-legal-toc {
  background: #f5f5f5;
  border-radius: 8px;
  padding: 1.5rem 2rem;
  margin-bottom: 2.5rem;
}

.scv-legal-toc__title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #737373;
  margin: 0 0 1rem;
}

.scv-legal-toc__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem 2rem;
}

.scv-legal-toc__list li {
  margin: 0;
}

.scv-legal-toc__list a {
  display: inline-flex;
  gap: 0.5rem;
  color: #268599;
  text-decoration: none;
  font-size: 0.9rem;
  line-height: 1.5;
  transition: color 0.2s;
}

.scv-legal-toc__list a:hover {
  color: #239e9b;
  text-decoration: underline;
}

.scv-legal-toc__number {
  color: #737373;
  font-weight: 500;
  min-width: 1.5rem;
}

@media (max-width: 640px) {
  .scv-legal-toc__list {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   CONTENT SECTIONS
   ========================================================================== */
.scv-legal-content {
  margin-bottom: 2rem;
}

.scv-legal-section {
  padding-bottom: 2rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid #e5e5e5;
}

.scv-legal-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.scv-legal-section__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: #151413;
  margin: 0 0 1rem;
  line-height: 1.4;
}

.scv-legal-section__number {
  color: #268599;
  margin-right: 0.5rem;
}

.scv-legal-section h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  color: #151413;
  margin: 1.5rem 0 0.75rem;
}

.scv-legal-section p {
  margin: 0 0 1rem;
  font-size: 1rem;
  line-height: 1.8;
}

.scv-legal-section ul,
.scv-legal-section ol {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.scv-legal-section li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

.scv-legal-section ul ul,
.scv-legal-section ol ul {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.scv-legal-section a {
  color: #268599;
  text-decoration: none;
  transition: color 0.2s;
}

.scv-legal-section a:hover {
  color: #239e9b;
  text-decoration: underline;
}

.scv-legal-section strong {
  color: #151413;
  font-weight: 600;
}

/* ALL CAPS converted to strong */
.scv-legal-section .emphasis {
  font-weight: 600;
  color: #151413;
}

/* ==========================================================================
   FAQ SECTION
   ========================================================================== */
.scv-legal-faq {
  background: #f5f5f5;
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 2.5rem;
}

.scv-legal-faq__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: #151413;
  margin: 0 0 1.5rem;
  text-align: center;
}

.scv-legal-faq__item {
  background: #ffffff;
  border-radius: 8px;
  margin-bottom: 1rem;
  overflow: hidden;
  border: 1px solid #e5e5e5;
}

.scv-legal-faq__item:last-child {
  margin-bottom: 0;
}

.scv-legal-faq__question {
  font-weight: 600;
  color: #151413;
  padding: 1rem 1.25rem;
  margin: 0;
  font-size: 1rem;
  background: #fafafa;
  border-bottom: 1px solid #e5e5e5;
}

.scv-legal-faq__answer {
  padding: 1rem 1.25rem;
  color: #404040;
  line-height: 1.7;
  font-size: 0.95rem;
}

.scv-legal-faq__answer p {
  margin: 0;
}

/* ==========================================================================
   FOOTER CTA
   ========================================================================== */
.scv-legal-cta {
  text-align: center;
  padding: 2.5rem 0;
}

.scv-legal-cta__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: #151413;
  margin: 0 0 0.5rem;
}

.scv-legal-cta__desc {
  color: #737373;
  font-size: 1rem;
  margin: 0 0 1.5rem;
}

.scv-legal-cta__button {
  display: inline-block;
  padding: 0.875rem 2rem;
  border: 2px solid #268599;
  border-radius: 8px;
  color: #268599;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.2s;
}

.scv-legal-cta__button:hover {
  background: #268599;
  color: #ffffff;
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */
@media print {
  .scv-legal-header,
  .scv-legal-toc,
  .scv-legal-faq,
  .scv-legal-cta {
    display: none !important;
  }

  .scv-legal-page {
    max-width: 100%;
    padding: 0;
    color: #000000;
  }

  .scv-legal-hero {
    border-bottom: 2px solid #000000;
  }

  .scv-legal-hero__title {
    color: #000000;
    font-size: 2rem;
  }

  .scv-legal-section {
    border-bottom: 1px solid #cccccc;
  }

  .scv-legal-section__title {
    color: #000000;
  }

  .scv-legal-section a {
    color: #000000;
    text-decoration: underline;
  }

  .scv-legal-section a::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
  }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 640px) {
  .scv-legal-page {
    padding: 0 1rem 3rem;
  }

  .scv-legal-header {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
    margin: 0 -1rem 1.5rem;
    padding: 0.75rem 1rem;
  }

  .scv-legal-hero__title {
    font-size: 1.875rem;
  }

  .scv-legal-hero__meta {
    flex-direction: column;
    gap: 0.25rem;
  }

  .scv-legal-toc {
    padding: 1.25rem 1.5rem;
  }

  .scv-legal-section__title {
    font-size: 1.25rem;
  }

  .scv-legal-faq {
    padding: 1.5rem;
  }

  .scv-legal-cta__title {
    font-size: 1.25rem;
  }
}
