/* ── Legal Pages ────────────────────────────────────────── */

.legal-main {
  position: relative;
  z-index: 1;
  padding: 64px 24px 80px;
}

.legal-container {
  max-width: 720px;
  margin: 0 auto;
}

/* ── Header ────────────────────────────────────────────── */

.legal-header {
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border-default);
}

.legal-title {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 12px;
}

.legal-meta {
  font-size: 0.875rem;
  color: var(--text-medium);
}

/* ── Body ──────────────────────────────────────────────── */

.legal-body {
  color: var(--text-high);
  line-height: 1.75;
  font-size: 0.9375rem;
}

.legal-section {
  margin-bottom: 40px;
}

.legal-section h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.legal-section h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 24px;
  margin-bottom: 12px;
}

.legal-section p {
  margin-bottom: 12px;
}

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

.legal-section ul {
  margin: 12px 0;
  padding-left: 24px;
}

.legal-section li {
  margin-bottom: 8px;
  padding-left: 4px;
}

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

/* ── Table ─────────────────────────────────────────────── */

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 0.875rem;
}

.legal-table th,
.legal-table td {
  padding: 10px 14px;
  text-align: left;
  border: 1px solid var(--border-default);
}

.legal-table th {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-weight: 600;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.legal-table td {
  color: var(--text-high);
}

.legal-table code {
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.8125rem;
}

@media (max-width: 640px) {
  .legal-table {
    font-size: 0.8125rem;
  }

  .legal-table th,
  .legal-table td {
    padding: 8px 10px;
  }
}

/* ── Links ─────────────────────────────────────────────── */

.legal-body a {
  color: #818cf8;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s;
}

.legal-body a:hover {
  color: #a5b4fc;
}

/* ── Contact Block ─────────────────────────────────────── */

.legal-contact {
  margin-top: 16px;
  padding: 20px 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
}

.legal-contact p {
  margin-bottom: 4px;
}

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

/* ── Responsive ────────────────────────────────────────── */

@media (max-width: 640px) {
  .legal-main {
    padding: 40px 16px 60px;
  }

  .legal-header {
    margin-bottom: 32px;
    padding-bottom: 24px;
  }

  .legal-section {
    margin-bottom: 32px;
  }

  .legal-body {
    font-size: 0.875rem;
  }
}

/* ── Help Page ─────────────────────────────────────────── */

.help-main {
  position: relative;
  z-index: 1;
  padding: 32px 16px 96px;
}

.help-container {
  max-width: 1000px;
  margin: 0 auto;
}

.help-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
}

.help-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 40px;
  padding: 0 8px;
  color: var(--text-primary);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius-pill);
  transition: transform 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.help-back:hover {
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.04);
}

.help-back:hover .help-back-icon {
  transform: translateX(-4px);
}

.help-back-icon {
  width: 20px;
  height: 20px;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.help-back-label {
  display: none;
}

.help-title {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.help-content {
  max-width: 672px;
  margin: 0 auto;
}

.help-section {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.help-section-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-default);
}

.help-section-title {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.help-faq-list {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.help-faq-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.help-question {
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.35;
  color: #fff;
}

.help-answer {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.65);
}

@media (min-width: 640px) {
  .help-main {
    padding-top: 48px;
  }

  .help-back-label {
    display: inline;
  }
}

@media (max-width: 640px) {
  .help-main {
    padding-bottom: 72px;
  }

  .help-header {
    margin-bottom: 36px;
  }

  .help-section {
    gap: 32px;
  }

  .help-faq-list {
    gap: 36px;
  }

  .help-question {
    font-size: 1rem;
  }

  .help-answer {
    font-size: 0.9375rem;
  }
}
