/**
 * Inscape SPA - Legal Pages Styles
 *
 * Styles for Cookie Policy, Privacy Policy, Terms of Service, Terms of Sale.
 * Reproduces exact layout from original website with Roboto font.
 *
 * @package PCC_Woo
 * @since 1.6.0
 */

/* Import Roboto Font */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;600&display=swap');

/* ==========================================
   LEGAL PAGE BASE
   ========================================== */
.legal-page {
  min-height: 100vh;
  background: #fff;
  padding: 0;
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 12px;
  line-height: 1.25;
  color: #000;
}

.legal-container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 80px 20px;
}

/* ==========================================
   LEGAL HEADER
   ========================================== */
.legal-header {
  text-align: left;
  padding: 0;
  margin-bottom: 40px;
}

.legal-title {
  font-size: 28px;
  font-weight: 600;
  color: #000;
  margin: 0 0 10px;
  font-family: 'Roboto', sans-serif;
}

.legal-version {
  font-size: 12px;
  font-weight: 400;
  color: #7A7A7A;
  margin: 0;
}

/* ==========================================
   TWO-COLUMN LAYOUT
   ========================================== */
.legal-layout {
  display: flex;
  gap: 40px;
  align-items: start;
}

.legal-main {
  flex: 1;
  min-width: 0;
}

.legal-sidebar {
  flex: 0 0 300px;
  position: sticky;
  top: 20px;
}

/* ==========================================
   INTRODUCTION
   ========================================== */
.legal-intro {
  margin-bottom: 40px;
  padding: 30px;
  border: 1px solid rgba(122, 122, 122, 0.12);
  border-radius: 5px;
  background: #fff;
}

.legal-intro p {
  font-size: 12px;
  line-height: 20px;
  color: #000;
  margin: 0 0 20px;
  font-weight: 400;
}

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

/* ==========================================
   ARTICLES
   ========================================== */
.legal-articles {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.legal-article {
  padding: 30px;
  border: 1px solid rgba(122, 122, 122, 0.12);
  border-radius: 5px;
  background: #fff;
}

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

.legal-article-title {
  font-size: 16px;
  font-weight: normal;
  color: #000;
  margin: 0 0 20px;
  padding: 0;
  border: none;
}

.article-number {
  color: #000;
}

.legal-article-content {
  font-size: 12px;
  line-height: 20px;
  color: #000;
}

.legal-article-content p {
  margin: 0 0 20px;
  font-weight: 400;
}

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

.legal-article-content strong {
  font-weight: 500;
  color: #000;
}

.legal-article-content ol,
.legal-article-content ul {
  margin: 20px 0;
  padding-left: 30px;
}

.legal-article-content li {
  margin-bottom: 10px;
  line-height: 20px;
}

.legal-article-content a {
  color: #000;
  font-weight: 500;
  text-decoration: none;
}

.legal-article-content a:hover {
  text-decoration: underline;
}

/* ==========================================
   SUBSECTIONS
   ========================================== */
.legal-subsection {
  margin: 20px 0;
  padding: 0;
  border: none;
}

.legal-subsection-title {
  font-size: 20px;
  font-weight: normal;
  color: #7A7A7A;
  margin: 0 0 20px;
}

.legal-subsection-content {
  font-size: 12px;
  line-height: 20px;
  color: #000;
}

.legal-subsection-content p {
  margin: 0 0 20px;
}

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

/* ==========================================
   TABLE OF CONTENTS (SIDEBAR)
   ========================================== */
.legal-toc {
  background: #fff;
  border-radius: 5px;
  padding: 30px;
  border: 1px solid rgba(122, 122, 122, 0.12);
}

.legal-toc-title {
  font-size: 12px;
  font-weight: 500;
  color: #000;
  text-transform: none;
  letter-spacing: normal;
  margin: 0 0 20px;
  padding: 0;
  border: none;
}

.legal-toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: calc(100vh - 200px);
  overflow-y: auto;
}

.legal-toc-item {
  margin-bottom: 0;
}

.legal-toc-link {
  display: flex;
  align-items: center;
  font-size: 12px;
  font-weight: 500;
  color: #000;
  text-decoration: none;
  padding: 10px 0;
  border-radius: 0;
  transition: color 0.2s ease;
  line-height: 20px;
}

.legal-toc-link:before {
  content: '\f105';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  margin-right: 10px;
  color: #7A7A7A;
}

.legal-toc-link:hover {
  background: none;
  color: #6EC1E4;
}

.legal-toc-sublist {
  list-style: none;
  margin: 0;
  padding: 0 0 0 20px;
}

.legal-toc-subitem {
  margin-bottom: 0;
}

.legal-toc-sublink {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: #7A7A7A;
  text-decoration: none;
  padding: 8px 0;
  border-radius: 0;
  transition: color 0.2s ease;
}

.legal-toc-sublink:hover {
  background: none;
  color: #6EC1E4;
}

/* ==========================================
   CORPORATE INFORMATION FOOTER
   ========================================== */
.legal-corporate {
  background: #fff;
  color: #000;
  padding: 30px;
  margin-top: 40px;
  border-radius: 5px;
  border: 1px solid rgba(122, 122, 122, 0.12);
}

.legal-corporate-title {
  font-size: 26px;
  font-weight: 600;
  margin: 0 0 20px;
  padding: 0;
  border: none;
  color: #000;
}

.legal-corporate-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.legal-corporate-info p {
  font-size: 12px;
  line-height: 20px;
  margin: 0 0 5px;
  opacity: 1;
  font-weight: 400;
  color: #000;
}

.legal-corporate-info strong {
  font-weight: 500;
}

.legal-corporate-banks {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.legal-bank {
  background: transparent;
  padding: 0;
  border-radius: 0;
}

.legal-bank-name {
  font-size: 12px;
  font-weight: 500;
  margin: 0 0 5px !important;
  color: #000;
}

.legal-bank p {
  font-size: 12px;
  line-height: 20px;
  margin: 0 0 5px;
  opacity: 1;
  color: #000;
}

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

/* ==========================================
   LEGACY SUPPORT
   ========================================== */
.legal-content {
  padding: var(--ins-space-8, 2rem);
}

.legal-section {
  margin-bottom: var(--ins-space-10, 2.5rem);
}

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

.legal-section-title {
  font-size: var(--ins-text-xl, 1.25rem);
  font-weight: var(--ins-font-semibold, 600);
  color: var(--ins-gray-900, #111827);
  margin: 0 0 var(--ins-space-4, 1rem);
  padding-bottom: var(--ins-space-3, 0.75rem);
  border-bottom: 2px solid var(--ins-primary-100, #e0e7ff);
}

.legal-section-content {
  font-size: var(--ins-text-base, 1rem);
  line-height: 1.8;
  color: var(--ins-gray-700, #374151);
}

.legal-section-content p {
  margin: 0 0 var(--ins-space-4, 1rem);
}

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

.legal-section-content h4 {
  font-size: var(--ins-text-lg, 1.125rem);
  font-weight: var(--ins-font-semibold, 600);
  color: var(--ins-gray-800, #1f2937);
  margin: var(--ins-space-6, 1.5rem) 0 var(--ins-space-3, 0.75rem);
}

.legal-section-content h4:first-child {
  margin-top: 0;
}

.legal-section-content ul,
.legal-section-content ol {
  margin: var(--ins-space-4, 1rem) 0;
  padding-left: var(--ins-space-6, 1.5rem);
}

.legal-section-content li {
  margin-bottom: var(--ins-space-2, 0.5rem);
  padding-left: var(--ins-space-2, 0.5rem);
}

.legal-section-content a {
  color: var(--ins-primary-600, #4f46e5);
  text-decoration: none;
  transition: color 0.2s ease;
}

.legal-section-content a:hover {
  color: var(--ins-primary-700, #4338ca);
  text-decoration: underline;
}

.legal-section-content strong {
  font-weight: var(--ins-font-semibold, 600);
  color: var(--ins-gray-800, #1f2937);
}

.legal-footer {
  background: var(--ins-gray-50, #f9fafb);
  padding: var(--ins-space-6, 1.5rem) var(--ins-space-8, 2rem);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--ins-gray-200, #e5e7eb);
}

.legal-footer p {
  font-size: var(--ins-text-sm, 0.875rem);
  color: var(--ins-gray-500, #6b7280);
  margin: 0;
}

.legal-contact-link {
  display: inline-flex;
  align-items: center;
  gap: var(--ins-space-2, 0.5rem);
  font-size: var(--ins-text-sm, 0.875rem);
  font-weight: var(--ins-font-medium, 500);
  color: var(--ins-primary-600, #4f46e5);
  text-decoration: none;
  transition: color 0.2s ease;
}

.legal-contact-link:hover {
  color: var(--ins-primary-700, #4338ca);
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 1024px) {
  .legal-container {
    max-width: 1024px;
    padding: 20px;
  }

  .legal-layout {
    flex-direction: column;
  }

  .legal-sidebar {
    position: relative;
    top: 0;
    order: -1;
    flex: 0 0 auto;
    width: 100%;
    margin-bottom: 20px;
  }

  .legal-toc-list {
    max-height: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }

  .legal-toc-item {
    flex: 0 0 calc(50% - 5px);
  }

  .legal-toc-sublist {
    display: none;
  }
}

@media (max-width: 767px) {
  .legal-container {
    max-width: 767px;
    padding: 20px;
  }

  .legal-header {
    padding: 0;
    margin-bottom: 20px;
  }

  .legal-page {
    font-size: 12px;
    line-height: 20px;
  }

  .legal-intro,
  .legal-article,
  .legal-toc,
  .legal-corporate {
    padding: 20px;
  }

  .legal-toc-list {
    flex-direction: column;
  }

  .legal-toc-item {
    flex: 1;
  }

  .legal-corporate-grid {
    gap: 10px;
  }

  .legal-footer {
    flex-direction: column;
    gap: 15px;
    text-align: center;
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .legal-title {
    font-size: 24px;
  }

  .legal-article-title {
    font-size: 16px;
  }

  .legal-subsection-title {
    font-size: 18px;
  }

  .legal-article-content,
  .legal-subsection-content,
  .legal-intro p {
    font-size: 12px;
    line-height: 20px;
  }

  .legal-corporate {
    padding: 20px;
  }

  .legal-corporate-title {
    font-size: 22px;
  }
}
