/* ============================================================
   LEGAL / POLICY PAGES — Terms, Privacy, Cancellation, Cookies
   ============================================================ */

.lg-title {
  padding-block: 56px 24px;
  background-color: var(--slt-surface-subtle);
}

.lg-title h1 {
  font-size: 44px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -1px;
  margin: 0 0 10px;
  color: var(--slt-text-primary);
}

.lg-title__updated {
  font-size: 0.9rem;
  color: var(--slt-text-muted);
}

.lg-body {
  padding-block: 56px;
}

.lg-body__grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 56px;
  align-items: start;
}

/* ---- Sticky section nav ---- */
.lg-toc {
  position: sticky;
  top: 24px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.lg-toc a {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--slt-text-muted);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: var(--slt-radius-sm);
  transition: color 0.15s ease, background-color 0.15s ease;
}

.lg-toc a:hover {
  color: var(--slt-text-primary);
  background-color: var(--slt-surface-subtle);
}

.lg-toc a.is-active {
  color: var(--slt-action);
  background-color: var(--slt-surface-subtle);
}

/* ---- Prose content ---- */
.lg-content {
  max-width: 760px;
}

.lg-content section {
  margin-bottom: 40px;
  scroll-margin-top: 24px;
}

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

.lg-content h2 {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin: 0 0 14px;
  color: var(--slt-text-primary);
}

.lg-content h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 20px 0 10px;
  color: var(--slt-text-primary);
}

.lg-content p {
  font-size: 0.98rem;
  line-height: 1.75;
  color: var(--slt-text-secondary);
  margin: 0 0 16px;
}

.lg-content ul,
.lg-content ol {
  margin: 0 0 16px;
  padding-left: 20px;
}

.lg-content li {
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--slt-text-secondary);
  margin-bottom: 8px;
}

.lg-content a {
  color: var(--slt-action);
  text-decoration: underline;
}

.lg-content a:hover {
  color: var(--slt-action-hover);
}

.lg-content strong {
  color: var(--slt-text-primary);
}

/* ---- Fee / tier table (used on Cancellation Policy) ---- */
.lg-table-wrap {
  overflow-x: auto;
  margin: 0 0 20px;
}

.lg-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 480px;
}

.lg-table th,
.lg-table td {
  text-align: left;
  padding: 12px 16px;
  font-size: 0.92rem;
  border-bottom: 1px solid var(--slt-border);
}

.lg-table th {
  font-weight: 700;
  color: var(--slt-text-primary);
  background-color: var(--slt-surface-subtle);
}

.lg-table td {
  color: var(--slt-text-secondary);
}

/* ---- Cookie preference toggles ---- */
.lg-cookie-cats {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--slt-border);
  border-radius: var(--slt-radius-sm);
  overflow: hidden;
  margin: 0 0 20px;
}

.lg-cookie-cat {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--slt-border);
}

.lg-cookie-cat:last-child {
  border-bottom: none;
}

.lg-cookie-cat__text h3 {
  margin: 0 0 6px;
}

.lg-cookie-cat__text p {
  margin: 0;
}

.lg-cookie-cat__switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.lg-switch {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.lg-switch input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}

.lg-switch__track {
  position: absolute;
  inset: 0;
  background-color: var(--slt-border-strong);
  border-radius: 999px;
  transition: background-color 0.15s ease;
  pointer-events: none;
}

.lg-switch__track::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: var(--slt-white);
  transition: transform 0.15s ease;
}

.lg-switch input:checked + .lg-switch__track {
  background-color: var(--slt-action);
}

.lg-switch input:checked + .lg-switch__track::before {
  transform: translateX(20px);
}

.lg-switch input:disabled + .lg-switch__track {
  background-color: var(--slt-action);
  opacity: 0.5;
  cursor: not-allowed;
}

.lg-switch input:disabled {
  cursor: not-allowed;
}

.lg-cookie-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}

.lg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 11px 22px;
  border-radius: var(--slt-radius-sm);
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.lg-btn--primary {
  background-color: var(--slt-action);
  color: var(--slt-white);
}

.lg-btn--primary:hover {
  background-color: var(--slt-action-hover);
}

.lg-btn--outline {
  background-color: transparent;
  color: var(--slt-text-primary);
  border: 1px solid var(--slt-border-strong);
}

.lg-btn--outline:hover {
  background-color: var(--slt-surface-subtle);
}

.lg-cookie-saved {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--slt-success);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.lg-cookie-saved.is-visible {
  opacity: 1;
}

@media (max-width: 991.98px) {
  .lg-body__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .lg-toc {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }

}

@media (max-width: 575.98px) {
  .lg-title {
    padding-block: 40px 20px;
  }

  .lg-title h1 {
    font-size: 30px;
  }

  .lg-cookie-cat {
    flex-direction: column;
    gap: 12px;
  }
}
