/* ==========================================================================
   LEGAL PAGES STYLING (Terms, Privacy, Cancellation, etc.)
   Separate stylesheet for legal pages - NO animations
   ========================================================================== */

.vw-legal {
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.7;
  color: var(--vw-ink);
}

.vw-legal h1,
.vw-legal h2,
.vw-legal h3,
.vw-legal h4,
.vw-legal h5,
.vw-legal h6 {
  margin-top: 32px;
  margin-bottom: 16px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--vw-ink);
}

.vw-legal h1 {
  font-size: 32px;
  margin-top: 0;
}

.vw-legal h2 {
  font-size: 24px;
  border-bottom: 2px solid var(--vw-line);
  padding-bottom: 12px;
}

.vw-legal h3 {
  font-size: 24px;
}

.vw-legal p {
  margin-bottom: 16px;
}

.vw-legal ul,
.vw-legal ol {
  margin: 16px 0 16px 24px;
  padding: 0;
}

.vw-legal li {
  /* margin-bottom: 10px; */
  /* line-height: 1.7; */
  margin-left: 10px;
}

.vw-legal ul li {
  list-style: disc;
}

.vw-legal ol li {
  list-style: decimal;
}

.vw-legal strong,
.vw-legal b {
  font-weight: 600;
  color: var(--vw-ink);
}

.vw-legal em,
.vw-legal i {
  font-style: italic;
  color: var(--vw-muted);
}

.vw-legal a {
  color: var(--vw-blue);
  text-decoration: underline;
  transition: color 0.3s;
}

.vw-legal a:hover {
  color: var(--vw-blue-dark);
}

.vw-legal blockquote {
  margin: 24px 0;
  padding: 16px 20px;
  border-left: 4px solid var(--vw-blue);
  background: rgba(9, 105, 208, 0.05);
  font-style: italic;
  color: var(--vw-muted);
}

.vw-legal table {
  width: 100%;
  margin: 24px 0;
  border-collapse: collapse;
}

.vw-legal table th,
.vw-legal table td {
  padding: 12px;
  text-align: left;
  border: 1px solid var(--vw-line);
}

.vw-legal table th {
  background: var(--vw-bg-blue);
  font-weight: 600;
  color: var(--vw-ink);
}

.vw-legal table tr:nth-child(even) {
  background: rgba(240, 244, 251, 0.5);
}



/* ==========================================================================
   TABLE OF CONTENTS & PROGRESS BAR
   ========================================================================== */

/* Two-column layout: TOC + Content */
.vw-legal-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: start;
}

/* Table of Contents Sidebar */
.vw-legal-toc {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-right: 12px;
}

.vw-legal-toc-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--vw-muted);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--vw-line);
  position: relative;
  --toc-progress: 0%;
}

.vw-legal-toc-title::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, #0969d0, #f97316);
  width: var(--toc-progress);
  transition: width 0.2s ease;
}

.vw-legal-toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: calc(100vh - 240px);
  overflow-y: auto;
  padding-right: 12px;
}

/* Scrollbar styling for TOC list */
.vw-legal-toc-list::-webkit-scrollbar {
  width: 4px;
}

.vw-legal-toc-list::-webkit-scrollbar-track {
  background: transparent;
}

.vw-legal-toc-list::-webkit-scrollbar-thumb {
  background: var(--vw-line);
  border-radius: 2px;
}

.vw-legal-toc-list::-webkit-scrollbar-thumb:hover {
  background: var(--vw-muted);
}


.vw-legal-toc-item {
  margin: 0;
  padding: 0;
}

.vw-legal-toc-link {
  display: block;
  padding: 8px 12px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--vw-muted);
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: all 0.2s ease;
  cursor: pointer;
}

.vw-legal-toc-link:hover {
  color: var(--vw-blue);
  border-left-color: var(--vw-blue);
  padding-left: 16px;
}

.vw-legal-toc-link.is-active {
  color: var(--vw-blue);
  border-left-color: var(--vw-blue);
  font-weight: 600;
  padding-left: 16px;
}

.vw-legal-toc-link.is-active::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--vw-orange);
  margin-right: 8px;
}

/* Mobile: Hide TOC on small screens */
@media (max-width: 1024px) {
  .vw-legal-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

  .vw-legal-toc-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
  }

  .vw-legal-toc-link {
    padding: 6px 12px;
    border: 1px solid var(--vw-line);
    border-radius: 6px;
    border-left: 1px solid var(--vw-line);
    font-size: 13px;
  }

  .vw-legal-toc-link:hover,
  .vw-legal-toc-link.is-active {
    border: 1px solid var(--vw-blue);
    padding-left: 12px;
  }

  .vw-legal-toc-title {
    display: none;
  }
}

@media (max-width: 680px) {
  .vw-legal-layout {
    gap: 24px;
  }

  .vw-legal-toc {
    gap: 8px;
  }

  .vw-legal-toc-link {
    padding: 6px 10px;
    font-size: 12px;
  }
}

/* ==========================================================================
   Delete Account Page
   ========================================================================== */

.vw-delete-account {
  max-width: 640px;
  margin: 0 auto;
}

.vw-delete-account__card {
  padding: 40px;
}

.vw-delete-account__intro {
  font-size: 16px;
  color: var(--vw-muted);
  margin-bottom: 32px;
}

/* Steps list */
.vw-delete-account__steps {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.vw-delete-account__step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.vw-delete-account__num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--vw-blue);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
}

.vw-delete-account__step-body {
  padding-top: 6px;
}

.vw-delete-account__step-body b {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: var(--vw-ink);
  margin-bottom: 4px;
}

.vw-delete-account__step-body p {
  font-size: 15px;
  color: var(--vw-muted);
  margin: 0;
}

/* Warning notice */
.vw-delete-account__notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(220, 53, 69, 0.07);
  border: 1px solid rgba(220, 53, 69, 0.25);
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 24px;
}

.vw-delete-account__notice svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: #dc3545;
}

.vw-delete-account__notice p {
  font-size: 14px;
  color: var(--vw-ink);
  margin: 0;
  line-height: 1.6;
}

/* Help text */
.vw-delete-account__help {
  font-size: 14px;
  color: var(--vw-muted);
  margin: 0;
}

.vw-delete-account__help a {
  color: var(--vw-blue);
  text-decoration: underline;
}

/* Mobile */
@media (max-width: 680px) {
  .vw-delete-account__card {
    padding: 24px 20px;
  }
}
