.legal-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #ffffff;
}

.legal-main {
  flex: 1;
  width: 100%;
  padding:
    clamp(48px, 10vh, 80px)
    clamp(20px, 4vw, 32px)
    clamp(64px, 10vh, 96px);
}

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

.legal-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
  padding: 10px 16px;
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 999px;
  background: #ffffff;
  color: var(--text, #0f172a);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.legal-back-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}

.legal-back-btn::before {
  content: "←";
  font-size: 1rem;
  line-height: 1;
}

.legal-header {
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line, #e2e8f0);
}

.legal-eyebrow {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted, #64748b);
  margin-bottom: 12px;
}

.legal-header h1 {
  font-size: clamp(1.875rem, 4vw, 2.5rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
  font-weight: 700;
  margin-bottom: 12px;
}

.legal-updated {
  font-size: 0.875rem;
  color: var(--muted, #64748b);
}

.legal-content {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.legal-content section h2 {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
  color: var(--text, #0f172a);
}

.legal-content section p {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: #334155;
}

.legal-content section p + p {
  margin-top: 12px;
}

.legal-content section ul {
  margin-top: 10px;
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.legal-content section li {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: #334155;
}

.legal-content a {
  color: var(--text, #0f172a);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-related {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line, #e2e8f0);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
}

.legal-related a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted, #64748b);
  text-decoration: none;
  transition: color 0.2s ease;
}

.legal-related a:hover {
  color: var(--text, #0f172a);
}

@media (max-width: 640px) {
  .legal-main {
    padding-top: 32px;
    padding-bottom: 56px;
  }
}
